2 Replies Latest reply on Feb 19, 2014 11:30 PM by dhapola.narender

    getting error while setting plugin and no jar file formation in repository

    dhapola.narender

      i am trying to create a new plug in

      1. mvn archetype:create -e -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-plugin-archetype -DarchetypeVersion=5.0.x-SNAPSHOT -DgroupId=com.jivesoftware.helloworld -DartifactId=HelloWorld
      2. i am using jdk 1.7 and maven 3.0.5
      3. and install tomcat 7
      4. while running this command on cmd i m getting following erroe while building

      [ERROR]

      [ERROR] Try downloading the file manually from the project website.

      [ERROR]

      [ERROR] Then, install it using the command:

      [ERROR] mvn install:install-file -DgroupId=com.jivesoftware.maven -DartifactId=m

      aven-jive-plugin-archetype -Dversion=5.0.x-SNAPSHOT -Dpackaging=jar -Dfile=/path

      /to/file

      [ERROR]

      [ERROR] Alternatively, if you host your own repository you can deploy the file t

      here:

      [ERROR] mvn deploy:deploy-file -DgroupId=com.jivesoftware.maven -DartifactId=mav

      en-jive-plugin-archetype -Dversion=5.0.x-SNAPSHOT -Dpackaging=jar -Dfile=/path/t

      o/file -Durl=[url] -DrepositoryId=[id]

      [ERROR]

      [ERROR]

      [ERROR] com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SNAPSHOT

      [ERROR]

      [ERROR] from the specified remote repositories:

      [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=f

      alse)

      [ERROR] -> [Help 1]

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

      rg.apache.maven.plugins:maven-archetype-plugin:2.2:create (default-cli) on proje

      ct standalone-pom: Error creating from archetype

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

      .java:217)

              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.MojoExecutionException: Error creating from a

      rchetype

              at org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArch

      etypeMojo.java:231)

              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: org.apache.mav

      en.archetype.downloader.DownloadNotFoundException: Requested com.jivesoftware.ma

      ven:maven-jive-plugin-archetype:jar:5.0.x-SNAPSHOT download does not exist.

              at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.get

      ArchetypeFile(DefaultArchetypeArtifactManager.java:91)

              at org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(De

      faultOldArchetype.java:114)

              at org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArch

      etypeMojo.java:227)

              ... 21 more

      Caused by: org.apache.maven.archetype.downloader.DownloadNotFoundException: Requ

      ested com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SNAPSHOT down

      load does not exist.

              at org.apache.maven.archetype.downloader.DefaultDownloader.download(Defa

      ultDownloader.java:78)

              at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.get

      ArchetypeFile(DefaultArchetypeArtifactManager.java:81)

              ... 23 more

      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could n

      ot find artifact com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SN

      APSHOT

       

       

      Try downloading the file manually from the project website.

       

       

      Then, install it using the command:

          mvn install:install-file -DgroupId=com.jivesoftware.maven -DartifactId=maven

      -jive-plugin-archetype -Dversion=5.0.x-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/

      file

       

       

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.jivesoftware.maven -DartifactId=maven-j

      ive-plugin-archetype -Dversion=5.0.x-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/fi

      le -Durl=[url] -DrepositoryId=[id]

       

       

       

       

        com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SNAPSHOT

       

       

      from the specified remote repositories:

        central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)

       

       

              at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De

      faultArtifactResolver.java:219)

              at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De

      faultArtifactResolver.java:157)

              at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De

      faultArtifactResolver.java:525)

              at org.apache.maven.archetype.downloader.DefaultDownloader.download(Defa

      ultDownloader.java:70)

              ... 24 more

      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not

      find artifact com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SNAP

      SHOT

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def

      aultArtifactResolver.java:538)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti

      facts(DefaultArtifactResolver.java:216)

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti

      fact(DefaultArtifactResolver.java:193)

              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArti

      fact(DefaultRepositorySystem.java:286)

              at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De

      faultArtifactResolver.java:213)

              ... 27 more

      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not fin

      d artifact com.jivesoftware.maven:maven-jive-plugin-archetype:jar:5.0.x-SNAPSHOT

       

       

              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def

      aultArtifactResolver.java:528)

              ... 31 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/MojoExecutionE

      xception

        • Re: getting error while setting plugin and no jar file formation in repository
          santhosh

          Hi Narender,


          Try this command for generating maven project:

          mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=6.0.x-SNAPSHOT -DgroupId=com.jivesoftware.helloworld -DartifactId=HelloWorld


          Thanks and Regards,

          Santhosh

            • Re: getting error while setting plugin and no jar file formation in repository
              dhapola.narender

              Hi Santhosh,

               

              I have tried this command already

              mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=6.0.x-SNAPSHOT -DgroupId=com.jivesoftware.helloworld -DartifactId=HelloWorld


              and still i am getting this error




              E:\KT>mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=6.0.x-SNAPSHOT -DgroupId=com.jivesoftware.helloworld -DartifactId=HelloWorld

              [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-archetype/6.0.x-SNAPSHOT/maven-metadata.xml

              Downloading: http://repo1.maven.org/maven2/com/jivesoftware/maven/maven-jive-archetype/6.0.x-SNAPSHOT/maven-jive-archetype-6.0.x-SNAPSHOT.jar

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

              [INFO] BUILD FAILURE

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

              [INFO] Total time: 17.008s

              [INFO] Finished at: Thu Feb 20 12:57:30 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:6.0.x-SNAPSHOT) -

              > [Help 1]

              org.apache.maven.lifecycle.LifecycleExecutionException: 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.jivesoftw

              are.maven:maven-jive-archetype:6.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.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:606)

                      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.MojoFailureException: The desired archetype does not exist (com.jivesoftware.maven:maven-jive-archetype:6.0.x-SNAPSHOT)

                      at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:221)

                      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.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 archetype does not exist (com.jivesoftware.maven:maven-jive-archetype:6.0.x-SNAPSHOT)

                      at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:117)

                      at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(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 read the following articles:

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