[ https://issues.apache.org/jira/browse/MNG-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610838#comment-16610838 ]
Abhinay Agarwal commented on MNG-1388: -------------------------------------- I am trying to upgrade a library to work with JDK 11. There are some dependencies which are no longer a part of the JDK, so I introduced a profile which would activate depending on the JDK and would take care of the missing dependencies: {code:java} <profile> <id>JDK 11</id> <activation> <activeByDefault>false</activeByDefault> <jdk>11</jdk> </activation> <properties> <javafx.version>11-ea+24</javafx.version> </properties> <dependencies> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>${javafx.version}</version> </dependency> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-fxml</artifactId> <version>${javafx.version}</version> </dependency> </dependencies> </profile>{code} The profile works well when I try to compile and install the library with JDK 11. But when I try to use the library as a dependency in another application, maven is unable to resolve the transitive dependencies inside the profile. Is there a workaround for this problem? > Transitive Dependencies in a profile are not used > ------------------------------------------------- > > Key: MNG-1388 > URL: https://issues.apache.org/jira/browse/MNG-1388 > Project: Maven > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 2.0 > Environment: Windows XP using Maven 2.0. > Reporter: dbradicich > Priority: Major > > 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 was sent by Atlassian JIRA (v7.6.3#76005)