This is an automated email from the ASF dual-hosted git repository. dblevins pushed a commit to branch redoparent in repository https://gitbox.apache.org/repos/asf/tomee-jakarta.git
commit ed46cea6517c05200a402b24a783ccc01fec222e Author: David Blevins <[email protected]> AuthorDate: Mon Mar 22 23:27:29 2021 -0700 Update version printed at startup to TomEE 9 instead of TomEE 8 --- tomee/tomee-microprofile-webapp/pom.xml | 31 +++++++++++++++++++++++++++++++ tomee/tomee-plume-webapp/pom.xml | 30 ++++++++++++++++++++++++++++++ tomee/tomee-plus-webapp/pom.xml | 30 ++++++++++++++++++++++++++++++ tomee/tomee-webprofile-webapp/pom.xml | 30 ++++++++++++++++++++++++++++++ 4 files changed, 121 insertions(+) diff --git a/tomee/tomee-microprofile-webapp/pom.xml b/tomee/tomee-microprofile-webapp/pom.xml index 33a1d7f..144f55c 100644 --- a/tomee/tomee-microprofile-webapp/pom.xml +++ b/tomee/tomee-microprofile-webapp/pom.xml @@ -145,6 +145,13 @@ </dependencies> <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -166,6 +173,27 @@ </configuration> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <tstamp> + <format property="TSTAMP" pattern="hh:mm" /> + </tstamp> + <replace file="target/classes/openejb-version.properties" token="@DATE-REPLACED-BY-MAVEN@" value="${DSTAMP}" /> + <replace file="target/classes/openejb-version.properties" token="@TIME-REPLACED-BY-MAVEN@" value="${TSTAMP}" /> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.eclipse.transformer</groupId> <artifactId>org.eclipse.transformer.maven</artifactId> <version>0.2.0</version> @@ -191,6 +219,9 @@ <patchSources> <source>${project.basedir}/../../src/patch/java/</source> </patchSources> + <replacements> + <openejb-version.properties>${project.build.outputDirectory}/openejb-version.properties</openejb-version.properties> + </replacements> </configuration> <executions> <execution> diff --git a/tomee/tomee-plume-webapp/pom.xml b/tomee/tomee-plume-webapp/pom.xml index 48ebf2c..b811a96 100644 --- a/tomee/tomee-plume-webapp/pom.xml +++ b/tomee/tomee-plume-webapp/pom.xml @@ -191,6 +191,12 @@ </dependencies> <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> <plugins> <!-- Looks like the war still have myfaces because of the overlay with tomee-webapp --> <plugin> @@ -226,6 +232,27 @@ </configuration> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <tstamp> + <format property="TSTAMP" pattern="hh:mm" /> + </tstamp> + <replace file="target/classes/openejb-version.properties" token="@DATE-REPLACED-BY-MAVEN@" value="${DSTAMP}" /> + <replace file="target/classes/openejb-version.properties" token="@TIME-REPLACED-BY-MAVEN@" value="${TSTAMP}" /> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.eclipse.transformer</groupId> <artifactId>org.eclipse.transformer.maven</artifactId> <version>0.2.0</version> @@ -252,6 +279,9 @@ <source>${project.basedir}/../../src/patch/java/</source> <source>${project.basedir}/src/patch/java/</source> </patchSources> + <replacements> + <openejb-version.properties>${project.build.outputDirectory}/openejb-version.properties</openejb-version.properties> + </replacements> </configuration> <executions> <execution> diff --git a/tomee/tomee-plus-webapp/pom.xml b/tomee/tomee-plus-webapp/pom.xml index a7e334a..ce160e1 100644 --- a/tomee/tomee-plus-webapp/pom.xml +++ b/tomee/tomee-plus-webapp/pom.xml @@ -189,6 +189,12 @@ </dependencies> <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -210,6 +216,27 @@ </configuration> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <tstamp> + <format property="TSTAMP" pattern="hh:mm" /> + </tstamp> + <replace file="target/classes/openejb-version.properties" token="@DATE-REPLACED-BY-MAVEN@" value="${DSTAMP}" /> + <replace file="target/classes/openejb-version.properties" token="@TIME-REPLACED-BY-MAVEN@" value="${TSTAMP}" /> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.eclipse.transformer</groupId> <artifactId>org.eclipse.transformer.maven</artifactId> <version>0.2.0</version> @@ -235,6 +262,9 @@ <patchSources> <source>${project.basedir}/../../src/patch/java/</source> </patchSources> + <replacements> + <openejb-version.properties>${project.build.outputDirectory}/openejb-version.properties</openejb-version.properties> + </replacements> </configuration> <executions> <execution> diff --git a/tomee/tomee-webprofile-webapp/pom.xml b/tomee/tomee-webprofile-webapp/pom.xml index 81e9523..113cf4c 100644 --- a/tomee/tomee-webprofile-webapp/pom.xml +++ b/tomee/tomee-webprofile-webapp/pom.xml @@ -35,6 +35,12 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -118,6 +124,27 @@ </configuration> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <tstamp> + <format property="TSTAMP" pattern="hh:mm" /> + </tstamp> + <replace file="target/classes/openejb-version.properties" token="@DATE-REPLACED-BY-MAVEN@" value="${DSTAMP}" /> + <replace file="target/classes/openejb-version.properties" token="@TIME-REPLACED-BY-MAVEN@" value="${TSTAMP}" /> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.eclipse.transformer</groupId> <artifactId>org.eclipse.transformer.maven</artifactId> <version>0.2.0</version> @@ -146,6 +173,9 @@ <sourceExcludes> <exclude>org/apache/cxf</exclude> </sourceExcludes> + <replacements> + <openejb-version.properties>${project.build.outputDirectory}/openejb-version.properties</openejb-version.properties> + </replacements> </configuration> <executions> <execution>
