[ http://jira.codehaus.org/browse/MNG-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182825#action_182825 ]
Rob ten Hove commented on MNG-1388: ----------------------------------- Update: the situation described above does work when profile activation using properties is used: {noformat} <profile> <id>stub</id> <activation> <property> <name>stub</name> </property> </activation> ... </profile> {noformat} Running "mvn -Pstub -Dstub clean package" on A's pom gives both DO1_stub *and* DO2_stub. > Transitive Dependencies in a profile are not used > ------------------------------------------------- > > Key: MNG-1388 > URL: http://jira.codehaus.org/browse/MNG-1388 > Project: Maven 2 > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 2.0 > Environment: Windows XP using Maven 2.0. > Reporter: Damian Bradicich > Fix For: 3.x > > > I have a jar project file that defines a dependency inside a certain profile. > If I then include that project inside of another war project, the > dependencies defined in the jar project's profile isn't getting transferred > over to the war. > Ie we have this: > A depends on SQL or Oracle depending on profile > B depends on A. > If sql profile is active, I would expect that when I build B, it pulls > the transitive dependancy on sql from 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