Maybe the Maven Dependency plugin can help on this(https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html)

I'll close the issue meanwhile.

Thanks

Em 01/10/2015 02:42, "James Strachan (JIRA)" <issues@jboss.org> escreveu:

    [ https://issues.jboss.org/browse/FORGE-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114019#comment-13114019 ]

James Strachan commented on FORGE-2492:
---------------------------------------

Thanks for all of that George! I'll give that system property a go. I'm pretty convinced now (from watching ~/.m2/repository as I use the forge wizards) that the hang is due to downloading of mvn dependencies for plugins and so forth. I'm currently trying to hack a test case to force the download of everything; so I can pre-load the ~/.m2/repository with all the possible requirements on startup.

Thanks again!

> forge hangs on AbstractProjectCommand.getSelectedProject() when used inside fabric8-forge (the REST service)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FORGE-2492
>                 URL: https://issues.jboss.org/browse/FORGE-2492
>             Project: Forge
>          Issue Type: Feature Request
>    Affects Versions: 2.17.0.Final, 2.19.2.Final
>         Environment: using the fabric8-forge docker image inside OpenShift
>            Reporter: James Strachan
>
> Here's a stack trace:
> https://gist.github.com/jstrachan/741d65b7dd87ca0e701e
> when using Forge from the hawtio console, the JVM seems to hang for 1-2 minutes now inside the call to AbstractProjectCommand.getSelectedProject(). Whats odd is I can create an archetype and invoke this code path on startup just fine - but then thats in a different thread to the one using Forge from inside the JAXRS service; so am wondering if its related to which thread is being used?
> Seems to ultimately be a wagon / aether issue; taking too long to download things.
> Wonder is there any way to configure the maven addon in forge to register a Wagon listener maybe? No idea whats causing the pause



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
_______________________________________________
forge-issues mailing list
forge-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-issues