You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Reinhard Nägele (JIRA)" <ji...@codehaus.org> on 2009/02/20 08:06:19 UTC

[jira] Commented: (MRELEASE-415) Plugin fails to activate profiles in submodules.

    [ http://jira.codehaus.org/browse/MRELEASE-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166356#action_166356 ] 

Reinhard Nägele commented on MRELEASE-415:
------------------------------------------

I can confirm this problem. Here's the related discussion on the mailing list:

http://www.nabble.com/Unable-to-attach-assembly-during-release:perform.-td22093024.html

> Plugin fails to activate profiles in submodules.
> ------------------------------------------------
>
>                 Key: MRELEASE-415
>                 URL: http://jira.codehaus.org/browse/MRELEASE-415
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.0-beta-8
>         Environment: Fedora8, Sun Java 1.6.0_07, Maven 2.0.9
>            Reporter: David C. Hicks
>
> (I hope this is not a duplicate.  I searched JIRA but didn't find anything that looked like one.)
> In a multi-module project, profiles that are activated only for sub-modules (not the parent project) are omitted from execution during release:perform.  In my specific case, I have a large, multi-module project in which one of the sub-modules is there to create an assembly during release.  Since I only want it to run during release, I've placed that into a profile in the sub-module's pom.xml.  When I run release:perform, I activate the profile.  However, the profile is never executed.
> Workaround: By adding a dummy profile to the parent pom.xml, I was able to get release:perform to operate as desired.
> I'm afraid I don't have an example to upload, at this time.  If I can find the time, I'll try to create one and come back to upload it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira