Skip to content

Commit 58c1df8

Browse files
committed
fix: repack jakarta jar uten pom.xml
1 parent 21fea3d commit 58c1df8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,22 @@
392392
<goal>run</goal>
393393
</goals>
394394
</execution>
395+
<execution>
396+
<id>antrun-delete-file</id>
397+
<phase>package</phase>
398+
<configuration>
399+
<target>
400+
<!-- ompakker jar fil uten pom.xml -->
401+
<jar destfile="${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar">
402+
<zipfileset src="${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar" excludes="META-INF/maven/**"/>
403+
</jar>
404+
</target>
405+
</configuration>
406+
<goals>
407+
<goal>run</goal>
408+
</goals>
409+
</execution>
410+
395411
</executions>
396412
</plugin>
397413
<plugin>
@@ -408,7 +424,7 @@
408424
<!-- må matche unpacked pom.xml fra over (disse endrer ikke path ved transform p.t.) -->
409425
<pomFile>${project.build.directory}/jakarta/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</pomFile>
410426
<url>${project.distributionManagement.repository.url}</url>
411-
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar</file>
427+
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar</file>
412428
</configuration>
413429
</execution>
414430
</executions>

0 commit comments

Comments
 (0)