Issue #3514 backport of mod files filtering (#6897)

* Issue #3514 backport of mod files filtering

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>

* ignore keystore file

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>

* fix directory name

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>

* fix directory name

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>

* fix inclusion of keystore file

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
Olivier Lamy 2021-09-24 11:59:30 +10:00 committed by GitHub
parent 9b47247f0e
commit b286497d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 211 additions and 140 deletions

View File

@ -128,7 +128,7 @@
<configuration>
<target>
<concat destfile="${project.build.directory}/gcloud-datastore.mod">
<fileset file="src/main/config-template/modules/gcloud-datastore.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/gcloud-datastore.mod" />
<fileset file="${project.build.directory}/deps.txt" />
</concat>
</target>
@ -136,23 +136,6 @@
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-template</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -17,7 +17,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules</outputDirectory>
<includes>
<include>gcloud-datastore.mod</include>

View File

@ -23,7 +23,7 @@ lib/jetty-hazelcast-${jetty.version}.jar
lib/hazelcast/hazelcast-${hazelcast.version}.jar
[ini]
hazelcast.version?=3.12.12
hazelcast.version?=@hazelcast.version@
[license]
Hazelcast is an open source project hosted on Github and released under the Apache 2.0 license.

View File

@ -25,7 +25,7 @@ lib/hazelcast/hazelcast-${hazelcast.version}.jar
lib/hazelcast/hazelcast-client-${hazelcast.version}.jar
[ini]
hazelcast.version?=3.12.12
hazelcast.version?=@hazelcast.version@
jetty.webapp.addSystemClasses+=,org.eclipse.jetty.hazelcast.
jetty.webapp.addServerClasses+=,-org.eclipse.jetty.hazelcast.

View File

@ -33,9 +33,15 @@
<useBuildFilters>false</useBuildFilters>
<includeEmptyDirs>true</includeEmptyDirs>
<outputDirectory>${assembly-directory}</outputDirectory>
<encoding>UTF-8</encoding>
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>

View File

@ -29,6 +29,6 @@ Conscrypt is distributed under the Apache Licence 2.0
https://github.com/google/conscrypt/blob/master/LICENSE
[ini]
conscrypt.version?=2.0.0
conscrypt.version?=@conscrypt.version@
jetty.sslContext.provider?=Conscrypt

View File

@ -17,9 +17,12 @@ etc/hawtio.xml
[files]
etc/hawtio/
lib/hawtio/
maven://io.hawt/hawtio-default/1.4.16|lib/hawtio/hawtio.war
maven://io.hawt/hawtio-default/${hawtio.version}|lib/hawtio/hawtio.war
basehome:modules/hawtio/hawtio.xml|etc/hawtio.xml
[ini]
hawtio.version?=@hawtio.version@
[license]
Hawtio is a redhat JBoss project released under the Apache License, v2.0
http://hawt.io/

View File

@ -17,8 +17,8 @@ etc/jamon.xml
[files]
lib/jamon/
maven://com.jamonapi/jamon/2.81|lib/jamon/jamon-2.81.jar
maven://com.jamonapi/jamon_war/2.81/war|lib/jamon/jamon.war
maven://com.jamonapi/jamon/${jamon.version}|lib/jamon/jamon-${jamon.version}.jar
maven://com.jamonapi/jamon_war/${jamon.version}/war|lib/jamon/jamon.war
basehome:modules/jamon/jamon.xml|etc/jamon.xml
[lib]
@ -29,6 +29,9 @@ JAMon is a source forge hosted project released under a BSD derived license.
http://jamonapi.sourceforge.net
http://jamonapi.sourceforge.net/JAMonLicense.html
[ini]
jamon.version?=@jamon.version@
[ini-template]
## Jamon Configuration
# jamon.summaryLabels=demo

View File

@ -15,9 +15,12 @@ jmx
etc/jolokia.xml
[files]
maven://org.jolokia/jolokia-war/1.2.2/war|lib/jolokia/jolokia.war
maven://org.jolokia/jolokia-war/${jolokia.version}/war|lib/jolokia/jolokia.war
basehome:modules/jolokia/jolokia.xml|etc/jolokia.xml
[ini]
jolokia.version?=@jolokia.version@
[license]
Jolokia is released under the Apache License 2.0
http://www.jolokia.org

View File

