7 Replies Latest reply on Jun 4, 2013 10:09 PM by kyanring

    Jive setup on windows environment issue

    karthikodc

      Hi,

       

      In a terminal window, cd to the project’s root directory (our example root directory is c:\code\Jive6) and execute the following command:

      mvn clean install -Djive.setup=false -Pinternal

       

      Its giving an error. Please find the below error and check the bold section unable to find resource.

      Please help me

       

      C:\code\Jive6NEW>mvn clean install -Djive.setup=false -Pinternal

      [INFO] Scanning for projects...

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

      nal/com/accenture/jive/Jive6NEW/1/Jive6NEW-1.pom

      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

      jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.in

      ternal)

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

      hots/com/accenture/jive/Jive6NEW/1/Jive6NEW-1.pom

      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

      jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.s

      napshots)

      Downloading: http://repo1.maven.org/maven2/com/accenture/jive/Jive6NEW/1/Jive6NE

      W-1.pom

      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

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

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

      [ERROR] FATAL ERROR

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

      [INFO] Error building POM (may not be this project's POM).

       

      Project ID: com.accenture.jive:jive-local-services:pom:6.0.x

       

      Reason: Cannot find parent: com.accenture.jive:Jive6NEW for project: com.accentu

      re.jive:jive-local-services:pom:6.0.x for project com.accenture.jive:jive-local-

      services:pom:6.0.x

       

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

      [INFO] Trace

      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: com.accent

      ure.jive:Jive6NEW for project: com.accenture.jive:jive-local-services:pom:6.0.x

      for project com.accenture.jive:jive-local-services:pom:6.0.x

              at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

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

              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.project.ProjectBuildingException: Cannot find parent

      : com.accenture.jive:Jive6NEW for project: com.accenture.jive:jive-local-service

      s:pom:6.0.x for project com.accenture.jive:jive-local-services:pom:6.0.x

              at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

      efaultMavenProjectBuilder.java:1396)

              at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def

      aultMavenProjectBuilder.java:823)

              at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi

      leInternal(DefaultMavenProjectBuilder.java:508)

              at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave

      nProjectBuilder.java:200)

              at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)

              at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

              ... 12 more

      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'com.accenture

      .jive:Jive6NEW' not found in repository: Unable to download the artifact from an

      y repository

       

        com.accenture.jive:Jive6NEW:pom:1

       

      from the specified remote repositories:

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

        jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.i

      nternal),

        jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.

      snapshots)

       

      for project com.accenture.jive:Jive6NEW

              at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo

      sitory(DefaultMavenProjectBuilder.java:605)

              at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

      efaultMavenProjectBuilder.java:1392)

              ... 19 more

      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable

      to download the artifact from any repository

       

        com.accenture.jive:Jive6NEW:pom:1

       

      from the specified remote repositories:

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

        jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.i

      nternal),

        jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.

      snapshots)

       

       

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

      faultArtifactResolver.java:228)

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

      faultArtifactResolver.java:90)

              at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo

      sitory(DefaultMavenProjectBuilder.java:558)

              ... 20 more

      Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl

      oad the artifact from any repository

              at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def

      aultWagonManager.java:404)

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

      faultArtifactResolver.java:216)

              ... 22 more

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

      [INFO] Total time: 5 seconds

      [INFO] Finished at: Mon Jun 03 16:11:50 IST 2013

      [INFO] Final Memory: 4M/38M

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

        • Re: Jive setup on windows environment issue

          It looks like you may have changed a setting in your POM file or the project hasn't been created properly. Without knowing which steps you performed in the installation and the contents of your POM file, that's about all I can say.

            • Re: Jive setup on windows environment issue
              karthikodc

              Hi Sonny,

               

              Please see the below steps which I have performed to create a project and I haven't changed anything the POM file.

               

              I have attached my POM file and can you verify and help to resolve this issue.

               

              Build Jive Project

              Use Maven to create a base Project

              The Maven archetype will be created in the directory that you execute the mvn command from, so determine the top level directory where you want all of your projects to reside and ensure you have moved the execution cursor to that directory.

              For example we will use a folder called c:\code

              In a cmd window, cd to c:\code:

              cd c:\code

              Now run the following command, substituting your own values for –DgroupId and –DartifactId

              mvn archetype:generate -e -B

              -DarchetypeGroupId=com.jivesoftware.maven

              -DarchetypeArtifactId=maven-jive-archetype

              -DarchetypeVersion=6.0.x-SNAPSHOT

              -DgroupId=[your project's groupID]

              -DartifactId=[your project's name]


              If prompted during the build, confirm or enter values as defined above.

               

              Create Databases

              Jive 6 needs two databases to be created to support it, one for Jive itself, and one for the EAE.

              The Postgres install provides an administration console for management of the Database server, we will use this to create two new empty databases.

              The names of these databases will be determined from value of the –DartifactId switch in the last maven command we executed (in our example, this would be JiveEducation). Substitute your own values accordingly.

              1.    Launch PGadmin3:

              2.    Double click on the PostgreSQL 9.0 server (with the red cross above), to connect to the Database server instance. If prompted, enter the password you defined when installing PostgreSQL. To avoid having to enter this every time, check the ‘store password’ check box, and accept the warning.

              3.    Right mouse click on the Database icon to reveal the fly out menu:

              4.    Click on New Database… menu item

              5.    Enter the name of the Database you are creating:

              Jive database will be called JiveEducation

              EAE database will be called eaecore-JiveEducation

              6.    Click OK

              7.    Repeat step 4 as necessary to create the two new empty databases.

               

              If you did not set password=postgres during the install of Postgres, you will need to change the database password value in the \JiveEducation\src\test\resources\jiveHome\jive_startup.xml file

               

              Start Jive Instance

              In a terminal window, cd to the project’s root directory (our example root directory is c:\code\JiveEducation) and execute the following command:

              mvn clean install -Djive.setup=false -Pinternal

                • Re: Re: Jive setup on windows environment issue

                  So to make it clear, you did the following:

                   

                  Ran the following statements:

                   

                  cd C:\code
                  
                  mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=6.0.x-SNAPSHOT -DgroupId=com.accenture.jive -DartifactId=Jive6NEW
                  

                   

                  Then created your two Jive Databases (Jive and Activity), running the next statements after your databases have been created:

                   

                  cd Jive6New
                  mvn clean install -Djive.setup=false -Pinternal
                  

                   

                  It doesn't look like anything is particularly wrong with what you did. The only thing that seems different from what I've done is how you've added -P internal to your install command. I've always run mvn clean install -D jive.setup=false when I needed to created a new Jive developers instance. Perhaps try running it again without that bit?

                   

                  Otherwise if your maven settings.xml file is also configured correctly according to this document, I'm not sure what would be causing your issue.

                    • Re: Jive setup on windows environment issue
                      karthikodc

                      Yes, I ran those command for creating project.

                      I have tried following command mvn clean install -D jive.setup=false still the issue is not resolved.

                       

                      please find the below logs and I have attached my settings.xml. Please check and correct me if there is any issue

                       

                      C:\>cd code

                       

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

                      DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=6.0.x-SNAPSHOT -Dgr

                      oupId=com.accenture.jive -DartifactId=Jive6NEW

                      + 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.codehaus.mojo: checking for updates from jive.internal

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

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

                      [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:6.0.x-SNAPSHOT: chec

                      king for updates from maven-jive-archetype-repo

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

                      king for updates from jive.internal

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

                      king for updates from jive.snapshots

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

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

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

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

                      maven2)

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

                      hetype/6.0.x-SNAPSHOT/maven-jive-archetype-6.0.x-SNAPSHOT.pom

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

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

                      maven2)

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

                      ---

                      [INFO] Using following parameters for creating project from Archetype: maven-jiv

                      e-archetype:6.0.x-SNAPSHOT

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

                      ---

                      [INFO] Parameter: groupId, Value: com.accenture.jive

                      [INFO] Parameter: artifactId, Value: Jive6NEW

                      [INFO] Parameter: version, Value: 1.0-SNAPSHOT

                      [INFO] Parameter: package, Value: com.accenture.jive

                      [INFO] Parameter: packageInPathFormat, Value: com/accenture/jive

                      [INFO] Parameter: searchVersion, Value: 2.15.32.7-synonyms.7

                      [INFO] Parameter: version, Value: 1.0-SNAPSHOT

                      [INFO] Parameter: package, Value: com.accenture.jive

                      [INFO] Parameter: groupId, Value: com.accenture.jive

                      [INFO] Parameter: artifactId, Value: Jive6NEW

                      [INFO] Parameter: eaeVersion, Value: 3.2.2.2

                      [INFO] Parameter: jiveVersion, Value: 6.0.2.0

                      [INFO] Parent element not overwritten in C:\code\Jive6NEW\web\pom.xml

                      [INFO] Parent element not overwritten in C:\code\Jive6NEW\run-services\pom.xml

                      [INFO] project created from Archetype in dir: C:\code\Jive6NEW

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

                      [INFO] BUILD SUCCESSFUL

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

                      [INFO] Total time: 44 seconds

                      [INFO] Finished at: Tue Jun 04 11:46:32 IST 2013

                      [INFO] Final Memory: 23M/102M

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

                      C:\code>cd Jive6NEW

                       

                      C:\code\Jive6NEW>mvn clean install -D jive.setup=false

                      [INFO] Scanning for projects...

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

                      nal/com/accenture/jive/Jive6NEW/1/Jive6NEW-1.pom

                      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

                      jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.in

                      ternal)

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

                      hots/com/accenture/jive/Jive6NEW/1/Jive6NEW-1.pom

                      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

                      jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.s

                      napshots)

                      Downloading: http://repo1.maven.org/maven2/com/accenture/jive/Jive6NEW/1/Jive6NE

                      W-1.pom

                      [INFO] Unable to find resource 'com.accenture.jive:Jive6NEW:pom:1' in repository

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

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

                      [ERROR] FATAL ERROR

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

                      [INFO] Error building POM (may not be this project's POM).

                       

                       

                      Project ID: com.accenture.jive:jive-local-services:pom:6.0.x

                       

                      Reason: Cannot find parent: com.accenture.jive:Jive6NEW for project: com.accentu

                      re.jive:jive-local-services:pom:6.0.x for project com.accenture.jive:jive-local-

                      services:pom:6.0.x

                       

                       

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

                      [INFO] Trace

                      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: com.accent

                      ure.jive:Jive6NEW for project: com.accenture.jive:jive-local-services:pom:6.0.x

                      for project com.accenture.jive:jive-local-services:pom:6.0.x

                              at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

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

                              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.project.ProjectBuildingException: Cannot find parent

                      : com.accenture.jive:Jive6NEW for project: com.accenture.jive:jive-local-service

                      s:pom:6.0.x for project com.accenture.jive:jive-local-services:pom:6.0.x

                              at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

                      efaultMavenProjectBuilder.java:1396)

                              at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def

                      aultMavenProjectBuilder.java:823)

                              at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi

                      leInternal(DefaultMavenProjectBuilder.java:508)

                              at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave

                      nProjectBuilder.java:200)

                              at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

                              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

                              at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)

                              at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

                              ... 12 more

                      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'com.accenture

                      .jive:Jive6NEW' not found in repository: Unable to download the artifact from an

                      y repository

                       

                        com.accenture.jive:Jive6NEW:pom:1

                       

                      from the specified remote repositories:

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

                        jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.i

                      nternal),

                        jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.

                      snapshots)

                       

                      for project com.accenture.jive:Jive6NEW

                              at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo

                      sitory(DefaultMavenProjectBuilder.java:605)

                              at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D

                      efaultMavenProjectBuilder.java:1392)

                              ... 19 more

                      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable

                      to download the artifact from any repository

                       

                        com.accenture.jive:Jive6NEW:pom:1

                       

                      from the specified remote repositories:

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

                        jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.i

                      nternal),

                        jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.

                      snapshots)

                       

                       

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

                      faultArtifactResolver.java:228)

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

                      faultArtifactResolver.java:90)

                              at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo

                      sitory(DefaultMavenProjectBuilder.java:558)

                              ... 20 more

                      Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl

                      oad the artifact from any repository

                              at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def

                      aultWagonManager.java:404)

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

                      faultArtifactResolver.java:216)

                              ... 22 more

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

                      [INFO] Total time: 8 seconds

                      [INFO] Finished at: Tue Jun 04 11:55:57 IST 2013

                      [INFO] Final Memory: 4M/54M

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

                • Re: Jive setup on windows environment issue

                  It looked like you were doing everything correctly so I tried this myself with the same results you had which means this probably isn't working as intended.

                   

                  After looking at the POM files, it looks like Jive has updated some things since I've last created the project, one of which is the project version (1 -> 1.0-d1-SNAPSHOT) which seems to be causing the issue. The problem is that they seem to have forgotten to update one of the POM files that reference the base POM as a parent which results in the build failing since it can't find the parent project.

                   

                  To resolve the issue, go into your project root folder and open /run-services/pom.xml. Then change the version (under parent, line 21) to 1.0-d1-SNAPSHOT and then try to run the maven install again.

                   

                  Ryan Rutan, Ryan King, would you guys be able to report the issue to the relevant people so that it gets fixed?