[ http://jira.codehaus.org/browse/MNGECLIPSE-116?page=comments#action_66624 ]
Ovidio Mallo commented on MNGECLIPSE-116: ----------------------------------------- Hi Wolfgang, have you also applied the provided patch? This is necessary since the fixed embedder still (legitimately) throws the above exception when it cannot find a default repository nor is any other repository set in the preferences. The patch for the plugin provides a mechanism to catch the exception thrown by the embedder and then inform the user about the missing maven repository. So, replacing only the embedder does not help much for solving your bootstrapping problem... :-) Hope applying the patch does the trick for you! > Embedder can't find local repository > ------------------------------------ > > Key: MNGECLIPSE-116 > URL: http://jira.codehaus.org/browse/MNGECLIPSE-116 > Project: Maven 2.x Extension for Eclipse > Type: Bug > Versions: 0.0.7 > Environment: WinXP, Eclipse 3.1.2, Maven2.0.4 > Reporter: Cliff Resnick > Assignee: Eugene Kuleshov > Attachments: 20060526_MNGECLIPSE-116_trunk.patch, > 20060529_MNGECLIPSE-116_trunk.patch, maven-embedder-2.0.4_fixed-dep.jar > > > I upgraded from 0.0.5 to 0.0.7 and the plugin fails to load. > Below is output from the workspace log file: > java.lang.IllegalArgumentException: When not aligning with a user install you > must specify a local repository location using the > setLocalRepositoryDirectory( File ) method. > at > org.apache.maven.embedder.MavenEmbedder.createMavenSettings(MavenEmbedder.java:699) > at org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:628) > at > org.maven.ide.eclipse.Maven2Plugin.createEmbedder(Maven2Plugin.java:267) > at > org.maven.ide.eclipse.Maven2Plugin.getMavenEmbedder(Maven2Plugin.java:155) > at > org.maven.ide.eclipse.Maven2Plugin.executeInEmbedder(Maven2Plugin.java:165) > at org.maven.ide.eclipse.Maven2Plugin.start(Maven2Plugin.java:112) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994) > at java.security.AccessController.doPrivileged(Native Method) > .... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
