5 Replies Latest reply: Jan 3, 2013 1:40 AM by pradeepmandalik RSS

    Getting error while trying to create a new maven project

    sunil_purty

      I was trying to create a new maven project using the information provided in the documentation.

      This is how my terminal looked like when i ran the command given in the first step.could anyone help me out with this?

       

       

      [root@localhost ~]# mvn archetype:create -e -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=5.0.2-SNAPSHOT -DgroupId=com.jivesoftware.dummycustomer -DartifactId=dummyCustomerSite

      + Error stacktraces are turned on.

      [INFO] Scanning for projects...

      [INFO] Searching repository for plugin with prefix: 'archetype'.

      [INFO] org.apache.maven.plugins: checking for updates from jive.internal

      [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: jive.internal due to an error: Error transferring file: maven-secure.jivesoftware.com

      [INFO] Repository 'jive.internal' will be blacklisted

      [INFO] org.apache.maven.plugins: checking for updates from jive.snapshots

      [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: jive.snapshots due to an error: Error transferring file: maven-secure.jivesoftware.com

      [INFO] Repository 'jive.snapshots' will be blacklisted

      [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: repo1.maven.org

      [INFO] Repository 'central' will be blacklisted

      [INFO] ------------------------------------------------------------------------

      [ERROR] BUILD ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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-archetype-plugin' does not exist or no valid version could be found

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

              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:597)

              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-archetype-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:179)

              at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)

              ... 15 more

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 1 minute 5 seconds

      [INFO] Finished at: Thu Jul 12 16:45:58 IST 2012

      [INFO] Final Memory: 1M/51M

      [INFO] ----------------------------------------------------