Skip to content

Commit ad5078f

Browse files
authored
Fix jakarta dependencies build error (#136)
1 parent 86b2649 commit ad5078f

File tree

4 files changed

+55
-27
lines changed

4 files changed

+55
-27
lines changed

pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@
873873
</configuration>
874874
</plugin>
875875
<plugin>
876-
<groupId>org.sonatype.central</groupId>
876+
<groupId>org.sonatype.central</groupId>
877877
<artifactId>central-publishing-maven-plugin</artifactId>
878878
<version>0.8.0</version>
879879
<extensions>true</extensions>
@@ -1087,6 +1087,16 @@
10871087
<artifactId>logback-classic</artifactId>
10881088
<version>1.3.15</version>
10891089
</dependency>
1090+
<dependency>
1091+
<groupId>org.openidentityplatform.openam.jakarta</groupId>
1092+
<artifactId>jaxrpc-impl</artifactId>
1093+
<version>${project.version}</version>
1094+
</dependency>
1095+
<dependency>
1096+
<groupId>org.openidentityplatform.openam.jakarta</groupId>
1097+
<artifactId>jaxrpc-spi</artifactId>
1098+
<version>${project.version}</version>
1099+
</dependency>
10901100
</dependencies>
10911101
</dependencyManagement>
10921102
</project>

transform-jakarta/jaxrpc-parent/jaxrpc-impl/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@
2424
<version>6.0.0-SNAPSHOT</version>
2525
</parent>
2626

27+
<properties>
28+
<transformer.artifact.version>1.1.3_01</transformer.artifact.version>
29+
</properties>
30+
2731
<artifactId>jaxrpc-impl</artifactId>
28-
<version>1.1.3_01</version>
2932
<name>${project.groupId}.${project.artifactId}</name>
3033

3134
<build>
3235
<plugins>
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-dependency-plugin</artifactId>
39+
</plugin>
3340
<plugin>
3441
<groupId>org.eclipse.transformer</groupId>
3542
<artifactId>transformer-maven-plugin</artifactId>

transform-jakarta/jaxrpc-parent/jaxrpc-spi/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@
2424
<version>6.0.0-SNAPSHOT</version>
2525
</parent>
2626

27+
<properties>
28+
<transformer.artifact.version>1.1.3_01</transformer.artifact.version>
29+
</properties>
30+
2731
<artifactId>jaxrpc-spi</artifactId>
28-
<version>1.1.3_01</version>
2932
<name>${project.groupId}.${project.artifactId}</name>
3033

3134
<build>
3235
<plugins>
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-dependency-plugin</artifactId>
39+
</plugin>
3340
<plugin>
3441
<groupId>org.eclipse.transformer</groupId>
3542
<artifactId>transformer-maven-plugin</artifactId>

transform-jakarta/pom.xml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,45 +35,49 @@
3535
</modules>
3636
<properties>
3737
<transformer.artifact.groupId>${project.groupId}</transformer.artifact.groupId>
38+
<transformer.artifact.version>${project.version}</transformer.artifact.version>
3839
</properties>
3940
<build>
4041
<pluginManagement>
4142
<plugins>
4243
<plugin>
43-
<groupId>org.eclipse.transformer</groupId>
44-
<artifactId>transformer-maven-plugin</artifactId>
45-
<version>0.5.0</version>
46-
<extensions>true</extensions>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-dependency-plugin</artifactId>
4746
<executions>
4847
<execution>
49-
<id>default-jar</id>
48+
<id>unpack</id>
49+
<phase>process-classes</phase>
5050
<goals>
51-
<goal>jar</goal>
51+
<goal>unpack</goal>
5252
</goals>
5353
<configuration>
54-
<artifact>
55-
<groupId>${transformer.artifact.groupId}</groupId>
56-
<artifactId>${project.artifactId}</artifactId>
57-
<version>${project.version}</version>
58-
</artifact>
54+
<artifactItems>
55+
<artifactItem>
56+
<groupId>${transformer.artifact.groupId}</groupId>
57+
<artifactId>${project.artifactId}</artifactId>
58+
<version>${transformer.artifact.version}</version>
59+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
60+
</artifactItem>
61+
</artifactItems>
5962
</configuration>
6063
</execution>
64+
</executions>
65+
</plugin>
66+
<plugin>
67+
<groupId>org.eclipse.transformer</groupId>
68+
<artifactId>transformer-maven-plugin</artifactId>
69+
<version>0.5.0</version>
70+
<configuration>
71+
<rules>
72+
<jakartaDefaults>true</jakartaDefaults>
73+
</rules>
74+
</configuration>
75+
<executions>
6176
<execution>
62-
<id>transform-jakarta</id>
77+
<id>default-transform</id>
6378
<goals>
64-
<goal>jar</goal>
79+
<goal>transform</goal>
6580
</goals>
66-
<configuration>
67-
<rules>
68-
<jakartaDefaults>true</jakartaDefaults>
69-
</rules>
70-
<artifact>
71-
<groupId>${transformer.artifact.groupId}</groupId>
72-
<artifactId>${project.artifactId}</artifactId>
73-
<version>${project.version}</version>
74-
</artifact>
75-
<classifier/>
76-
</configuration>
7781
</execution>
7882
</executions>
7983
</plugin>

0 commit comments

Comments
 (0)