3 Replies Latest reply on Feb 13, 2014 9:01 AM by mtuljapurkar

    following error showing while creating project with maven

    dhapola.narender

      C:\Users\narender.dhapola>mvn archetype:generate -e -B -DarchetypeGroupId=com.ji

      vesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=7

      .0.x-SNAPSHOT -DgroupId=com.jivesoftware.dummycustomer -DartifactId=dummyCustome

      rSite

      [INFO] Error stacktraces are turned on.

      [INFO] Scanning for projects...

      [INFO]

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

      [INFO] Building Maven Stub Project (No POM) 1

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

      [INFO]

      [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>

      >

      [INFO]

      [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<

      <

      [INFO]

      [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --

      -

      [INFO] Generating project in Batch mode

      [WARNING] Archetype not found in any catalog. Falling back to central repository

      (http://repo1.maven.org/maven2).

      [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository

      is elsewhere.

      Downloading: http://repo1.maven.org/maven2/com/jivesoftware/maven/maven-jive-arc

      hetype/7.0.x-SNAPSHOT/maven-metadata.xml

      Downloading: http://repo1.maven.org/maven2/com/jivesoftware/maven/maven-jive-arc

      hetype/7.0.x-SNAPSHOT/maven-jive-archetype-7.0.x-SNAPSHOT.jar

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

      [INFO] BUILD FAILURE

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

      [INFO] Total time: 7.483s

      [INFO] Finished at: Thu Feb 13 11:42:06 IST 2014

      [INFO] Final Memory: 11M/154M

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

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2

      .2:generate (default-cli) on project standalone-pom: The desired archetype does

      not exist (com.jivesoftware.maven:maven-jive-archetype:7.0.x-SNAPSHOT) -> [Help

      1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o

      rg.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on pro

      ject standalone-pom: The desired archetype does not exist (com.jivesoftware.mave

      n:maven-jive-archetype:7.0.x-SNAPSHOT)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor

      .java:213)

              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.buildProje

      ct(LifecycleModuleBuilder.java:84)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje

      ct(LifecycleModuleBuilder.java:59)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu

      ild(LifecycleStarter.java:183)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl

      eStarter.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(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun

      cher.java:290)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav

      a:230)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La

      uncher.java:409)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:

      352)

      Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype d

      oes not exist (com.jivesoftware.maven:maven-jive-archetype:7.0.x-SNAPSHOT)

              at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu

      te(CreateProjectFromArchetypeMojo.java:221)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default

      BuildPluginManager.java:101)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor

      .java:209)

              ... 19 more

      Caused by: org.apache.maven.archetype.exception.UnknownArchetype: The desired ar

      chetype does not exist (com.jivesoftware.maven:maven-jive-archetype:7.0.x-SNAPSH

      OT)

              at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationCo

      nfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:117)

              at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu

      te(CreateProjectFromArchetypeMojo.java:205)

              ... 21 more

      [ERROR]

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please rea

      d the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

      eption

      error1.pngerror2.png

       

      i m using jdk 1.7 and maven 3.5