@ -12,7 +12,7 @@ lib/infinispan-common-${jetty.version}.jar
lib/infinispan/*.jar
[ini]
infinispan.version?=9.4.8.Final
infinispan.version?=@infinispan.version@
[license]
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.

View File

@ -60,7 +60,7 @@
<configuration>
<target>
<concat destfile="${project.build.directory}/infinispan-embedded-query-libs.mod">
<fileset file="src/main/config-template/modules/sessions/infinispan/embedded/infinispan-embedded-query-libs.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/sessions/infinispan/embedded/infinispan-embedded-query-libs.mod" />
<fileset file="${project.build.directory}/deps.txt" />
</concat>
</target>
@ -68,23 +68,6 @@
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-template</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -17,7 +17,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules/sessions/infinispan/embedded</outputDirectory>
<includes>
<include>infinispan-embedded-query-libs.mod</include>

View File

@ -61,7 +61,7 @@
<configuration>
<target>
<concat destfile="${project.build.directory}/infinispan-embedded-libs.mod">
<fileset file="src/main/config-templates/modules/sessions/infinispan/embedded/infinispan-embedded-libs.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/sessions/infinispan/embedded/infinispan-embedded-libs.mod" />
<fileset file="${project.build.directory}/deps.txt" />
</concat>
</target>
@ -70,23 +70,6 @@
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-templates</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -17,7 +17,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules/sessions/infinispan/embedded</outputDirectory>
<includes>
<include>infinispan-embedded-libs.mod</include>

View File

@ -16,7 +16,7 @@ sessions/infinispan/embedded/infinispan-embedded-libs
basehome:modules/sessions/infinispan/embedded/infinispan.xml|etc/infinispan.xml
[ini]
infinispan.version?=9.4.8.Final
infinispan.version?=@infinispan.version@
[ini-template]
#jetty.session.infinispan.idleTimeout.seconds=0

View File

@ -61,7 +61,7 @@
<configuration>
<target>
<concat destfile="${project.build.directory}/infinispan-remote-query-libs.mod">
<fileset file="src/main/config-template/modules/sessions/infinispan/remote/infinispan-remote-query-libs.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/sessions/infinispan/remote/infinispan-remote-query-libs.mod" />
<fileset file="${project.build.directory}/deps.txt" />
</concat>
</target>
@ -69,23 +69,6 @@
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-template</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -17,7 +17,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules/sessions/infinispan/remote</outputDirectory>
<includes>
<include>infinispan-remote-query-libs.mod</include>

View File

@ -62,7 +62,7 @@
<configuration>
<target>
<concat destfile="${project.build.directory}/infinispan-remote-libs.mod">
<fileset file="src/main/config-template/modules/sessions/infinispan/remote/infinispan-remote-libs.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/sessions/infinispan/remote/infinispan-remote-libs.mod" />
<fileset file="${project.build.directory}/deps.txt" />
</concat>
</target>
@ -70,24 +70,6 @@
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-template</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -17,7 +17,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules/sessions/infinispan/remote</outputDirectory>
<includes>
<include>infinispan-remote-libs.mod</include>

View File

@ -16,7 +16,7 @@ sessions/infinispan/remote/infinispan-remote-libs
basehome:modules/sessions/infinispan/remote/resources/hotrod-client.properties|resources/hotrod-client.properties
[ini]
infinispan.version?=9.4.8.Final
infinispan.version?=@infinispan.version@
[license]

View File

@ -19,7 +19,7 @@
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.4.7</version>
<version>${xmemcached.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>

View File

@ -11,7 +11,10 @@ session-store
slf4j-api
[files]
maven://com.googlecode.xmemcached/xmemcached/2.4.5|lib/xmemcached/xmemcached-2.4.5.jar
maven://com.googlecode.xmemcached/xmemcached/${xmemcached.version}|lib/xmemcached/xmemcached-${xmemcached.version}.jar
[ini]
xmemcached.version?=@xmemcached.version@
[lib]
lib/jetty-memcached-sessions-${jetty.version}.jar

View File

@ -34,7 +34,7 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.13.2</version>
<version>${mongodb.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -14,7 +14,7 @@ sessions
sessions/mongo/${connection-type}
[files]
maven://org.mongodb/mongo-java-driver/2.13.2|lib/nosql/mongo-java-driver-2.13.2.jar
maven://org.mongodb/mongo-java-driver/${mongodb.version}|lib/nosql/mongo-java-driver-${mongodb.version}.jar
[lib]
lib/jetty-nosql-${jetty.version}.jar
@ -28,6 +28,7 @@ http://www.apache.org/licenses/LICENSE-2.0.html
[ini]
connection-type?=address
mongodb.version?=@mongodb.version@
[ini-template]
#jetty.session.mongo.dbName=HttpSessions

View File

@ -26,6 +26,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources-keystore</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>${project.build.directory}/jetty-config-files</outputDirectory>
<resources>
<resource>
<directory>src/main/config</directory>
<includes>
<include>**/**keystore**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>

View File

@ -82,32 +82,15 @@
<replaceregexp file="${project.build.directory}/deps.txt" match=" *(.*):(.*):jar:(.*):.*$" replace="maven://\1/\2/\3|lib/jnr/\2-\3.jar" byline="true" />
<replaceregexp file="${project.build.directory}/deps.txt" match="The following files have been resolved:" replace="[files]" />
<concat destfile="${project.build.directory}/unixsocket.mod">
<fileset file="src/main/config-template/modules/unixsocket-prefix.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/unixsocket-prefix.mod" />
<fileset file="${project.build.directory}/deps.txt" />
<fileset file="src/main/config-template/modules/unixsocket-suffix.mod" />
<fileset file="${project.build.directory}/jetty-config-files/modules/unixsocket-suffix.mod" />
</concat>
</target>
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -7,7 +7,7 @@
</formats>
<fileSets>
<fileSet>
<directory>src/main/config-template</directory>
<directory>${project.build.directory}/jetty-config-files</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**</include>
@ -18,7 +18,7 @@
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<directory>${project.build.directory}</directory>
<outputDirectory>modules</outputDirectory>
<includes>
<include>unixsocket.mod</include>

