4 Replies Latest reply on Jul 19, 2010 11:16 AM by mauromol

    Help to build XTS

    mauromol

      Hello!

      I downloaded jbossts-full-4.11.0.Final-src.zip and I'm trying to build the XTS component.

      In particular, I'm interested in the demos. As of XTS/demo/README, I'm running 'ant clean install' in the parent directory (that is, XTS inside JBOSSTS_4_11_0_Final), but the following error happens:

       

      BUILD FAILED
      D:\[...]\JBOSSTS_4_11_0_Final\XTS\build.xml:255: The following error occurred while executing this line:
      D:\[...]\JBOSSTS_4_11_0_Final\XTS\WSAS\build.xml:94: The following error occurred while executing this line:
      D:\[...]\JBOSSTS_4_11_0_Final\XTS\sharedbuild.xml:152: D:\[...]\JBOSSTS_4_11_0_Final\install\lib not found.

       

      Any help on how to fix this?

       

      Thanks in advance,

      Mauro.

        • 1. Re: Help to build XTS
          adinn

          Mauro Molinari wrote:

           

          I downloaded jbossts-full-4.11.0.Final-src.zip and I'm trying to build the XTS component.

          In particular, I'm interested in the demos. As of XTS/demo/README, I'm running 'ant clean install' in the parent directory (that is, XTS inside JBOSSTS_4_11_0_Final), but the following error happens:

           

          BUILD FAILED
          D:\[...]\JBOSSTS_4_11_0_Final\XTS\build.xml:255: The following error occurred while executing this line:
          D:\[...]\JBOSSTS_4_11_0_Final\XTS\WSAS\build.xml:94: The following error occurred while executing this line:
          D:\[...]\JBOSSTS_4_11_0_Final\XTS\sharedbuild.xml:152: D:\[...]\JBOSSTS_4_11_0_Final\install\lib not found.

           

          Any help on how to fix this?

           

          The ant script assumes you havealso built the JTA/JTS code in the parent tree (this ensures that the ST and XTS code are nto out of synch). So, you need to execute ant jta in the parent tree first. Then you can run ant clean install in the XTS tree. to build the release whcih wil be located in directory XTS/xts-install. After that you can build the demo from the code found in XTS/xts-install/demo.

          • 2. Re: Help to build XTS
            mauromol

            Thank you very much Andrew!

             

            Now I'm trying to build jta before XTS. However, the following error occurs:

             

            maven:
            [mkdir] Created dir: D:\[...]\JBOSSTS_4_11_0_Final\build\extlib
            [copy] Copying 1 file to D:\[...]\JBOSSTS_4_11_0_Final\maven

             

            BUILD FAILED
            D:\[...]\JBOSSTS_4_11_0_Final\build.xml:132: The following error occurred while executing this line:
            D:\[...]\JBOSSTS_4_11_0_Final\maven\build.xml:74: Execute failed: java.io.IOException: Cannot run program "mvn" (in directory "D:\[...]\JBOSSTS_4_11_0_Final\maven"): CreateProcess error=2, The system cannot find the file specified

             

            To solve this, I have to edit maven\build.xml so that the target "maven" at line 74 calls mvn.bat (rather than mvn) from dir %M2_HOME%/bin, instead of from basedir (the current working directory). In fact, it's reasonable that the Ant script picked up Maven from M2_HOME rather than from the current working directory, although in Windows there's the further problem of the ".bat" extension to add to mvn executable (otherwise Windows still can't find the mvn program to launch).

             

            Anyway, once I make Ant to find Maven I still have problems:

             

            maven:
            [mkdir] Created dir: D:\[...]\JBOSSTS_4_11_0_Final\build\extlib
            [copy] Copying 1 file to D:\[...]\JBOSSTS_4_11_0_Final\maven
            [exec] [INFO] Scanning for projects...
            [exec] [INFO] Searching repository for plugin with prefix: 'dependency'.
            [exec] [INFO] org.apache.maven.plugins: checking for updates from jboss-public-repository-group
            [exec] [INFO] org.apache.maven.plugins: checking for updates from central
            [exec] [INFO] org.codehaus.mojo: checking for updates from jboss-public-repository-group
            [exec] [INFO] org.codehaus.mojo: checking for updates from central
            [exec] Downloading: https://repository.jboss.org/nexus/content/groups/public//org/apache/maven/plugins/maven-dependency-plugin/2.0/maven-dependency-pl
            ugin-2.0.pom
            [exec] 4/11K
            [exec] 7/11K11/11K11K downloaded  (maven-dependency-plugin-2.0.pom)Downloading: https://repository.jboss.org/nexus/content/groups/public//org/apache/m
            aven/plugins/maven-plugins/10/maven-plugins-10.pom
            [exec] 4/7K
            [exec] 7/7K7K downloaded  (maven-plugins-10.pom)Downloading: https://repository.jboss.org/nexus/content/groups/public//org/apache/maven/maven-parent/7
            /maven-parent-7.pom
            [exec] 4/20K
            [exec] 7/20K11/20K15/20K15/20K19/20K20/20K20K downloaded  (maven-parent-7.pom)Downloading: https://repository.jboss.org/nexus/content/groups/public//o
            rg/apache/apache/4/apache-4.pom
            [exec] 4/4K
            [exec] 4/4K4K downloaded  (apache-4.pom)Downloading: https://repository.jboss.org/nexus/content/groups/public//org/apache/maven/plugins/maven-dependen
            cy-plugin/2.0/maven-dependency-plugin-2.0.jar
            [exec] 4/87K
            [exec] 7/87K11/87K15/87K15/87K19/87K23/87K27/87K31/87K35/87K38/87K42/87K46/87K50/87K54/87K58/87K62/87K66/87K70/87K74/87K78/87K82/87K85/87K87/87K87K do
            wnloaded  (maven-dependency-plugin-2.0.jar)[INFO] ------------------------------------------------------------------------
            [exec] [INFO] Building Maven Default Project
            [exec] [INFO]    task-segment: [dependency:copy-dependencies]
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] [ERROR] BUILD ERROR
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] [INFO] Cannot execute mojo: copy-dependencies. It requires a project with an existing pom.xml, but the build is not using one.
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] [INFO] For more information, run Maven with the -e switch
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] [INFO] Total time: 14 seconds
            [exec] [INFO] Finished at: Mon Jul 19 14:39:44 CEST 2010
            [exec] [INFO] Final Memory: 8M/61M
            [exec] [INFO] ------------------------------------------------------------------------
            [exec] Result: 1
            [copy] Copying 2 files to D:\[...]\JBOSSTS_4_11_0_Final\build\extlib
            [checksum] Could not find file D:\[...]\JBOSSTS_4_11_0_Final\build\extlib\jacorb.jar to generate checksum for.

             

             

             

            BUILD FAILED
            D:\[...]\JBOSSTS_4_11_0_Final\build.xml:132: The following error occurred while executing this line:
            D:\[...]\JBOSSTS_4_11_0_Final\maven\build.xml:93: Could not find file D:\[...]\JBOSSTS_4_11_0_Final\build\extlib\jacorb.jar to generate checksum for.

             

            Please note that I have already created the file settings.xml in %USERPROFILE%\.m2 with the content from: http://community.jboss.org/wiki/MavenGettingStarted-Users (I put in my settings.xml just the first snippet, without the lines with "...").

            • 3. Re: Help to build XTS
              adinn

              Hi Mauro,

               

              Mauro Molinari wrote:

               

              Anyway, once I make Ant to find Maven I still have problems:

               

              maven:
              [mkdir] Created dir: D:\[...]\JBOSSTS_4_11_0_Final\build\extlib
              [copy] Copying 1 file to D:\[...]\JBOSSTS_4_11_0_Final\maven
              [exec] [INFO] Scanning for projects...
              [exec] [INFO] Searching repository for plugin with prefix: 'dependency'.
              [exec] [INFO] org.apache.maven.plugins: checking for updates from jboss-public-repository-group
                . . .
              [exec] [INFO] Building Maven Default Project
              [exec] [INFO]    task-segment: [dependency:copy-dependencies]
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] [ERROR] BUILD ERROR
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] [INFO] Cannot execute mojo: copy-dependencies. It requires a project with an existing pom.xml, but the build is not using one.
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] [INFO] For more information, run Maven with the -e switch
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] [INFO] Total time: 14 seconds
              [exec] [INFO] Finished at: Mon Jul 19 14:39:44 CEST 2010
              [exec] [INFO] Final Memory: 8M/61M
              [exec] [INFO] ------------------------------------------------------------------------
              [exec] Result: 1
              [copy] Copying 2 files to D:\[...]\JBOSSTS_4_11_0_Final\build\extlib
              [checksum] Could not find file D:\[...]\JBOSSTS_4_11_0_Final\build\extlib\jacorb.jar to generate checksum for.

               

              I am puzzled by this. The trace appears to show that the ant script has copied maven/pom-template.xml to maven/pom.xml. However, the maven output suggests that the build is not using a pom.xml. Can you look in the maven subdir and see if there is a file called poim.xml? If so you might try looking at it to see if there is some obvious reason why it is not working.

               

              Also, you might perhaps follow the advice in the error trace and try executing maven with the '-e' argument to see if it gives better error info. Other than that I am not sure what might help. The build.xml script in the maven subdir works fine on Linux. I am no maven expert and even less of a windows expert. Perhaps someone else who knows about maven on windows can help debug this.

              • 4. Re: Help to build XTS
                mauromol

                Hi Andrew,

                thanks again for your help.

                Actually, in the maven subdir there is a pom.xml file. However, I'm not a Maven expert either, I just downloaded it today to try to build the XTS because I saw the Ant script wants it...

                 

                Anyway, I'll try to see if I can fix this.