Skip to content

Commit

Permalink
build: use maven flatten plugin to generate resolved pom (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 authored Dec 1, 2022
1 parent 2e05742 commit 3f95789
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ java-client/pegasus-*
java-client/dependency-reduced-pom.xml
java-client/src/main/java/org/apache/pegasus/apps/*
java-client/src/main/java/org/apache/pegasus/replication/*
java-client/.flattened-pom.xml

# Created by .ignore support plugin (hsz.mobi)
### SBT template
Expand Down
23 changes: 23 additions & 0 deletions java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<goals>
<goal>clean</goal>
</goals>
<phase>clean</phase>
</execution>
</executions>
</plugin>
</plugins>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
Expand Down

0 comments on commit 3f95789

Please sign in to comment.