4 Replies Latest reply on May 29, 2009 8:06 AM by pilhuhn

    JBoss repo missing at pom.xml?

    alegomes

      I've just checked out Jopr source code from SVN and started reading the doc "Write_A_Plugin_WP_web.pdf" when it says, at page 15:

      To compile the plug-in, enter mvn -Pdev install at the root of the plug-in tree.


      By "the root of the plugin tree" I understand "jopr/trunk/modules/plugins", right?

      If it's correct, I guess there's a repository configuration missing in jopr/trunk/modules/plugins/pom.xml


      <repositories>
       <repository>
       <snapshots>
       <enabled>true</enabled>
       </snapshots>
       <id>jboss</id>
       <name>JBoss Snapshot Repository</name>
       <url>http://snapshots.jboss.org/maven2/</url>
       </repository>
      </repositories>
      


      Otherwise, it claims about org.jboss.on:jopr-modules-parent and then about org.jboss.on:jopr-parent and, finally, org.rhq:rhq-parent:1.3-SNAPSHOT.

      That's it, or did I miss something?


      thanks

        • 1. Re: JBoss repo missing at pom.xml?
          mazz

          I would start at the root of the jopr source tree itself:

          jopr/trunk

          That will also build the parent pom modules as well. Building the jopr source tree is very fast, even if you start at this root.

          • 2. Re: JBoss repo missing at pom.xml?
            alegomes

            Thanks mazz,

            but I've already tried this and the problem persisted:

            [INFO] [buildnumber:create {execution: default}]
            [INFO] Checking for local modifications: skipped.
            [INFO] Updating project files from SCM: skipped.
            [INFO] Storing buildNumber: 673 at timestamp: 1243545271056
            [INFO] [site:attach-descriptor]
            [INFO] ------------------------------------------------------------------------
            [INFO] Building Jopr Modules
            [INFO] task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Failed to resolve artifact.
            
            GroupId: org.rhq
            ArtifactId: rhq-core-parent
            Version: 1.3.0-SNAPSHOT
            
            Reason: Unable to download the artifact from any repository
            
             org.rhq:rhq-core-parent:pom:1.3.0-SNAPSHOT
            
            from the specified remote repositories:
             central (http://repo1.maven.org/maven2),
             jboss (http://repository.jboss.org/maven2/)
            


            So, I included the JBoss Snapshot Repository in the project root pom.xml and now I got:

            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Failed to resolve artifact.
            
            Missing:
            ----------
            1) org.rhq:rhq-enterprise-comm:jar:1.3.0-SNAPSHOT
            
             Try downloading the file manually from the project website.
            
             Then, install it using the command:
             mvn install:install-file -DgroupId=org.rhq -DartifactId=rhq-enterprise-comm -Dversion=1.3.0-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=org.rhq -DartifactId=rhq-enterprise-comm -Dversion=1.3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
            
             Path to dependency:
             1) org.jboss.on:jopr-rhq-server-plugin:jar:2.3.0-SNAPSHOT
             2) org.rhq:rhq-enterprise-comm:jar:1.3.0-SNAPSHOT
            
            ----------
            1 required artifact is missing.
            
            for artifact:
             org.jboss.on:jopr-rhq-server-plugin:jar:2.3.0-SNAPSHOT
            
            from the specified remote repositories:
             central (http://repo1.maven.org/maven2),
             jboss snapshot (http://snapshots.jboss.org/maven2),
             jboss (http://repository.jboss.org/maven2/)
            


            So, where is org.rhq:rhq-enterprise-comm:jar:1.3.0-SNAPSHOT, cause I didn't find it at jboss repos.

            thanks again

            • 3. Re: JBoss repo missing at pom.xml?
              ips

              Hi,

              I've uploaded org.rhq:rhq-enterprise-comm:jar:1.3.0-SNAPSHOT to the JBoss snapshot repo. You should now have all the RHQ snapshot jars you need to build all of the Jopr plugins. Please give it another try.

              -Ian

              • 4. Re: JBoss repo missing at pom.xml?
                pilhuhn

                Another option would be to use 1.2.0.GA poms instead of the (moving target of) *-SNAPSHOT