View File

@ -28,5 +28,5 @@ Log4j is released under the Apache 2.0 license.
http://www.apache.org/licenses/LICENSE-2.0.html
[ini]
log4j.version?=1.2.17
log4j.version?=@log4j.version@
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/log4j/

View File

@ -36,5 +36,5 @@ or (per the licensee's choosing) under
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
[ini]
logback.version?=1.2.3
logback.version?=@logback.version@
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/logback/

View File

@ -16,7 +16,7 @@ maven://org.slf4j/slf4j-api/${slf4j.version}|lib/slf4j/slf4j-api-${slf4j.version
lib/slf4j/slf4j-api-${slf4j.version}.jar
[ini]
slf4j.version?=1.7.30
slf4j.version?=@slf4j.version@
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/slf4j/
[license]

132
pom.xml
View File

@ -37,9 +37,11 @@
<gson.version>2.8.8</gson.version>
<guava.version>30.1.1-jre</guava.version>
<guice.version>5.0.1</guice.version>
<hawtio.version>2.13.5</hawtio.version>
<hazelcast.version>3.12.12</hazelcast.version>
<infinispan.version>9.4.8.Final</infinispan.version>
<infinispan.protostream.version>4.3.4.Final</infinispan.protostream.version>
<jamon.version>2.81</jamon.version>
<javax.activation.version>1.1.0.v201105071233</javax.activation.version>
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
<javax.mail.glassfish.version>1.4.1.v201005082020</javax.mail.glassfish.version>
@ -57,6 +59,7 @@
<jnr-ffi.version>2.2.7</jnr-ffi.version>
<jnr-posix.version>3.1.10</jnr-posix.version>
<jnr-unixsocket.version>0.38.11</jnr-unixsocket.version>
<jolokia.version>1.3.3</jolokia.version>
<jsp.version>8.5.70</jsp.version>
<junit.version>5.8.1</junit.version>
<log4j2.version>2.14.0</log4j2.version>
@ -64,6 +67,7 @@
<maven.version>3.8.2</maven.version>
<maven.plugin-tools.version>3.6.1</maven.plugin-tools.version>
<maven.resolver.version>1.7.2</maven.resolver.version>
<mongodb.version>2.13.2</mongodb.version>
<osgi.annotation.version>8.0.0</osgi.annotation.version>
<osgi.core.version>6.0.0</osgi.core.version>
<plexus-container.version>2.1.0</plexus-container.version>
@ -72,6 +76,7 @@
<taglibs-standard-impl.version>1.2.5</taglibs-standard-impl.version>
<taglibs-standard-spec.version>1.2.5</taglibs-standard-spec.version>
<weld.version>3.1.5.Final</weld.version>
<xmemcached.version>2.4.7</xmemcached.version>
<!-- some maven plugins versions -->
<asciidoctor.plugin.version>2.2.1</asciidoctor.plugin.version>
@ -508,7 +513,7 @@
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-assembly-descriptors</artifactId>
<version>1.0</version>
<version>1.1</version>
</dependency>
</dependencies>
</plugin>
@ -1102,6 +1107,42 @@
<artifactId>ant-launcher</artifactId>
<version>${ant.version}</version>
</dependency>
<!-- some modules use those artifacts so we can manage version from here -->
<dependency>
<groupId>io.hawt</groupId>
<artifactId>hawtio-default</artifactId>
<version>${hawtio.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.jamonapi</groupId>
<artifactId>jamon</artifactId>
<version>${jamon.version}</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.jamonapi</groupId>
<artifactId>jamon_war</artifactId>
<version>${jamon.version}</version>
<type>war</type>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-war</artifactId>
<version>${jolokia.version}</version>
<type>war</type>
</dependency>
</dependencies>
</dependencyManagement>
@ -1204,6 +1245,36 @@
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<outputDirectory>${project.build.directory}/jetty-config-files</outputDirectory>
<resources>
<resource>
<directory>src/main/config</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*keystore</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
@ -1224,6 +1295,65 @@
</plugins>
</build>
</profile>
<profile>
<id>config-template</id>
<activation>
<file>
<exists>src/main/config-template</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<useDefaultDelimiters>false</useDefaultDelimiters>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<outputDirectory>${project.build.directory}/jetty-config-files</outputDirectory>
<resources>
<resource>
<directory>src/main/config-template</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.p12</exclude>
</excludes>
</resource>
</resources>
</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>src/main/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eclipse-release</id>
<modules>