[infinispan-issues] [JBoss JIRA] (ISPN-2252) mvn deploy -Pdistribution doesn't uploads the sources
Adrian Nistor (JIRA)
jira-events at lists.jboss.org
Thu Sep 6 09:03:32 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716327#comment-12716327 ]
Adrian Nistor commented on ISPN-2252:
-------------------------------------
I tried this on both 5.2.0.ALPHA1 and 5.2.0.ALPHA2 with maven 3.0.4 and 3.0.3 (it seems maven version is irrelevant). The attached src jars are properly created when running 'mvn clean install -Pdistribution' on ALPHA1 but not on ALPHA2, so it seems the issue is a side effect of pom changes from ISPN-1959 (distribution reduction). But this is not a bug we need solve, it's just the way activeByDefault works when there are multiple profiles defined at the same level and one of them is manually activated (distribution). So the 'extras' profile has to be activated explicitly now. I will add the 'extras' to the command line in the release scripts.
> mvn deploy -Pdistribution doesn't uploads the sources
> -----------------------------------------------------
>
> Key: ISPN-2252
> URL: https://issues.jboss.org/browse/ISPN-2252
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.2.0.Alpha3
> Reporter: Mircea Markus
> Assignee: Adrian Nistor
> Fix For: 5.2.0.Alpha4
>
>
> Here's why:
> - the "distribution" which we use for releasing which was initially present in root's pom.xml was also added in "parent/pom.xml" (ISPN-1959).
> - the sources to be uploaded were generated by an "activeByDefault" profile located in "parent/pom.xml", named "extras"
> - the "activeByDefault" configuration has a rather error prone semantic, that is it only activates a profile if there's no other profile in the same file explicitly or implicitly active[1]
> - not having the source is a show stopper for releasing as nexus has a validation in place to check for sources (a good thing).
> The solution is to merge the "distribution" profile from parent\pom.xml into the preexisting one from root. This would allow the "extras" to kick in as there isn't any other active profile in parent\pom.xml (at least when running -Pdistribution).
> [1] from mvn documentation
> {quote}
> ... This profile will automatically be active for all builds unless another profile in the same POM is activated using one of the previously described methods. All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command line or through its activation config. ...
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list