3 Replies Latest reply on Nov 7, 2008 5:32 PM by mazz

    building without a db?

    Scott Stark Master

      I'm trying to build the current rhq source tree:

      [628][valkyrie: rhq]$ pwd
      /home/svn/JOPR/rhq
      [629][valkyrie: rhq]$ svn info
      Path: .
      URL: http://svn.rhq-project.org/repos/rhq/trunk
      Repository Root: http://svn.rhq-project.org/repos
      Repository UUID: 5f539c1c-2127-4a89-9d54-ff5905797c1f
      Revision: 1911
      Node Kind: directory
      Schedule: normal
      Last Changed Author: mazz
      Last Changed Rev: 1911
      Last Changed Date: 2008-11-07 07:31:29 -0800 (Fri, 07 Nov 2008)
      


      and its failing when it gets to some postgres setup step shown below. Can I avoid this and build the jars without the db?

      [INFO] ------------------------------------------------------------------------
      [INFO] Building RHQ Database Utilities
      [INFO] task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce-versions}]
      [INFO] [buildnumber:create {execution: default}]
      [INFO] Checking for local modifications: skipped.
      [INFO] Updating project files from SCM: skipped.
      [INFO] Storing buildNumber: 1911 at timestamp: 1226093909649
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [antrun:run {execution: default}]
      [INFO] Executing tasks
       [i18n] Processing I18N messages
       [i18n] [6] I18N resource bundles have been created with a total of [372] messages
      [INFO] Executed tasks
      [INFO] [antrun:run {execution: generate-dbsetup-dbupgrade-xml-files}]
      [INFO] Executing tasks
      
      dbsetup-init-taskdefs:
       [echo] Task Classpath: /Users/svn/JOPR/rhq/modules/core/dbutils/target...
      dbsetup-init:
       [echo] Database: PostgreSQL
       [echo] JDBC URL: jdbc:postgresql://127.0.0.1:5432/rhq
       [echo] JDBC User: rhqadmin
      
      dbsetup-combine-check:
      
      dbsetup-combine:
      [INFO] Executed tasks
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      [INFO] Not compiling test sources
      [INFO] [surefire:test]
      [INFO] Tests are skipped.
      [INFO] [antrun:run {execution: dbsetup-worker}]
      [INFO] Executing tasks
      
      dbsetup-only-if-prop-set:
      
      dbsetup-uninstall-only-if-prop-set:
      
      dbsetup-upgrade-only-if-prop-set:
      
      dbsetup-export-only-if-prop-set:
      
      dbsetup-only-if-do-dbsetup:
      [INFO] Executed tasks
      [INFO] [antrun:run {execution: test-db-schema-version}]
      [INFO] Executing tasks
      
      dbsetup-check-schema:
       [echo] Querying the database to see if it is at db.schema.version=2.25 (pass -Ddbsetup-do-not-check-schema to skip this test)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
      /Users/svn/JOPR/rhq/modules/core/dbutils/src/main/scripts/dbsetup-build.xml:304: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.