A quote from Dennis Lundberg: [quote] The problem is that Maven is unable to download the artifact-plugin for you.
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found The most common reasons for this message are (in no particular order): - You don't have a connection to the internet + Solution: connect to the internet - The meta-data for the plugin in question has been corrupted in your local repository + Solution: Remove the entire directory for that plugin in your local repository - You are behind a proxy or firewall that prevents Maven from accessing the central repository + Solution: configure Maven to handle this, see http://maven.apache.org/guides/mini/guide-proxies.html If none of the about helps you, please run Maven like this to give us more to go on. It will enable debug mode. Please post the results here. mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [/quote] Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Sep 17, 2008 at 1:10 PM, Peter Horlock <[EMAIL PROTECTED]> wrote: > Hi, > > I just ran into this weird bug when using the maven 2 tomcat plugin (which > I was sucessfully using for the last few month now...) > > mvn tomcat:deploy -e > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'tomcat'. > [INFO] org.apache.maven.plugins: checking for updates from central > [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be > retrieved from repository: central due to an error: Error transferring file > [INFO] Repository 'central' will be blacklisted > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not > exist or no valid version could be found > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin > 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist or no valid > version could be found > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: > The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not exist or > no valid version could be found > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229) > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91) > at > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274) > ... 14 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Sep 17 13:02:22 CEST 2008 > [INFO] Final Memory: 2M/5M > [INFO] > ------------------------------------------------------------------------ > > The weird thing - "The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' > does not exist or no valid version could be found" > > is true - because it is under the org.codehaus folder - just the way I have > defined it in my parent pom: > [...] > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>tomcat-maven-plugin</artifactId> > <version>1.0-alpha-1</version> > [...] > > Any idea why this fails - NOW? (As far as I know I haven't changed anything > at all...) > > Thanks in advance, > > Peter > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
