Skip to content

Commit b10ace9

Browse files
committed
Configure maven-source-plugin in samm-cli pom
1 parent 81e2740 commit b10ace9

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -281,27 +281,8 @@
281281
</build>
282282

283283
<profiles>
284-
<!--
285-
This profile is active by default and will disable the generation of the source jar.
286-
When the native profile (see below) is active, the source jar will be generated.
287-
If we don't do it like this, the source jar is created and attached twice, which
288-
trips up Maven: "We have duplicated artifacts attached."
289-
-->
290-
<profile>
291-
<id>non-native</id>
292-
<activation>
293-
<activeByDefault>true</activeByDefault>
294-
</activation>
295-
<properties>
296-
<maven.source.skip>true</maven.source.skip>
297-
</properties>
298-
</profile>
299-
300284
<profile>
301285
<id>native</id>
302-
<properties>
303-
<maven.source.skip>false</maven.source.skip>
304-
</properties>
305286
<build>
306287
<plugins>
307288
<plugin>

tools/samm-cli/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,29 @@
570570
</build>
571571
</profile>
572572

573+
<!--
574+
This profile is active by default and will disable the generation of the source jar.
575+
When the native profile (see below) is active, the source jar will be generated.
576+
If we don't do it like this, the source jar is created and attached twice, which
577+
trips up Maven: "We have duplicated artifacts attached."
578+
-->
579+
<profile>
580+
<id>non-native</id>
581+
<activation>
582+
<activeByDefault>true</activeByDefault>
583+
</activation>
584+
<properties>
585+
<maven.source.skip>true</maven.source.skip>
586+
</properties>
587+
</profile>
588+
573589
<profile>
574590
<id>native</id>
575591
<properties>
576592
<packaging-type>native</packaging-type>
577593
<skip.maven.surefire>true</skip.maven.surefire>
578594
<skip.maven.failsafe>false</skip.maven.failsafe>
595+
<maven.source.skip>false</maven.source.skip>
579596
</properties>
580597

581598
<build>

0 commit comments

Comments
 (0)