You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dirk Olmes (JIRA)" <ji...@codehaus.org> on 2007/04/05 16:08:01 UTC
[jira] Created: (MNG-2933) Declaring the same resource dir in pom
and overwriting it in a profile
Declaring the same resource dir in pom and overwriting it in a profile
----------------------------------------------------------------------
Key: MNG-2933
URL: http://jira.codehaus.org/browse/MNG-2933
Project: Maven 2
Issue Type: Bug
Components: Profiles
Affects Versions: 2.0.6
Reporter: Dirk Olmes
Priority: Minor
I have a pom that declares a resource dir in the main section of the pom and a profile which re-declares the same resource dir in a profile, this time with excludes.
Example:
<project ...>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
<profiles>
<profile>
<id...>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>....</excludes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project
Running mvn -X with the profile activated shows that the same resource dir is added twice to the runtime model.
I would have expected the profile to "overwrite" the resource directory as this is the behaviour for re-declaring dependencies in a profile over dependencies in the main section.
--
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
[jira] Updated: (MNG-2933) Declaring the same resource dir in pom
and overwriting it in a profile
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-2933:
------------------------------
Fix Version/s: (was: Reviewed Pending Version Assignment)
2.x
> Declaring the same resource dir in pom and overwriting it in a profile
> ----------------------------------------------------------------------
>
> Key: MNG-2933
> URL: http://jira.codehaus.org/browse/MNG-2933
> Project: Maven 2
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.6
> Reporter: Dirk Olmes
> Priority: Minor
> Fix For: 2.x
>
>
> I have a pom that declares a resource dir in the main section of the pom and a profile which re-declares the same resource dir in a profile, this time with excludes.
> Example:
> <project ...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> </build>
> <profiles>
> <profile>
> <id...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <excludes>....</excludes>
> </resource>
> </resources>
> </build>
> </profile>
> </profiles>
> </project
> Running mvn -X with the profile activated shows that the same resource dir is added twice to the runtime model.
> I would have expected the profile to "overwrite" the resource directory as this is the behaviour for re-declaring dependencies in a profile over dependencies in the main section.
--
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
[jira] Updated: (MNG-2933) Declaring the same resource dir in pom
and overwriting it in a profile
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-2933:
------------------------------
Fix Version/s: (was: 3.x (to be reviewed))
Backlog
> Declaring the same resource dir in pom and overwriting it in a profile
> ----------------------------------------------------------------------
>
> Key: MNG-2933
> URL: http://jira.codehaus.org/browse/MNG-2933
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.6
> Reporter: Dirk Olmes
> Priority: Minor
> Fix For: Backlog
>
>
> I have a pom that declares a resource dir in the main section of the pom and a profile which re-declares the same resource dir in a profile, this time with excludes.
> Example:
> <project ...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> </build>
> <profiles>
> <profile>
> <id...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <excludes>....</excludes>
> </resource>
> </resources>
> </build>
> </profile>
> </profiles>
> </project
> Running mvn -X with the profile activated shows that the same resource dir is added twice to the runtime model.
> I would have expected the profile to "overwrite" the resource directory as this is the behaviour for re-declaring dependencies in a profile over dependencies in the main section.
--
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
[jira] Updated: (MNG-2933) Declaring the same resource dir in pom
and overwriting it in a profile
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-2933:
-------------------------------
Fix Version/s: (was: 2.x)
3.0-alpha-7
> Declaring the same resource dir in pom and overwriting it in a profile
> ----------------------------------------------------------------------
>
> Key: MNG-2933
> URL: http://jira.codehaus.org/browse/MNG-2933
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.6
> Reporter: Dirk Olmes
> Priority: Minor
> Fix For: 3.0-alpha-7
>
>
> I have a pom that declares a resource dir in the main section of the pom and a profile which re-declares the same resource dir in a profile, this time with excludes.
> Example:
> <project ...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> </build>
> <profiles>
> <profile>
> <id...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <excludes>....</excludes>
> </resource>
> </resources>
> </build>
> </profile>
> </profiles>
> </project
> Running mvn -X with the profile activated shows that the same resource dir is added twice to the runtime model.
> I would have expected the profile to "overwrite" the resource directory as this is the behaviour for re-declaring dependencies in a profile over dependencies in the main section.
--
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
[jira] Updated: (MNG-2933) Declaring the same resource dir in pom
and overwriting it in a profile
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-2933:
-----------------------------------
Fix Version/s: (was: 3.0-alpha-8)
3.x (to be reviewed)
Solving this properly requires an id field for the {{<resource>}} element to be able to tell merging and additive effects apart.
> Declaring the same resource dir in pom and overwriting it in a profile
> ----------------------------------------------------------------------
>
> Key: MNG-2933
> URL: http://jira.codehaus.org/browse/MNG-2933
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.6
> Reporter: Dirk Olmes
> Priority: Minor
> Fix For: 3.x (to be reviewed)
>
>
> I have a pom that declares a resource dir in the main section of the pom and a profile which re-declares the same resource dir in a profile, this time with excludes.
> Example:
> <project ...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> </build>
> <profiles>
> <profile>
> <id...>
> <build>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <excludes>....</excludes>
> </resource>
> </resources>
> </build>
> </profile>
> </profiles>
> </project
> Running mvn -X with the profile activated shows that the same resource dir is added twice to the runtime model.
> I would have expected the profile to "overwrite" the resource directory as this is the behaviour for re-declaring dependencies in a profile over dependencies in the main section.
--
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