Hello, With some multi-module maven project we'r having the following exception when using maven 3.0.4:
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:resources (default) on project genericapi: Execution default of goal org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:resources failed: Plugin org.codehaus.mojo:gwt-maven-plugin:1.3.2.google or one of its dependencies could not be resolved: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:resources (default) on project genericapi: Execution default of goal org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:resources failed: Plugin org.codehaus.mojo:gwt-maven-plugin:1.3.2.google or one of its dependencies could not be resolved: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.codehaus.mojo:gwt-maven-plugin:1.3.2.google:resources failed: Plugin org.codehaus.mojo:gwt-maven-plugin:1.3.2.google or one of its dependencies could not be resolved: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:82) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.codehaus.mojo:gwt-maven-plugin:1.3.2.google or one of its dependencies could not be resolved: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:215) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:353) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:321) at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:175) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:78) ... 20 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:207) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669) at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException [ERROR] Note: I compared the logs of mvn3.0.3/mvn3.0.4, they look equal, the only different is the exception that only occurs with 3.0.4, It seems like maven re-tries to download dom4j:dom4j:jar:1.6.1 although it's already available in the local repo, this is some extra info available in verbose mode: --------------------- [DEBUG] Verifying availability of /home/myhome/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar from [gwt-plugin-repo (http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven, releases+snapshots), central (http://repo1.maven.org/maven2, releases), JBoss Repo (https://repository.jboss.org/nexus/content/repositories/releases, releases+snapshots), codehaus.org (http://snapshots.repository.codehaus.org, snapshots)] [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven Downloading: http://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar [DEBUG] Writing resolution tracking file /home/myhome/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar.lastUpdated [DEBUG] Skipped remote update check for dom4j:dom4j:jar:1.6.1, already updated during this session. [DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://repository.jboss.org/nexus/content/repositories/releases Downloading: https://repository.jboss.org/nexus/content/repositories/releases/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar [DEBUG] Writing resolution tracking file /home/myhome/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar.lastUpdated --------------------- Any help would be highly appreciated ! Thanks in advanced, Asaf.