You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Warren (JIRA)" <ji...@codehaus.org> on 2011/09/20 22:46:17 UTC
[jira] Commented: (MDEP-82) go-offline / resolve-plugins does not
resolve all plugin dependencies
[ https://jira.codehaus.org/browse/MDEP-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279443#comment-279443 ]
Paul Warren commented on MDEP-82:
---------------------------------
Hi Folks,
Ability (or inability) to go-offline is a showstopper for us. We have very large customers who state they have to have offline development.
So naturally this was the goal I looked at first. One problem I have with it is the fact that it resolves top level dependencies only. It doesnt recursively descend through all subsequent transtive dependencies. I am new to maven but as that stands I don't see how it is adequate to actually solve the problem. But maybe I missed some fundamental concept. Anyway, I had a fiddle with the code and made is descend and resolve all transaitive dependencies and this was sufficient for my use case. I was then able to go-offline. I am going to attach the patch in case it helps others or you would like to fold it into the source.
> go-offline / resolve-plugins does not resolve all plugin dependencies
> ---------------------------------------------------------------------
>
> Key: MDEP-82
> URL: https://jira.codehaus.org/browse/MDEP-82
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Components: go-offline, resolve-plugins
> Affects Versions: 2.0-alpha-4
> Environment: Maven 2.0.6
> Reporter: Arne Degenring
> Assignee: Brian Fox
> Attachments: 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:
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found
> Afterwards, even "mvn package" without the "-o" parameter does not work any longer.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira