Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
fixes up flatten plugin
Browse files Browse the repository at this point in the history
need to enable at top-level
  • Loading branch information
danhaywood committed Oct 3, 2019
1 parent 47ac5d2 commit 9214de0
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
43 changes: 41 additions & 2 deletions modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,48 @@
</configuration>

</plugin>

</plugins>
</pluginManagement>
<!--
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<pomElements>
<parent>resolve</parent>
<name>resolve</name>
<description>resolve</description>
<url>resolve</url>
<scm>resolve</scm>
<developers>resolve</developers>
<properties>resolve</properties>
<dependencyManagement>resolve</dependencyManagement>
<dependencies>resolve</dependencies>
<profiles>resolve</profiles>
</pomElements>
</configuration>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
-->
</build>

<dependencyManagement>
Expand Down Expand Up @@ -1654,7 +1693,7 @@
<id>flatten</id>
<activation>
<property>
<name>revision</name>
<name>!skip.flatten</name>
</property>
</activation>
<build>
Expand Down
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,47 @@
</modules>
</profile>

<profile>
<id>flatten</id>
<activation>
<property>
<name>!skip.flatten</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<flattenMode>bom</flattenMode>
<updatePomFile>true</updatePomFile>
<pomElements>
<parent>resolve</parent>
</pomElements>
</configuration>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>


Expand Down
1 change: 1 addition & 0 deletions webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<description>Domain application with example subdomains.</description>

<properties>
<revision>1.0.0-SNAPSHOT</revision>
<isis.version>1.17.0</isis.version>
</properties>

Expand Down

0 comments on commit 9214de0

Please sign in to comment.