You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2005/09/14 22:46:02 UTC

[jira] Created: (MNG-895) Profile resources not merged with main POM

Profile resources not merged with main POM
------------------------------------------

         Key: MNG-895
         URL: http://jira.codehaus.org/browse/MNG-895
     Project: Maven 2
        Type: Bug
    Versions: 2.0-beta-1    
 Reporter: Mark Hobson


Profile resources are not merged with resources specified in the main POM, e.g.:

<project>
 ...
 <build>
   <resources>
     <resource>a</resource>
   </resources>
 </build>
 <profiles>
   <profile>
     ...
     <build>
       <resources>
         <resource>b</resource>
       </resources>
     </build>
     ...
   </profile>
 </profiles>
 ...
</project>

The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-895) Profile resources not merged with main POM

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-895?page=comments#action_47196 ] 

John Casey commented on MNG-895:
--------------------------------

What's the outcome of the dev discussion on this?

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>     Assignee: John Casey
>      Fix For: 2.0-beta-3

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-895) Profile resources not merged with main POM

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-895?page=all ]

John Casey updated MNG-895:
---------------------------

    Fix Version: 2.0-beta-2

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>      Fix For: 2.0-beta-2

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-895) Profile resources not merged with main POM

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-895?page=all ]

Brett Porter updated MNG-895:
-----------------------------

    Component: maven-project

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>     Assignee: John Casey
>      Fix For: 2.0-beta-2

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-895) Profile resources not merged with main POM

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-895?page=all ]
     
Brett Porter closed MNG-895:
----------------------------

     Assign To: Brett Porter  (was: John Casey)
    Resolution: Fixed

inheriting in profile and main build

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-895) Profile resources not merged with main POM

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-895?page=comments#action_46471 ] 

Brett Porter commented on MNG-895:
----------------------------------

this is by design so that it matches inheritence. Probably needs to be discussed on the developer list if it is proposed that we change inheritence to merge resource lists.

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-895) Profile resources not merged with main POM

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-895?page=comments#action_47038 ] 

Brett Porter commented on MNG-895:
----------------------------------

note that this will also affect filters as they are not inherited at present for the same reason

> Profile resources not merged with main POM
> ------------------------------------------
>
>          Key: MNG-895
>          URL: http://jira.codehaus.org/browse/MNG-895
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>     Assignee: John Casey
>      Fix For: 2.0-beta-2

>
>
> Profile resources are not merged with resources specified in the main POM, e.g.:
> <project>
>  ...
>  <build>
>    <resources>
>      <resource>a</resource>
>    </resources>
>  </build>
>  <profiles>
>    <profile>
>      ...
>      <build>
>        <resources>
>          <resource>b</resource>
>        </resources>
>      </build>
>      ...
>    </profile>
>  </profiles>
>  ...
> </project>
> The effective resources block should consist of both 'a' and 'b' when the profile is activated, but currently 'b' overrides 'a'.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org