Commit f28099a
committed
Fix duplicate attachment of sources artifact
The previous configuration caused the sources to be attached twice
via two different goals: once using jar-no-fork, and once using jar.
The reason this happened is because pom-scijava-base specified
<id>attach-sources</id>, which is aligned with the super POM, which
caused the two executions to be _concatenated_, not _replaced_ as I
believed would occur.
With this change, the following commands both look good to me now:
mvn help:effective-pom
mvn -Prelease-profile help:effective-pom
Both of them now have two executions:
* attach-sources from the super POM, overridden to <phase>none</phase>.
* attach-sources-jar from pom-scijava-base, using <goal>jar</goal>.
With luck, this will make releases of SciJava components work better.
The only thing I don't understand is why _any_ releases have been
working at all -- in theory, this problems breaks all release builds...1 parent ba137cd commit f28099a
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
473 | 478 | | |
474 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
475 | 484 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| |||
0 commit comments