| <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"> |
| <parent> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-project</artifactId> |
| <version>7.0.0.RC2</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>jetty-webapp</artifactId> |
| <name>Jetty :: Webapp Application Support</name> |
| <description>Jetty web application support</description> |
| <build> |
| <resources> |
| <resource><directory>src/main/resources</directory></resource> |
| <resource><directory>target/generated-resources</directory></resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <copy failonerror="true" file="${basedir}/src/main/config/etc/webdefault.xml" toFile="${project.build.directory}/generated-resources/org/eclipse/jetty/webapp/webdefault.xml" /> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins |
| </groupId> |
| <artifactId>maven-assembly-plugin |
| </artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>config.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>${felix.bundle.version} |
| </version> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <goals> |
| <goal>manifest</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- |
| Required for OSGI |
| --> |
| <groupId>org.apache.maven.plugins |
| </groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestFile> |
| ${project.build.outputDirectory}/META-INF/MANIFEST.MF |
| </manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| <!-- always include sources since jetty-xbean makes use of them --> |
| <plugin> |
| <groupId>org.apache.maven.plugins |
| </groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-xml</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlet</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| </project> |