1 Reply Latest reply on Aug 18, 2010 4:19 PM by pgier

    How to build rhq

    guorong

      Hello,

       

      I am a newbie to JBoss. I am trying to rebuild rhq trunk before I make any change or add any new plugins.

       

      This is what I did so far:

       

      1. set up maven env and svn client (no problem)

      2. extracted source code by running the following svn command (no problem):

       

         svn co http://svn.rhq-project.org/repos/rhq/trunk rhq-trunk

       

      3. ran the following mvn command from rhq-trunk/:

       

         mvn -Dmaven.test.skip=true -Ddbsetup-do-not-check-schema clean package

       

      I then hit the following build error:

       

      [INFO] Building RHQ Plugin API
      [INFO]    task-segment: [clean, package]
      [INFO] ------------------------------------------------------------------------
      [INFO] [clean:clean {execution: default-clean}]
      [INFO] [build-helper:maven-version {execution: default}]
      [INFO] [buildnumber:create {execution: default}]
      Downloading: http://download.java.net/maven/1//org.rhq/jars/rhq-core-domain-1.4.0-SNAPSHOT.jar
      [INFO] Unable to find resource 'org.rhq:rhq-core-domain:jar:1.4.0-SNAPSHOT' in repository java.net (http://download.java.net/maven/1/)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.

       

      I checked http://download.java.net/maven/1/ and didn't see org.rhq under it.

       

      Any help will be greatly appreciated.

       

      Thanks,

       

      Alex

        • 1. Re: How to build rhq
          pgier

          I'm not really familiar with that build but the jar it's looking for is actually one of the modules that it's trying to build, so I'm not sure why it's trying to download it remotely.  You might want to try "install" instead of "package" which might help resolving the intermodule.

           

          mvn -Dmaven.test.skip=true -Ddbsetup-do-not-check-schema clean install
          

           

          If that doesn't work, you should try asking on the mailing list or irc channel for that project

          http://www.rhq-project.org/display/RHQ/Home