Skip to content
Permalink
Browse files
GERONIMO-6827 Add support for a Jakarta compatible version
  • Loading branch information
jeanouii committed Feb 16, 2022
1 parent 8088835 commit d073c50eb6797ce3cd912c50b7590936e10bfea0
Showing 3 changed files with 47 additions and 1 deletion.
@@ -107,6 +107,11 @@
</instructions>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
@@ -89,6 +89,10 @@
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

39 pom.xml
@@ -47,6 +47,8 @@
<url>http://geronimo.apache.org/maven/${siteId}/${project.version}</url>
<properties>
<siteId>components/${project.artifactId}</siteId>

<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
</properties>

<dependencyManagement>
@@ -129,7 +131,42 @@
</instructions>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>jakarta</shadedClassifierName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<artifactSet> <!-- don't include transitive deps -->
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.transaction</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.validation</pattern>
<shadedPattern>jakarta.validation</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

0 comments on commit d073c50

Please sign in to comment.