[ https://issues.apache.org/jira/browse/MDEP-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468912#comment-16468912 ]
John commented on MDEP-82: -------------------------- To narrow this down to versions. maven = 3.5.2 {code:java} mvn dependency:go-offline mvn -o clean install{code} Fails with missing poms for transitive dependencies of plugins: {code:java} --- jacoco-maven-plugin:0.8.0:prepare-agent (default-prepare-agent) @ my-lib --- [WARNING] The POM for junit:junit:jar:4.8.2 is missing, no dependency information available [WARNING] The POM for org.apache.maven.reporting:maven-reporting-impl:jar:2.1 is missing, no dependency information available [WARNING] The POM for org.jacoco:org.jacoco.agent:jar:runtime:0.8.0 is missing, no dependency information available [WARNING] The POM for org.jacoco:org.jacoco.core:jar:0.8.0 is missing, no dependency information available [WARNING] The POM for org.jacoco:org.jacoco.report:jar:0.8.0 is missing, no dependency information available {code} 1) junit is relied upon _somewhere_ in this build without being explicitly listed anywhere. 2) the org.jacoco:org.jacoco.* dependencies _are_ listed explicitly by org.jacoco, however, when resolved, they only pulled the .jar, not the .pom. This led to the later failures. But I noticed it was defaulting to using a slightly older maven-dependency-plugin, 2.8. So i tried: {code:java} mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.0:go-offline {code} Forcing that version resolved _all_ transitive plugin dependencies properly! However, I ran into further missing dependencies, specifically with surefire. After explicitly adding those, I was able to build successfully. So, there are several layers of dependency resolutions not occurring, depending on the version of the plugin being used, and how other plugins are being implemented. Definitely no easy answer here. Our company is committed to getting this to work at the moment, so I'll probably continue to be bothersome > go-offline / resolve-plugins does not resolve all plugin dependencies > --------------------------------------------------------------------- > > Key: MDEP-82 > URL: https://issues.apache.org/jira/browse/MDEP-82 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: go-offline, resolve-plugins > Affects Versions: 2.0-alpha-4 > Environment: Maven 2.0.6 > Reporter: Arne Degenring > Priority: Major > Attachments: maven-dependency-plugin-2.3.patch, pom.xml > > > The attached pom.xml is a very simple JAR project, without any direct > dependencies or plugin dependencies. > Start with an empty local repository, and run mvn dependency:go-offline on > it. Some files get downloaded, but not everything that is needed for the > build. If you run "mvn -o package" afterwards, you end up with the following > error: > {noformat}[ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not > exist or no valid version could be found{noformat} > Afterwards, even "mvn package" without the "-o" parameter does not work any > longer. -- This message was sent by Atlassian JIRA (v7.6.3#76005)