Skip to content

Commit a9fc846

Browse files
committed
fix: bytter til antrun for extract pom.xml
1 parent 250cbae commit a9fc846

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

pom.xml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -374,29 +374,26 @@
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>
377+
<groupId>org.apache.maven.plugins</groupId>
378+
<artifactId>maven-antrun-plugin</artifactId>
379+
<executions>
380+
<execution>
381+
<phase>package</phase>
382+
<configuration>
383+
<target>
384+
<unzip src="${project.build.directory}/${project.artifactId}-jakarta-${project.version}.jar" dest="${project.build.directory}/jakarta">
385+
<patternset>
386+
<include name="META-INF/maven/**/pom.xml"/>
387+
</patternset>
388+
</unzip>
389+
</target>
390+
</configuration>
391+
<goals>
392+
<goal>run</goal>
393+
</goals>
394+
</execution>
395+
</executions>
396+
</plugin>
400397
<plugin>
401398
<groupId>org.apache.maven.plugins</groupId>
402399
<artifactId>maven-deploy-plugin</artifactId>

0 commit comments

Comments
 (0)