Skip to content

Commit

Permalink
chore(pom.xml): remove unused build-helper-maven-plugin to simplify b…
Browse files Browse the repository at this point in the history
…uild process

feat(pom.xml): add build-helper-maven-plugin to attach the original pom.xml as an artifact during the initialize phase
  • Loading branch information
jandroav committed Nov 30, 2023
1 parent 06de065 commit 1b9d9a7
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@
<artifactId>docker-maven-plugin</artifactId>
<version>0.43.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand All @@ -226,6 +221,29 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-pom</id>
<phase>initialize</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.basedir}/pom.xml</file>
<type>pom</type>
<classifier>original</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
Expand Down

0 comments on commit 1b9d9a7

Please sign in to comment.