Skip to content

Commit c4e2edd

Browse files
flatten maven plugin only when release
1 parent 3231372 commit c4e2edd

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed

jfiletreeprettyprinter-core/pom.xml

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,41 +49,36 @@
4949
</dependency>
5050
</dependencies>
5151

52-
<build>
53-
<plugins>
54-
<plugin>
55-
<groupId>org.codehaus.mojo</groupId>
56-
<artifactId>flatten-maven-plugin</artifactId>
57-
<configuration>
58-
<flattenMode>ossrh</flattenMode>
59-
<updatePomFile>true</updatePomFile>
60-
</configuration>
61-
<executions>
62-
<execution>
63-
<id>flatten</id>
64-
<phase>process-resources</phase>
65-
<goals>
66-
<goal>flatten</goal>
67-
</goals>
68-
</execution>
69-
<execution>
70-
<id>flatten.clean</id>
71-
<phase>clean</phase>
72-
<goals>
73-
<goal>clean</goal>
74-
</goals>
75-
</execution>
76-
</executions>
77-
</plugin>
78-
</plugins>
79-
</build>
80-
81-
8252
<profiles>
8353
<profile>
8454
<id>release</id>
8555
<build>
8656
<plugins>
57+
58+
<plugin>
59+
<groupId>org.codehaus.mojo</groupId>
60+
<artifactId>flatten-maven-plugin</artifactId>
61+
<configuration>
62+
<flattenMode>ossrh</flattenMode>
63+
<updatePomFile>true</updatePomFile>
64+
</configuration>
65+
<executions>
66+
<execution>
67+
<id>flatten</id>
68+
<phase>process-resources</phase>
69+
<goals>
70+
<goal>flatten</goal>
71+
</goals>
72+
</execution>
73+
<execution>
74+
<id>flatten.clean</id>
75+
<phase>clean</phase>
76+
<goals>
77+
<goal>clean</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
8782
<plugin>
8883
<groupId>org.sonatype.central</groupId>
8984
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)