Skip to content

Commit 4d16c2c

Browse files
committed
Add flatten plugin to correctly resolve revision variable in mvn deploy
1 parent 759475f commit 4d16c2c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

java/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,31 @@
9999
</dependency>
100100
</dependencies>
101101
</plugin>
102+
<plugin>
103+
<groupId>org.codehaus.mojo</groupId>
104+
<artifactId>flatten-maven-plugin</artifactId>
105+
<version>1.1.0</version>
106+
<configuration>
107+
<updatePomFile>true</updatePomFile>
108+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
109+
</configuration>
110+
<executions>
111+
<execution>
112+
<id>flatten</id>
113+
<phase>process-resources</phase>
114+
<goals>
115+
<goal>flatten</goal>
116+
</goals>
117+
</execution>
118+
<execution>
119+
<id>flatten.clean</id>
120+
<phase>clean</phase>
121+
<goals>
122+
<goal>clean</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
</plugin>
102127
</plugins>
103128
<pluginManagement>
104129
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->

0 commit comments

Comments
 (0)