2 Replies Latest reply on Jun 17, 2013 8:25 PM by karthikodc

    How to get Jive 5.0.2 instance for development on windows environment

    karthikodc

      Hi all,

       

      We have a requirement to development a widget and we need to test the widget on Jive 5.0.2 Instance.

      I'm using the below script to create a project but its giving the following error. Can anyone help me to get 5.0.2 instance.

      Script:

      mvn archetype:generate -e -B -U -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=5.0.2-SNAPSHOT -DgroupId=com.acc.jive -DartifactId=Jive5_0_2

       

      Error:

      C:\code>

      C:\code>mvn archetype:generate -e -B -U -DarchetypeGroupId=com.jivesoftware.mave

      n -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=5.0.2-SNAPSHOT -

      DgroupId=com.accenture.jive -DartifactId=Jive5_0_2

      + 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

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

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

      [INFO] org.codehaus.mojo: checking for updates from jive.internal

      [INFO] org.codehaus.mojo: checking for updates from jive.snapshots

      [INFO] org.codehaus.mojo: checking for updates from central

      [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up

      dates from jive.internal

      [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up

      dates from jive.snapshots

      [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up

      dates from central

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

      [INFO] Building Maven Default Project

      [INFO]    task-segment: [archetype:generate] (aggregator-style)

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

      [INFO] Preparing archetype:generate

      [INFO] No goals needed for project - skipping

      [INFO] [archetype:generate {execution: default-cli}]

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

      [INFO] snapshot com.jivesoftware.maven:maven-jive-archetype:5.0.2-SNAPSHOT: chec

      king for updates from maven-jive-archetype-repo

      [INFO] snapshot com.jivesoftware.maven:maven-jive-archetype:5.0.2-SNAPSHOT: chec

      king for updates from jive.internal

      [INFO] snapshot com.jivesoftware.maven:maven-jive-archetype:5.0.2-SNAPSHOT: chec

      king for updates from jive.snapshots

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

      hetype/5.0.2-SNAPSHOT/maven-jive-archetype-5.0.2-SNAPSHOT.jar

      [INFO] Unable to find resource 'com.jivesoftware.maven:maven-jive-archetype:jar:

      5.0.2-SNAPSHOT' in repository maven-jive-archetype-repo (http://repo1.maven.org/

      maven2)

      Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.inter

      nal/com/jivesoftware/maven/maven-jive-archetype/5.0.2-SNAPSHOT/maven-jive-archet

      ype-5.0.2-SNAPSHOT.jar

      [INFO] Unable to find resource 'com.jivesoftware.maven:maven-jive-archetype:jar:

      5.0.2-SNAPSHOT' in repository jive.internal (https://maven-secure.jivesoftware.c

      om/archiva/repository/jive.internal)

      Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.snaps

      hots/com/jivesoftware/maven/maven-jive-archetype/5.0.2-SNAPSHOT/maven-jive-arche

      type-5.0.2-SNAPSHOT.jar

      [INFO] Unable to find resource 'com.jivesoftware.maven:maven-jive-archetype:jar:

      5.0.2-SNAPSHOT' in repository jive.snapshots (https://maven-secure.jivesoftware.

      com/archiva/repository/jive.snapshots)

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

      [ERROR] BUILD FAILURE

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

      [INFO] The desired archetype does not exist (com.jivesoftware.maven:maven-jive-a

      rchetype:5.0.2-SNAPSHOT)

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

      [INFO] Trace

      org.apache.maven.BuildFailureException: The desired archetype does not exist (co

      m.jivesoftware.maven:maven-jive-archetype:5.0.2-SNAPSHOT)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

      ultLifecycleExecutor.java:715)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

      Goal(DefaultLifecycleExecutor.java:569)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

      ltLifecycleExecutor.java:539)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

      dleFailures(DefaultLifecycleExecutor.java:387)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

      ts(DefaultLifecycleExecutor.java:284)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

      fecycleExecutor.java:180)

              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:6

      0)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.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.MojoFailureException: The desired archetype d

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

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

      te(CreateProjectFromArchetypeMojo.java:221)

              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

      nManager.java:490)

              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

      ultLifecycleExecutor.java:694)

              ... 17 more

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

      chetype does not exist (com.jivesoftware.maven:maven-jive-archetype:5.0.2-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)

              ... 19 more

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

      [INFO] Total time: 46 seconds

      [INFO] Finished at: Fri Jun 14 19:28:34 IST 2013

      [INFO] Final Memory: 23M/78M

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

      C:\code>