2017-08-08 12:47:04 -04:00
|
|
|
<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">
|
2017-06-06 11:55:12 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-project</artifactId>
|
2017-11-21 15:11:31 -05:00
|
|
|
<version>9.4.9-SNAPSHOT</version>
|
2017-06-06 11:55:12 -04:00
|
|
|
</parent>
|
2017-08-08 12:47:04 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2017-06-06 11:55:12 -04:00
|
|
|
<artifactId>jetty-distribution</artifactId>
|
|
|
|
<name>Jetty :: Distribution Assemblies</name>
|
|
|
|
<packaging>pom</packaging>
|
2017-08-08 12:47:04 -04:00
|
|
|
|
2017-06-06 11:55:12 -04:00
|
|
|
<properties>
|
|
|
|
<assembly-directory>${basedir}/target/distribution</assembly-directory>
|
2017-08-08 12:47:04 -04:00
|
|
|
<home-directory>${basedir}/target/home</home-directory>
|
2017-06-06 11:55:12 -04:00
|
|
|
</properties>
|
2017-08-08 12:47:04 -04:00
|
|
|
|
2017-06-06 11:55:12 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2017-08-08 12:47:04 -04:00
|
|
|
<!--
|
|
|
|
Copies the additional distribution content over the unpacked jetty-home
|
|
|
|
artifact contents, after the antrun execution that initially populates
|
|
|
|
the jetty-distribution directory
|
|
|
|
-->
|
2017-06-06 11:55:12 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-base-assembly-tree</id>
|
2017-08-08 12:47:04 -04:00
|
|
|
<phase>process-resources</phase>
|
2017-06-06 11:55:12 -04:00
|
|
|
<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>
|
2017-05-29 07:42:54 -04:00
|
|
|
<id>populate distribution from home</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<copy todir="${assembly-directory}">
|
|
|
|
<fileset dir="${home-directory}/jetty-home-${project.version}/" />
|
|
|
|
</copy>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>set jetty.sh</id>
|
|
|
|
<phase>process-resources</phase>
|
2017-06-06 11:55:12 -04:00
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<chmod dir="${assembly-directory}/bin" perm="755" includes="**/*.sh" />
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-08-08 12:47:04 -04:00
|
|
|
<execution>
|
|
|
|
<id>removeKeystore</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<delete file="${assembly-directory}/etc/keystore" />
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-06-06 11:55:12 -04:00
|
|
|
</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>
|
2017-08-08 12:47:04 -04:00
|
|
|
<!--
|
|
|
|
The jetty-home artifact is the starting point for the jetty-distribution
|
|
|
|
and must happen early in the build process
|
|
|
|
-->
|
2017-06-06 11:55:12 -04:00
|
|
|
<execution>
|
2017-08-08 12:47:04 -04:00
|
|
|
<id>unpack-jetty-home</id>
|
2017-06-06 11:55:12 -04:00
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
2017-08-08 12:47:04 -04:00
|
|
|
<goal>unpack</goal>
|
2017-06-06 11:55:12 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2017-08-08 12:47:04 -04:00
|
|
|
<artifactId>jetty-home</artifactId>
|
2017-06-06 11:55:12 -04:00
|
|
|
<version>${project.version}</version>
|
2017-08-08 12:47:04 -04:00
|
|
|
<type>zip</type>
|
2017-06-06 11:55:12 -04:00
|
|
|
<overWrite>true</overWrite>
|
2017-08-08 12:47:04 -04:00
|
|
|
<outputDirectory>${home-directory}</outputDirectory>
|
2017-06-06 11:55:12 -04:00
|
|
|
</artifactItem>
|
2017-08-08 12:47:04 -04:00
|
|
|
</artifactItems>
|
|
|
|
<excludes>META-INF/**</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>copy</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
2017-06-06 11:55:12 -04:00
|
|
|
<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}/demo-base/webapps</outputDirectory>
|
|
|
|
<destFileName>test.war</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-jaas-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>war</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<includes>**</includes>
|
|
|
|
<outputDirectory>${assembly-directory}/demo-base/webapps</outputDirectory>
|
|
|
|
<destFileName>test-jaas.war</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-jndi-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>war</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<includes>**</includes>
|
|
|
|
<outputDirectory>${assembly-directory}/demo-base/webapps</outputDirectory>
|
|
|
|
<destFileName>test-jndi.war</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-spec-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>war</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<includes>**</includes>
|
|
|
|
<outputDirectory>${assembly-directory}/demo-base/webapps</outputDirectory>
|
|
|
|
<destFileName>test-spec.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}/demo-base/webapps</outputDirectory>
|
2017-08-16 17:05:37 -04:00
|
|
|
<destFileName>javadoc-proxy.war</destFileName>
|
2017-06-06 11:55:12 -04:00
|
|
|
</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}/demo-base/webapps</outputDirectory>
|
|
|
|
<destFileName>async-rest.war</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>unpack-test-webapp-config</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>test-jetty-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<classifier>config</classifier>
|
|
|
|
<type>jar</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<excludes>META-INF/**</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>unpack-test-jaas-config</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-jaas-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<classifier>config</classifier>
|
|
|
|
<type>jar</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<excludes>META-INF/**</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>unpack-test-jndi-config</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-jndi-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<classifier>config</classifier>
|
|
|
|
<type>jar</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<excludes>META-INF/**</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>unpack-test-spec-config</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty.tests</groupId>
|
|
|
|
<artifactId>test-spec-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<classifier>config</classifier>
|
|
|
|
<type>jar</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<excludes>META-INF/**</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-08-08 12:47:04 -04:00
|
|
|
<id>unpack-documentation</id>
|
|
|
|
<phase>process-resources</phase>
|
2017-06-06 11:55:12 -04:00
|
|
|
<goals>
|
2017-08-08 12:47:04 -04:00
|
|
|
<goal>unpack</goal>
|
2017-06-06 11:55:12 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2017-08-08 12:47:04 -04:00
|
|
|
<artifactId>jetty-documentation</artifactId>
|
2017-06-06 11:55:12 -04:00
|
|
|
<version>${project.version}</version>
|
2017-08-08 12:47:04 -04:00
|
|
|
<classifier>html</classifier>
|
|
|
|
<type>zip</type>
|
2017-06-06 11:55:12 -04:00
|
|
|
<overWrite>true</overWrite>
|
2017-08-08 12:47:04 -04:00
|
|
|
<outputDirectory>${assembly-directory}/demo-base/webapps/doc</outputDirectory>
|
2017-06-06 11:55:12 -04:00
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
2017-08-08 12:47:04 -04:00
|
|
|
<!--
|
|
|
|
Setup the jetty distribution as a jetty.home/jetty.base combo using start.ini configuration mechanism
|
|
|
|
-->
|
2017-06-06 11:55:12 -04:00
|
|
|
<execution>
|
|
|
|
<id>setup home</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.eclipse.jetty.start.Main</mainClass>
|
|
|
|
<arguments>
|
|
|
|
<argument>jetty.home=${assembly-directory}</argument>
|
|
|
|
<argument>jetty.base=${assembly-directory}</argument>
|
|
|
|
<argument>--add-to-start=server,deploy,websocket,ext,resources,jsp,jstl,http</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>java</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2017-08-08 12:47:04 -04:00
|
|
|
<!--
|
|
|
|
Setup the demo-base using the start.d configuration mechanism
|
|
|
|
-->
|
2017-06-06 11:55:12 -04:00
|
|
|
<execution>
|
2017-08-08 12:47:04 -04:00
|
|
|
<id>setup demo-base-startd</id>
|
2017-06-06 11:55:12 -04:00
|
|
|
<phase>process-classes</phase>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.eclipse.jetty.start.Main</mainClass>
|
|
|
|
<arguments>
|
|
|
|
<argument>jetty.home=${assembly-directory}</argument>
|
|
|
|
<argument>jetty.base=${assembly-directory}/demo-base</argument>
|
2018-01-22 13:39:59 -05:00
|
|
|
<argument>--add-to-startd=server,continuation,deploy,websocket,ext,resources,client,annotations,jndi,servlets,jsp,jstl,http,https,threadpool</argument>
|
2017-06-06 11:55:12 -04:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>java</goal>
|
|
|
|
</goals>
|
|
|
|
</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>
|
2017-11-06 02:24:09 -05:00
|
|
|
<tarLongFileMode>posix</tarLongFileMode>
|
2017-06-06 11:55:12 -04:00
|
|
|
<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>
|
|
|
|
|
2017-08-08 12:47:04 -04:00
|
|
|
<dependencies>
|
2018-03-05 16:02:00 -05:00
|
|
|
<!-- For users of jetty-distribution via maven, none of the following
|
|
|
|
dependencies should be mandatory to function.
|
|
|
|
These only exist to make the reactor sane during the build
|
|
|
|
of jetty-distribution itself -->
|
2017-06-06 11:55:12 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2017-08-08 12:47:04 -04:00
|
|
|
<artifactId>jetty-home</artifactId>
|
2017-06-06 11:55:12 -04:00
|
|
|
<version>${project.version}</version>
|
2017-08-08 12:47:04 -04:00
|
|
|
<type>pom</type>
|
2018-03-05 16:02:00 -05:00
|
|
|
<optional>true</optional>
|
2017-06-06 11:55:12 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>test-jetty-webapp</artifactId>
|
|
|
|
<type>war</type>
|
|
|
|
<version>${project.version}</version>
|
2018-03-05 16:02:00 -05:00
|
|
|
<optional>true</optional>
|
2017-06-06 11:55:12 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>test-proxy-webapp</artifactId>
|
|
|
|
<type>war</type>
|
|
|
|
<version>${project.version}</version>
|
2018-03-05 16:02:00 -05:00
|
|
|
<optional>true</optional>
|
2017-06-06 11:55:12 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty.example-async-rest</groupId>
|
|
|
|
<artifactId>example-async-rest-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>war</type>
|
2018-03-05 16:02:00 -05:00
|
|
|
<optional>true</optional>
|
2017-06-06 11:55:12 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2017-08-08 12:47:04 -04:00
|
|
|
<artifactId>jetty-documentation</artifactId>
|
2017-06-06 11:55:12 -04:00
|
|
|
<version>${project.version}</version>
|
2017-08-08 12:47:04 -04:00
|
|
|
<classifier>html</classifier>
|
|
|
|
<type>zip</type>
|
2018-03-05 16:02:00 -05:00
|
|
|
<optional>true</optional>
|
2017-06-06 11:55:12 -04:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|