8 Replies Latest reply on Dec 23, 2009 10:15 AM by jaikiran

    Checkout / Compile of JBoss-head fails

    lafr

      I checked out jboss-head using

      svn checkout http://anonsvn.jboss.org/repos/jbossas/trunk jboss-head

      .

      Then I did

      cd jboss-head/build
      ksh build.sh

       

      This does some work but fails with

      [INFO] Executing tasks

       

      init:

       

      configure:

       

      init-dependencies:

       

      init-dependencies:
           [echo] Loading dependency paths from file: /home/jboss/JBoss-6.0/jboss-head/build/target/build-dependencies.xml

       

      module-main:
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
      /home/jboss/JBoss-6.0/jboss-head/build/build.xml:788: Warning: Could not find file /home/jboss/JBoss-6.0/jboss-head/main/target/jboss-as-main.jar to copy.

       

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 20 seconds
      [INFO] Finished at: Mon Dec 21 20:16:07 CET 2009
      [INFO] Final Memory: 62M/377M
      [INFO] ------------------------------------------------------------------------

       

      What am I missing here?

        • 1. Re: Checkout / Compile of JBoss-head fails
          dmlloyd
          I'd recommend building trunk using the "mvn install" command.  Also, if you're going to run the build.sh script maybe try using bash instead of ksh?
          • 2. Re: Checkout / Compile of JBoss-head fails
            lafr

            From the head of the build script:

            #!/bin/sh
            ### ====================================================================== ###
            ##                                                                          ##
            ##  This is the main entry point for the build system.                      ##
            ##                                                                          ##
            ##  Users should execute this file rather than 'mvn' to ensure              ##
            ##  the correct version is being used with the correct configuration.       ##
            ##                                                                          ##
            ### ====================================================================== ###

             

            So this is a bourne shell script. So using a ksh is OK and using a bash makes no difference.

            And  the comment says one should use this script.

            • 3. Re: Checkout / Compile of JBoss-head fails
              jaikiran
              1 of 1 people found this helpful
              • 4. Re: Checkout / Compile of JBoss-head fails
                brian.stansberry

                I'm curious as to how many of the folks who regularly work on AS trunk still use build/build.sh. Like David, I always run maven commands directly from the root of the checkout, or from the root of a module if I'm just interested in the module.

                 

                Unless there's a strong case for it or a lot of folks are using it, I'd recommend getting rid of this script. If it's not actively used it's just code that will fall into disrepair and cause trouble; from this thread perhaps it already has. As a help to people accustomed to the old way, for the 6.x series turn it into something trivial that outputs a message telling people to use maven comands from the root of the checkout.

                • 5. Re: Checkout / Compile of JBoss-head fails
                  brian.stansberry

                  Frank,

                   

                  From a clean checkout I just tried:

                   

                  build]$ ./build.sh

                   

                  and

                   

                  build]$ ./build.sh clean install
                  

                   

                  and both worked fine. So not sure what the cause of your problem is.

                  • 6. Re: Checkout / Compile of JBoss-head fails
                    lafr

                    The important difference could be found in the posted link http://community.jboss.org/wiki/jbossasbuild.

                    As of version 6 you have to exceute the build script directly located in the check out dir (jboss-head).

                    Using  version 4.2.x for now I stepped into jboss-head/build to execute the script located there.

                    • 7. Re: Checkout / Compile of JBoss-head fails
                      brian.stansberry

                      Ah, I see. Thanks.

                       

                      Well, my opinion re: these scripts is even stronger then. Now we've got two scripts to maintain.

                      • 8. Re: Checkout / Compile of JBoss-head fails
                        jaikiran

                        Paul had mentioned that he's going to remove the one from "build" folder http://community.jboss.org/thread/89942. It might be on Paul's TODO.