Revert previous (incorrectly addded -Drevision); Add flatten-maven-plugin

This commit is contained in:
2022-08-02 09:10:20 -05:00
parent 22b322fe83
commit 010ee595ce
2 changed files with 26 additions and 1 deletions

View File

@ -69,7 +69,7 @@ commands:
- run:
name: Run Maven Jar Deploy
command: |
mvn -s -Drevision=0.3.0-SNAPSHOT .circleci/mvn-settings.xml jar:jar deploy:deploy
mvn -s .circleci/mvn-settings.xml jar:jar deploy:deploy
- save_cache:
paths:
- ~/.m2

25
pom.xml
View File

@ -137,6 +137,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>