Skip to content

Commit

Permalink
Configure maven-source-plugin in samm-cli pom
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Nov 8, 2024
1 parent 81e2740 commit b10ace9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,27 +281,8 @@
</build>

<profiles>
<!--
This profile is active by default and will disable the generation of the source jar.
When the native profile (see below) is active, the source jar will be generated.
If we don't do it like this, the source jar is created and attached twice, which
trips up Maven: "We have duplicated artifacts attached."
-->
<profile>
<id>non-native</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.source.skip>true</maven.source.skip>
</properties>
</profile>

<profile>
<id>native</id>
<properties>
<maven.source.skip>false</maven.source.skip>
</properties>
<build>
<plugins>
<plugin>
Expand Down
17 changes: 17 additions & 0 deletions tools/samm-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,29 @@
</build>
</profile>

<!--
This profile is active by default and will disable the generation of the source jar.
When the native profile (see below) is active, the source jar will be generated.
If we don't do it like this, the source jar is created and attached twice, which
trips up Maven: "We have duplicated artifacts attached."
-->
<profile>
<id>non-native</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.source.skip>true</maven.source.skip>
</properties>
</profile>

<profile>
<id>native</id>
<properties>
<packaging-type>native</packaging-type>
<skip.maven.surefire>true</skip.maven.surefire>
<skip.maven.failsafe>false</skip.maven.failsafe>
<maven.source.skip>false</maven.source.skip>
</properties>

<build>
Expand Down

0 comments on commit b10ace9

Please sign in to comment.