[ https://issues.apache.org/jira/browse/MNG-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17294779#comment-17294779 ]
Robert Scholte commented on MNG-7110: ------------------------------------- When comparing the debug output and ignoring the obvious differences there is one that is very interesting: {noformat:title=Maven 3.6.3} [DEBUG] Created new class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Importing foreign packages into class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Included: net.oneandone.maven.poms:foss-configs:jar:1.2 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.1 [DEBUG] Extension realms for project com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:jar:1.0-SNAPSHOT: [ClassRealm[extension>net.oneandone.maven.poms:foss-configs:1.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]] [DEBUG] Created new class realm project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT [DEBUG] Populating class realm project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT [DEBUG] Included: net.oneandone.maven.poms:foss-configs:jar:1.2 [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [DEBUG] Extension realms for project net.oneandone.maven.poms:foss-parent:pom:1.6.1: [ClassRealm[extension>net.oneandone.maven.poms:foss-configs:1.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]] [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] {noformat} {noformat:title=Maven 4} [DEBUG] Created new class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Importing foreign packages into class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm extension>net.oneandone.maven.poms:foss-configs:1.2 [DEBUG] Included: net.oneandone.maven.poms:foss-configs:jar:1.2 [DEBUG] Extension realms for project com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:jar:1.0-SNAPSHOT: [ClassRealm[extension>net.oneandone.maven.poms:foss-configs:1.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]] [DEBUG] Created new class realm project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT [DEBUG] Populating class realm project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT [DEBUG] Included: net.oneandone.maven.poms:foss-configs:jar:1.2 [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [DEBUG] Extension realms for project org.codehaus.groovy:groovy-all:pom:2.5.4: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.spockframework:spock-bom:pom:1.2-groovy-2.5: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project net.oneandone.maven.poms:foss-parent:pom:1.6.1: [ClassRealm[extension>net.oneandone.maven.poms:foss-configs:1.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]] [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[project>com.github.mfriedenhagen:plugin-classpath-maven-3-and-4:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [DEBUG] Extension realms for project org.codehaus.groovy:groovy-all:pom:2.5.4: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.spockframework:spock-bom:pom:1.2-groovy-2.5: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] {noformat} For some reason the extension dependencies are now handled as projects, which is clearly a bug. Maybe [~gnodet] has an idea, I'll need to investigate this. > Different behavior of extensions > -------------------------------- > > Key: MNG-7110 > URL: https://issues.apache.org/jira/browse/MNG-7110 > Project: Maven > Issue Type: Bug > Affects Versions: 4.0.x-candidate > Reporter: Mirko Friedenhagen > Assignee: Robert Scholte > Priority: Major > Fix For: 4.0.0, 4.0.0-alpha-1 > > > * In my POM I configured the net.rumati.maven.plugins:velocity-maven-plugin > which should render a HTML file. > * The parent of the project has a global extension in the build section. > * The jar of the extension does include a velocity which is picked up quite > fine by the velocity-maven-plugin from > the classpath by 3.6.3 but when using 4.0.0 I now need to add the extension > jar as a dependency to the plugin. -- This message was sent by Atlassian Jira (v8.3.4#803005)