511 lines
19 KiB
XML
511 lines
19 KiB
XML
<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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-project</artifactId>
|
|
<version>9.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>jetty-distribution</artifactId>
|
|
<name>Jetty :: Distribution Assemblies</name>
|
|
<packaging>pom</packaging>
|
|
<properties>
|
|
<assembly-directory>target/distribution</assembly-directory>
|
|
<jetty-setuid-version>1.0.1</jetty-setuid-version>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-base-assembly-tree</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<useBuildFilters>false</useBuildFilters>
|
|
<includeEmptyDirs>true</includeEmptyDirs>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<chmod dir="${assembly-directory}/bin" perm="755" includes="**/*.sh" />
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process</goal>
|
|
</goals>
|
|
<configuration>
|
|
<resourceBundles>
|
|
<resourceBundle>org.eclipse.jetty.toolchain:jetty-distribution-remote-resources:1.2</resourceBundle>
|
|
</resourceBundles>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-project</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>version</classifier>
|
|
<type>txt</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}/</outputDirectory>
|
|
<destFileName>VERSION.txt</destFileName>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>test-jetty-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
<overWrite>true</overWrite>
|
|
<includes>**</includes>
|
|
<outputDirectory>${assembly-directory}/webapps</outputDirectory>
|
|
<destFileName>test.war</destFileName>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>test-proxy-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
<overWrite>true</overWrite>
|
|
<includes>**</includes>
|
|
<outputDirectory>${assembly-directory}/webapps</outputDirectory>
|
|
<destFileName>xref-proxy.war</destFileName>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.example-async-rest</groupId>
|
|
<artifactId>example-async-rest-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
<overWrite>true</overWrite>
|
|
<includes>**</includes>
|
|
<outputDirectory>${assembly-directory}/webapps</outputDirectory>
|
|
<destFileName>async-rest.war</destFileName>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-start</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>jar</type>
|
|
<overWrite>true</overWrite>
|
|
<includes>**</includes>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
<destFileName>start.jar</destFileName>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-setuid-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.toolchain.setuid</groupId>
|
|
<artifactId>jetty-setuid-java</artifactId>
|
|
<version>${jetty-setuid-version}</version>
|
|
<type>jar</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}/lib/setuid</outputDirectory>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.toolchain.setuid</groupId>
|
|
<artifactId>libsetuid-linux</artifactId>
|
|
<version>${jetty-setuid-version}</version>
|
|
<type>so</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}/lib/setuid</outputDirectory>
|
|
<destFileName>libsetuid-linux.so</destFileName>
|
|
</artifactItem>
|
|
|
|
<!-- TODO readd once new version released
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.toolchain.setuid</groupId>
|
|
<artifactId>libsetuid-osx</artifactId>
|
|
<version>${jetty-setuid-version}</version>
|
|
<type>so</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}/lib/setuid</outputDirectory>
|
|
<destFileName>libsetuid-osx.so</destFileName>
|
|
</artifactItem>
|
|
-->
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>unpack-setuid-config</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.toolchain.setuid</groupId>
|
|
<artifactId>jetty-setuid-java</artifactId>
|
|
<version>${jetty-setuid-version}</version>
|
|
<classifier>config</classifier>
|
|
<type>jar</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-lib-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty</includeGroupIds>
|
|
<excludeGroupIds>org.eclipse.jetty.orbit,org.eclipse.jetty.spdy,org.eclipse.jetty.websocket,org.eclipse.jetty.drafts</excludeGroupIds>
|
|
<excludeArtifactIds>jetty-all,jetty-start,jetty-monitor,jetty-jsp</excludeArtifactIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-lib-websocket-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.websocket,org.eclipse.jetty.drafts</includeGroupIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/websocket</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>copy-orbit-servlet-api-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.servlet</artifactId>
|
|
<version>${orbit-servlet-api-version}</version>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>${assembly-directory}/lib</outputDirectory>
|
|
<destFileName>servlet-api-3.0.jar</destFileName>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>unpack-spdy</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.spdy</includeGroupIds>
|
|
<classifier>config</classifier>
|
|
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
|
|
<excludes>META-INF/**</excludes>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-lib-spdy-deps</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.spdy</includeGroupIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/spdy</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-orbit-lib-annotations-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.orbit</includeGroupIds>
|
|
<includeArtifactIds>javax.annotation,org.objectweb.asm</includeArtifactIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/annotations</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>copy-orbit-lib-jta-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.orbit</includeGroupIds>
|
|
<includeArtifactIds>javax.transaction</includeArtifactIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/jndi</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-orbit-lib-jndi-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.orbit</includeGroupIds>
|
|
<includeArtifactIds>javax.mail.glassfish,javax.activation</includeArtifactIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/jndi</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-orbit-lib-jsp-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty.orbit</includeGroupIds>
|
|
<includeArtifactIds>com.sun.el,javax.el,javax.servlet.jsp,javax.servlet.jsp.jstl,org.apache.jasper.glassfish,org.apache.taglibs.standard.glassfish,org.eclipse.jdt.core</includeArtifactIds>
|
|
<includeTypes>jar</includeTypes>
|
|
<outputDirectory>${assembly-directory}/lib/jsp</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>unpack-config-deps</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeGroupIds>org.eclipse.jetty</includeGroupIds>
|
|
<classifier>config</classifier>
|
|
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
|
|
<excludes>META-INF/**</excludes>
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/jetty-assembly.xml</descriptor>
|
|
</descriptors>
|
|
<tarLongFileMode>gnu</tarLongFileMode>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- No point performing PMD in assembly project -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- No point performing Findbugs in assembly project -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<dependencies>
|
|
<!-- Orbit Deps -->
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.annotation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>org.objectweb.asm</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.activation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.mail.glassfish</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.transaction</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
<artifactId>javax.security.auth.message</artifactId>
|
|
</dependency>
|
|
|
|
<!-- jetty deps -->
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-deploy</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>test-jetty-webapp</artifactId>
|
|
<type>war</type>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>test-proxy-webapp</artifactId>
|
|
<type>war</type>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-jmx</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-start</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-servlets</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.websocket</groupId>
|
|
<artifactId>websocket-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-jsp</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-plus</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-continuation</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-proxy</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-jaas</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-annotations</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-rewrite</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.spdy</groupId>
|
|
<artifactId>spdy-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.spdy</groupId>
|
|
<artifactId>spdy-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.spdy</groupId>
|
|
<artifactId>spdy-http-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.spdy</groupId>
|
|
<artifactId>spdy-example-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.example-async-rest</groupId>
|
|
<artifactId>example-async-rest-webapp</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|