14 Replies Latest reply on Mar 26, 2013 10:38 AM by bha007

    Cannot install jboss-5.1.0.GA (Unable to build maven modules)

    choudharypranay

      Hi,

      I was trying to install jboss5 using ports in freebsd 8.1.

      I updated my ports and made a bulid of the source.

      This is the output:

      pc-bsd# make install clean

      ===>  Building for jboss-5.1.0.GA_1,1

      Buildfile: /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml

       

      maven-init:

           [echo] Maven Home set to /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/tools/maven

       

      maven-install:

           [java] [INFO] Scanning for projects...

           [java] [INFO] Reactor build order:

           [java] [INFO]   JBossAS Component Matrix

           [java] [INFO]   JBoss Application Server Parent POM

           [java] [INFO]   JBoss Application Server Thirdparty Build

           [java] WAGON_VERSION: 1.0-beta-2

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] Building JBossAS Component Matrix

           [java] [INFO]    task-segment: [install]

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [site:attach-descriptor]

           [java] [INFO] Preparing source:jar

           [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [source:jar {execution: attach-sources}]

           [java] [INFO] [install:install]

           [java] [INFO] Installing /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/component-matrix/pom.xml to /root/.m2/repository/org/jboss/jbossas/jboss-as-component-matrix/5.1.0.GA/jboss-as-component-matrix-5.1.0.GA.pom

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] Building JBoss Application Server Parent POM

           [java] [INFO]    task-segment: [install]

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

           [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

           [java] [INFO] [site:attach-descriptor]

           [java] [INFO] Preparing source:jar

           [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

           [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

           [java] [INFO] [source:jar {execution: attach-sources}]

           [java] [INFO] [install:install]

           [java] [INFO] Installing /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/pom.xml to /root/.m2/repository/org/jboss/jbossas/jboss-as-parent/5.1.0.GA/jboss-as-parent-5.1.0.GA.pom

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] Building JBoss Application Server Thirdparty Build

           [java] [INFO]    task-segment: [install]

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

           [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

           [java] [INFO] [enforcer:enforce {execution: ban-app-server-modules}]

           [java] [INFO] [dependency:sources {execution: download-sources}]

           [java] [INFO] [jboss-license:download-licenses {execution: default}]

           [java] [INFO] Downloading licenses

           [java] [INFO] [buildmagic-thirdparty:build-thirdparty {execution: build-thirdparty}]

           [java] [INFO] Copying dependencies to thirdparty directories...

           [java] [INFO] Generating component info files...

           [java] [INFO] Creating libraries.ent...

           [java] [INFO] [buildmagic-thirdparty:build-thirdparty {execution: build-thirparty-testsuite}]

           [java] [INFO] Copying dependencies to thirdparty directories...

           [java] [INFO] Generating component info files...

           [java] [INFO] Creating testsuite-libraries.ent...

           [java] [INFO] [site:attach-descriptor]

           [java] [INFO] Preparing source:jar

           [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

           [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

           [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

           [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

           [java] [INFO] [enforcer:enforce {execution: ban-app-server-modules}]

           [java] [INFO] [dependency:sources {execution: download-sources}]

           [java] [INFO] [source:jar {execution: attach-sources}]

           [java] [INFO] [install:install]

           [java] [INFO] Installing /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/thirdparty/pom.xml to /root/.m2/repository/org/jboss/jbossas/jboss-as-thirdparty/5.1.0.GA/jboss-as-thirdparty-5.1.0.GA.pom

           [java] [INFO]

           [java] [INFO]

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] Reactor Summary:

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] JBossAS Component Matrix .............................. SUCCESS [4.452s]

           [java] [INFO] JBoss Application Server Parent POM ................... SUCCESS [0.076s]

           [java] [INFO] JBoss Application Server Thirdparty Build ............. SUCCESS [7.875s]

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] BUILD SUCCESSFUL

           [java] [INFO] ------------------------------------------------------------------------

           [java] [INFO] Total time: 14 seconds

           [java] [INFO] Finished at: Mon Jan 24 14:39:32 IST 2011

           [java] [INFO] Final Memory: 37M/88M

           [java] [INFO] ------------------------------------------------------------------------

           [java] Java Result: 137

       

      BUILD FAILED

      /usr/ports/java/jboss5/work/jboss-5.1.0.GA-src/build/build.xml:1084: Unable to build maven modules.  See maven output for details.

       

      Total time: 16 seconds

      *** Signal 9

       

      Stop in /usr/ports/java/jboss5

      this is my Java version:

      # java -version

      java version "1.6.0_22"

      Java(TM) SE Runtime Environment (build 1.6.0_22-b04)

      Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode)

      and this is my freebsd version:

      FreeBSD xxxx.xxxxx.xxxxx 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

      I googled for the solution but did not find any appropriate solution

      Please Help.

      Thanks in advance.

        • 1. Re: Cannot install jboss-5.1.0.GA (Unable to build maven modules)
          choudharypranay

          I tried fixing it by installing maven separately.

           

          # pkg_add -v -r maven2

           

          The package got installed without any errors.

           

          But still I can't compile JBOSS. (Gives the same error)

           

          Do i need to set some system variables?

          • 2. Re: Cannot install jboss-5.1.0.GA (Unable to build maven modules)
            maxandersen

            you should ask this in the JBoss AS forums - this forum is for JBoss Tools (the eclipse plugins)

            • 3. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
              choudharypranay

              thanks. moved it to Jboss AS forum.

              • 4. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                choudharypranay

                anyone... please help!

                • 5. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                  nickarls

                  Well, I've never built 5.x but: what maven version do you use? have you tried running the build.sh instead?

                  • 6. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                    jaikiran
                    • 7. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                      choudharypranay

                      Thanks for the reply. Nicklas and Jaikiran.

                       

                      yes i tried both build.sh and ant.

                      I get the exactly same error.

                       

                      I observed one thing: If I install Jboss 5.1.0 in FreeBsd having diablo JDK then the installation is success.

                      It fails if I've SUN-JDK.

                      And I need to use Sun-JDK

                       

                      Can it be an JRE issue?

                      • 8. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                        jaikiran

                        Sun JDK should work fine. The java -version output you posted looks fine too. Are you sure that's the Java being used? What's the output of

                         

                        echo $JAVA_HOME

                        • 9. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                          choudharypranay

                          # echo $JAVA_HOME

                          returns a blank line.

                           

                          If i set JAVA_HOME and try building JBOSS 5, it throws error: JAVA_HOME should not be set.

                          • 10. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                            delit

                            Hello all!

                             

                            It seems that JBossAS5 does not build with apache-ant-1.8.1.

                             

                            I've tried to build it with apache-ant-1.7.1

                             

                            cd /usr/ports/devel

                            cp -R apache-ant apache-ant17

                            cd /usr/ports/devel/apache-ant17

                             

                             

                            Than I've changed PORTVERSION to "1.7.1" in Makefile.

                             

                            and edit distinfo file:

                             

                            SIZE (apache-ant-1.7.1-bin.tar.bz2) = 7641928

                            SHA256 (apache-ant-1.7.1-bin.tar.bz2) = 24e54c9d90b81d1b7342695a8285a969393fd883e99ffbbc04203c106d9c2f97

                            SHA256 (apache-ant-manpage-20030908.tgz) = 721981f64fae3577c04c527232edab9bfa0755af08319049cec206584dc8830c

                            SIZE (apache-ant-manpage-20030908.tgz) = 9735

                             

                            Here I've leave untouched manpages.

                             

                            Ant 1.8.1 I have deinstalled:

                             

                            cd /usr/ports/devel/apache-ant

                            make deinstall

                             

                            and than

                             

                            cd ../apache-ant17

                            make install

                             

                            and than:

                             

                            cd ../../java/jboss5

                            make install

                             

                            and voila! =)

                             

                            If you want to revert your apache-ant-1.8.1 you can deinstall apache-ant-1.7.1 and than do "make install" in /usr/ports/devel/apache-ant direcrory.

                             

                            I've diablo-jdk16 installed on my FreeBSD 8.2-STABLE system.

                            (up from ports 2011-02-21).

                             

                            Have fun!

                            • 11. Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                              choudharypranay

                              thanks a lot.

                              finally.....

                              build using ant 1.7.1 works.

                              • 12. Re: Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                                ebrahim

                                Hi,

                                 

                                I was trying to  bulid jboss5.1.0.GA of the source in windows.

                                This is the output:

                                 

                                Calling ..\tools\bin\ant.bat

                                Buildfile: build.xml

                                 

                                maven-init:

                                     [echo] Maven Home set to D:\Java\jboss-5.1.0.GA-src\tools\maven

                                 

                                maven-install:

                                     [java] [INFO] Scanning for projects...

                                     [java] [INFO] Reactor build order:

                                     [java] [INFO]   JBossAS Component Matrix

                                     [java] [INFO]   JBoss Application Server Parent POM

                                     [java] [INFO]   JBoss Application Server Thirdparty Build

                                     [java] WAGON_VERSION: 1.0-beta-2

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] Building JBossAS Component Matrix

                                     [java] [INFO]    task-segment: [install]

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

                                     [java] [INFO] [site:attach-descriptor]

                                     [java] [INFO] Preparing source:jar

                                     [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive

                                invocation.

                                     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

                                     [java] [INFO] [source:jar {execution: attach-sources}]

                                     [java] [INFO] [install:install]

                                     [java] [INFO] Installing D:\Java\jboss-5.1.0.GA-src\component-matrix\pom.xm

                                l to C:\Users\ebrahim\.m2\repository\org\jboss\jbossas\jboss-as-component-matrix

                                \5.1.0.GA\jboss-as-component-matrix-5.1.0.GA.pom

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] Building JBoss Application Server Parent POM

                                     [java] [INFO]    task-segment: [install]

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

                                     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

                                     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

                                     [java] [INFO] [site:attach-descriptor]

                                     [java] [INFO] Preparing source:jar

                                     [java] [WARNING] Removing: jar from forked lifecycle, to prevent recursive

                                invocation.

                                     [java] [INFO] [enforcer:enforce {execution: ban-bad-dependencies}]

                                     [java] [INFO] [enforcer:enforce {execution: enforce-java-maven-versions}]

                                     [java] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]

                                     [java] [INFO] [source:jar {execution: attach-sources}]

                                     [java] [INFO] [install:install]

                                     [java] [INFO] Installing D:\Java\jboss-5.1.0.GA-src\pom.xml to C:\Users\ebr

                                ahim\.m2\repository\org\jboss\jbossas\jboss-as-parent\5.1.0.GA\jboss-as-parent-5

                                .1.0.GA.pom

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] Building JBoss Application Server Thirdparty Build

                                     [java] [INFO]    task-segment: [install]

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plug

                                ins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                     [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/m

                                aven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                     [java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plug

                                ins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                     [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/m

                                aven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [ERROR] BUILD ERROR

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] Error building POM (may not be this project's POM).

                                     [java]

                                     [java]

                                     [java] Project ID: org.jboss.maven.plugins:maven-jboss-license-plugin

                                     [java]

                                     [java] Reason: POM 'org.jboss.maven.plugins:maven-jboss-license-plugin' not

                                found in repository: Unable to download the artifact from any repository

                                     [java]

                                     [java]   org.jboss.maven.plugins:maven-jboss-license-plugin:pom:1.0.0

                                     [java]

                                     [java] from the specified remote repositories:

                                     [java]   snapshots.jboss.org (http://snapshots.jboss.org/maven2),

                                     [java]   central (http://repo1.maven.org/maven2),

                                     [java]   repository.jboss.org (http://repository.jboss.org/maven2)

                                     [java]  for project org.jboss.maven.plugins:maven-jboss-license-plugin

                                     [java]

                                     [java]

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] For more information, run Maven with the -e switch

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] [INFO] Total time: 19 seconds

                                     [java] [INFO] Finished at: Tue Jun 14 11:29:04 IRDT 2011

                                     [java] [INFO] Final Memory: 15M/36M

                                     [java] [INFO] -------------------------------------------------------------

                                -----------

                                     [java] Java Result: 1

                                 

                                BUILD FAILED

                                D:\Java\jboss-5.1.0.GA-src\build\build.xml:1084: Unable to build maven modules.

                                See maven output for details.

                                 

                                Total time: 25 seconds

                                Is this a type or am I missing something?

                                Thanks.

                                • 13. Re: Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                                  bondchan921

                                  No wander the default ant version is 1.7.1 in my case.

                                  but having the exactly same error.... any clue ?

                                   

                                  ######ant version#######

                                   

                                  E:\jboss-5.1.0.GA-src\tools\bin>ant.bat -version

                                  Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar

                                  Apache Ant version 1.7.1 compiled on June 27 2008

                                   

                                   

                                  ######build failed################

                                       [java] [INFO] [install:install]

                                       [java] [INFO] Installing E:\jboss-5.1.0.GA-src\pom.xml to C:\Documents and Settings\jack\.m2\repository\org\jboss\jbossas\jboss-as-parent\5.1.0.GA\jboss-as

                                  -parent-5.1.0.GA.pom

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] [INFO] Building JBoss Application Server Thirdparty Build

                                       [java] [INFO]    task-segment: [install]

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                       [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                       [java] Downloading: http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                       [java] Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jboss-license-plugin/1.0.0/maven-jboss-license-plugin-1.0.0.pom

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] [ERROR] BUILD ERROR

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] [INFO] Error building POM (may not be this project's POM).

                                       [java]

                                       [java]

                                       [java] Project ID: org.jboss.maven.plugins:maven-jboss-license-plugin

                                       [java]

                                       [java] Reason: POM 'org.jboss.maven.plugins:maven-jboss-license-plugin' not found in repository: Unable to download the artifact from any repository

                                       [java]

                                       [java]   org.jboss.maven.plugins:maven-jboss-license-plugin:pom:1.0.0

                                       [java]

                                       [java] from the specified remote repositories:

                                       [java]   snapshots.jboss.org (http://snapshots.jboss.org/maven2),

                                       [java]   central (http://repo1.maven.org/maven2),

                                       [java]   repository.jboss.org (http://repository.jboss.org/maven2)

                                       [java]  for project org.jboss.maven.plugins:maven-jboss-license-plugin

                                       [java]

                                       [java]

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] [INFO] For more information, run Maven with the -e switch

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] [INFO] Total time: 17 seconds

                                       [java] [INFO] Finished at: Sat Dec 15 17:06:05 CST 2012

                                       [java] [INFO] Final Memory: 15M/36M

                                       [java] [INFO] ------------------------------------------------------------------------

                                       [java] Java Result: 1

                                   

                                   

                                  BUILD FAILED

                                  E:\jboss-5.1.0.GA-src\build\build.xml:1084: Unable to build maven modules.  See maven output for details.

                                   

                                   

                                  Total time: 19 seconds

                                  • 14. Re: Cannot install jboss-5.1.0.GA (Unable to build maven modules)
                                    bha007

                                    HI,

                                    Got same, just solved it that way.

                                    https://community.jboss.org/message/804820#

                                    Bruno