You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2021/03/23 06:30:34 UTC

[tomee-jakarta] 03/08: Setup Eclipse Transformer and TomEE Patch Plugin in all webapp pom.xmls

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 594a3616c1e3a958a1167d9bfea938d081294c41
Author: David Blevins <da...@gmail.com>
AuthorDate: Mon Mar 22 22:49:11 2021 -0700

    Setup Eclipse Transformer and TomEE Patch Plugin in all webapp pom.xmls
---
 tomee/tomee-microprofile-webapp/pom.xml | 36 +++++++++++++++++++++++++++
 tomee/tomee-plume-webapp/pom.xml        | 37 +++++++++++++++++++++++++++
 tomee/tomee-plus-webapp/pom.xml         | 36 +++++++++++++++++++++++++++
 tomee/tomee-webprofile-webapp/pom.xml   | 44 ++++++++++++++++++++++++++++++---
 4 files changed, 150 insertions(+), 3 deletions(-)

diff --git a/tomee/tomee-microprofile-webapp/pom.xml b/tomee/tomee-microprofile-webapp/pom.xml
index 9dcd02a..33a1d7f 100644
--- a/tomee/tomee-microprofile-webapp/pom.xml
+++ b/tomee/tomee-microprofile-webapp/pom.xml
@@ -165,6 +165,42 @@
           </descriptors>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.eclipse.transformer</groupId>
+        <artifactId>org.eclipse.transformer.maven</artifactId>
+        <version>0.2.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+        <configuration>
+          <overwrite>true</overwrite>
+<!--          <rulesDirectUri>/org/tomitribe/transformer/jakarta/jakarta-direct.properties</rulesDirectUri>-->
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.tomee.patch</groupId>
+        <artifactId>tomee-patch-plugin</artifactId>
+        <version>0.4-SNAPSHOT</version>
+        <configuration>
+          <select>tomee-microprofile-webapp-transformed-.*\.war</select>
+          <patchSources>
+            <source>${project.basedir}/../../src/patch/java/</source>
+          </patchSources>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
diff --git a/tomee/tomee-plume-webapp/pom.xml b/tomee/tomee-plume-webapp/pom.xml
index 2c2712f..48ebf2c 100644
--- a/tomee/tomee-plume-webapp/pom.xml
+++ b/tomee/tomee-plume-webapp/pom.xml
@@ -225,6 +225,43 @@
           </descriptors>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.eclipse.transformer</groupId>
+        <artifactId>org.eclipse.transformer.maven</artifactId>
+        <version>0.2.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+        <configuration>
+          <overwrite>true</overwrite>
+<!--          <rulesDirectUri>/org/tomitribe/transformer/jakarta/jakarta-direct.properties</rulesDirectUri>-->
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.tomee.patch</groupId>
+        <artifactId>tomee-patch-plugin</artifactId>
+        <version>0.4-SNAPSHOT</version>
+        <configuration>
+          <select>tomee-plume-webapp-transformed-.*\.war</select>
+          <patchSources>
+            <source>${project.basedir}/../../src/patch/java/</source>
+            <source>${project.basedir}/src/patch/java/</source>
+          </patchSources>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/tomee/tomee-plus-webapp/pom.xml b/tomee/tomee-plus-webapp/pom.xml
index 6d8ef81..a7e334a 100644
--- a/tomee/tomee-plus-webapp/pom.xml
+++ b/tomee/tomee-plus-webapp/pom.xml
@@ -209,6 +209,42 @@
           </descriptors>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.eclipse.transformer</groupId>
+        <artifactId>org.eclipse.transformer.maven</artifactId>
+        <version>0.2.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+        <configuration>
+          <overwrite>true</overwrite>
+<!--          <rulesDirectUri>/org/tomitribe/transformer/jakarta/jakarta-direct.properties</rulesDirectUri>-->
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.tomee.patch</groupId>
+        <artifactId>tomee-patch-plugin</artifactId>
+        <version>0.4-SNAPSHOT</version>
+        <configuration>
+          <select>tomee-plus-webapp-transformed-.*\.war</select>
+          <patchSources>
+            <source>${project.basedir}/../../src/patch/java/</source>
+          </patchSources>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/tomee/tomee-webprofile-webapp/pom.xml b/tomee/tomee-webprofile-webapp/pom.xml
index 8b6c913..81e9523 100644
--- a/tomee/tomee-webprofile-webapp/pom.xml
+++ b/tomee/tomee-webprofile-webapp/pom.xml
@@ -27,9 +27,9 @@
     <version>9.0.0-M7-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
-  <artifactId>tomee-webapp</artifactId>
+  <artifactId>tomee-webprofile-webapp</artifactId>
   <packaging>jar</packaging>
-  <name>TomEE :: TomEE :: Webapp</name>
+  <name>TomEE :: TomEE :: WebProfile Webapp</name>
   <properties>
     <tomee.build.name>${project.groupId}.tomee.webapp</tomee.build.name>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -117,7 +117,45 @@
           </sourceFolders>
         </configuration>
       </plugin>
-
+      <plugin>
+        <groupId>org.eclipse.transformer</groupId>
+        <artifactId>org.eclipse.transformer.maven</artifactId>
+        <version>0.2.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+        <configuration>
+          <overwrite>true</overwrite>
+<!--          <rulesDirectUri>/org/tomitribe/transformer/jakarta/jakarta-direct.properties</rulesDirectUri>-->
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.tomee.patch</groupId>
+        <artifactId>tomee-patch-plugin</artifactId>
+        <version>0.4-SNAPSHOT</version>
+        <configuration>
+          <select>tomee-webprofile-webapp-transformed-.*\.war</select>
+          <patchSources>
+            <source>${project.basedir}/../../src/patch/java/</source>
+          </patchSources>
+          <sourceExcludes>
+            <exclude>org/apache/cxf</exclude>
+          </sourceExcludes>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <dependencies>