Skip to content

Commit 250cbae

Browse files
committed
fix: bruk reprosessert pom.xml fra jakarta jar - unpack dertter angi som pomFile til deploy-plugin
1 parent 6aab034 commit 250cbae

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

pom.xml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,30 @@
374374
</executions>
375375
</plugin>
376376
<plugin>
377+
<groupId>org.apache.maven.plugins</groupId>
378+
<artifactId>maven-dependency-plugin</artifactId>
379+
<executions>
380+
<execution>
381+
<id>unpack</id>
382+
<phase>generate-sources</phase>
383+
<goals>
384+
<goal>unpack</goal>
385+
</goals>
386+
<configuration>
387+
<artifactItems>
388+
<artifactItem>
389+
<groupId>${project.groupId}</groupId>
390+
<artifactId>${project.artifactId}-jakarta</artifactId>
391+
<version>${project.version}</version>
392+
<outputDirectory>${project.build.directory}/jakarta</outputDirectory>
393+
<includes>**\/pom.xml</includes>
394+
</artifactItem>
395+
</artifactItems>
396+
</configuration>
397+
</execution>
398+
</executions>
399+
</plugin>
400+
<plugin>
377401
<groupId>org.apache.maven.plugins</groupId>
378402
<artifactId>maven-deploy-plugin</artifactId>
379403
<executions>
@@ -384,11 +408,9 @@
384408
</goals>
385409
<configuration>
386410
<repositoryId>github</repositoryId>
387-
<packaging>jar</packaging>
411+
<!-- må matche unpacked pom.xml fra over (disse endrer ikke path ved transform p.t.) -->
412+
<pomFile>${project.build.directory}/jakarta/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</pomFile>
388413
<url>${project.distributionManagement.repository.url}</url>
389-
<artifactId>${project.artifactId}-jakarta</artifactId>
390-
<groupId>${project.groupId}</groupId>
391-
<version>${project.version}</version>
392414
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar</file>
393415
</configuration>
394416
</execution>

0 commit comments

Comments
 (0)