Skip to content

Commit 5d2bb33

Browse files
authored
Set version inside published pom (#59)
1 parent 07d104e commit 5d2bb33

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ node_modules
3939
# Generated
4040
web_deploy/
4141
/target/
42+
.flattened-pom.xml
4243

4344
# User-specific stuff:
4445
.idea/

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,24 @@
111111
</execution>
112112
</executions>
113113
</plugin>
114+
<plugin>
115+
<groupId>org.codehaus.mojo</groupId>
116+
<artifactId>flatten-maven-plugin</artifactId>
117+
<version>1.7.1</version>
118+
<executions>
119+
<execution>
120+
<id>flatten</id>
121+
<phase>process-resources</phase>
122+
<goals>
123+
<goal>flatten</goal>
124+
</goals>
125+
</execution>
126+
</executions>
127+
<configuration>
128+
<updatePomFile>true</updatePomFile>
129+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
130+
</configuration>
131+
</plugin>
114132
</plugins>
115133
</build>
116134
</profile>
@@ -146,6 +164,24 @@
146164
</execution>
147165
</executions>
148166
</plugin>
167+
<plugin>
168+
<groupId>org.codehaus.mojo</groupId>
169+
<artifactId>flatten-maven-plugin</artifactId>
170+
<version>1.7.1</version>
171+
<executions>
172+
<execution>
173+
<id>flatten</id>
174+
<phase>process-resources</phase>
175+
<goals>
176+
<goal>flatten</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
<configuration>
181+
<updatePomFile>true</updatePomFile>
182+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
183+
</configuration>
184+
</plugin>
149185
</plugins>
150186
</build>
151187
</profile>

0 commit comments

Comments
 (0)