1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2  <parent>
3    <artifactId>project</artifactId>
4    <groupId>org.mortbay.jetty</groupId>
5    <version>6.1.26</version>
6    <relativePath>../../pom.xml</relativePath>
7  </parent>
8  <modelVersion>4.0.0</modelVersion>
9  <groupId>org.mortbay.jetty</groupId>
10  <artifactId>jetty-util</artifactId>
11  <name>Jetty Utilities</name>
12  <description>Utility classes for Jetty</description>
13  <build>
14    <testResources>
15      <testResource>
16        <directory>src/test/java</directory>
17        <includes>
18          <include>**/*Test.java</include>
19          <include>org/mortbay/**/*.xml</include>
20        </includes>
21        <excludes>
22          <exclude>**/Abstract*.java</exclude>
23        </excludes>
24      </testResource>
25    </testResources>
26    <plugins>
27      <plugin>
28        <artifactId>maven-antrun-plugin</artifactId>
29        <executions>
30          <execution>
31            <id>clean</id>
32            <phase>clean</phase>
33            <goals>
34              <goal>run</goal>
35            </goals>
36            <configuration>
37              <tasks>
38                <delete failonerror="false" file="../../lib/${project.artifactId}-${project.version}.${project.packaging}" />
39                <delete failonerror="false" file="../../etc/jetty-logging.xml" />
40              </tasks>
41            </configuration>
42          </execution>
43          <execution>
44            <id>copyjar</id>
45            <phase>install</phase>
46            <goals>
47              <goal>run</goal>
48            </goals>
49            <configuration>
50              <tasks>
51                <copy failonerror="false" file="target/${project.artifactId}-${project.version}.${project.packaging}" todir="../../lib/" />
52                <copy failonerror="false" file="src/main/config/etc/jetty-logging.xml" todir="../../etc" />
53              </tasks>
54            </configuration>
55          </execution>
56        </executions>
57      </plugin>
58      <plugin>
59        <groupId>org.apache.felix</groupId>
60        <artifactId>maven-bundle-plugin</artifactId>
61        <version>${maven-bundle-plugin-version}</version>
62        <extensions>true</extensions>
63        <executions>
64          <execution>
65            <goals>
66              <goal>manifest</goal>
67            </goals>
68            <configuration>
69              <instructions>
70                <Bundle-SymbolicName>org.mortbay.jetty.util</Bundle-SymbolicName>
71                <Bundle-RequiredExecutionEnvironment>J2SE-1.4</Bundle-RequiredExecutionEnvironment>
72                <Import-Package>!org.mortbay.*,org.slf4j;resolution:=optional,*</Import-Package>
73                <Bundle-DocURL>http://jetty.mortbay.org</Bundle-DocURL>
74              </instructions>
75            </configuration>
76           </execution>
77        </executions>
78      </plugin>
79      <plugin>
80        <!--
81        Required for OSGI
82        -->
83        <groupId>org.apache.maven.plugins</groupId>
84        <artifactId>maven-jar-plugin</artifactId>
85        <configuration>
86          <archive>
87            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
88          </archive>
89        </configuration>
90      </plugin>
91    </plugins>
92  </build>
93  <dependencies>
94    <dependency>
95      <groupId>junit</groupId>
96      <artifactId>junit</artifactId>
97      <scope>test</scope>
98    </dependency>
99    <dependency>
100      <groupId>org.mortbay.jetty</groupId>
101      <artifactId>servlet-api</artifactId>
102      <version>${servlet-version}</version>
103      <scope>provided</scope>
104    </dependency>
105    <dependency>
106      <groupId>org.slf4j</groupId>
107      <artifactId>slf4j-api</artifactId>
108      <optional>true</optional>
109    </dependency>
110  </dependencies>
111</project>
112