7 Replies Latest reply on Nov 14, 2012 10:43 PM by xiaojun zou

    how to build jboss as7

    xiaojun zou Newbie

      I have download the resources about as7 on github, and maven 3 has installed on my computer . when I want to build the resources, It can't be success!

      like this: cd F:\jboss-as-7.1

                    build.bat

      [INFO] --- buildnumber-maven-plugin:1.0:create (get-scm-revision) @ jboss-as-build-config ---

      [INFO] Checking for local modifications: skipped.

      [INFO] Updating project files from SCM: skipped.

      [INFO] Executing: cmd.exe /X /C "git show"

      [INFO] Working directory: F:\jboss-as-7.1\build-config

      [WARNING] Cannot get the revision information from the scm repository, proceeding with revision of

      NKNOWN :

      Exception while executing SCM command.

      [INFO] Storing buildNumber: UNKNOWN at timestamp: 1352878380312

      [INFO] Executing: cmd.exe /X /C "git show"

      [INFO] Working directory: F:\jboss-as-7.1\build-config

      [WARNING] Cannot get the branch information from the scm repository, proceeding with UNKNOWN_BRANCH

      :

      Exception while executing SCM command.

      [INFO] Storing buildScmBranch: UNKNOWN_BRANCH

      [INFO]

        • 1. Re: how to build jboss as7
          Nicklas Karlsson Master

          What happens then? What are the actual errors?

          • 2. Re: how to build jboss as7
            xiaojun zou Newbie

            thank you for reply, I don't know where has error, when I download as7 resources, It can't build successfully by maven 3. cmd console next maven error message is:

             

            [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jboss-as-build-config ---

            [debug] execute contextualize

            [INFO] Using 'UTF-8' encoding to copy filtered resources.

            [INFO] Copying 1 resource

            [INFO]

            [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jboss-as-build-config ---

            [INFO] No sources to compile

            [INFO]

            [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jboss-as-build-config

            ---

            [debug] execute contextualize

            [INFO] Using 'UTF-8' encoding to copy filtered resources.

            [INFO] skip non existing resourceDirectory F:\jboss-as-7.1\build-config\src\test\resources

            [INFO]

            [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jboss-as-build-config ---

             

             

            [INFO] No sources to compile

            [INFO]

            [INFO] --- maven-surefire-plugin:2.11:test (default-test) @ jboss-as-build-config ---

            [INFO] No tests to run.

            [INFO] Surefire report directory: F:\jboss-as-7.1\build-config\target\surefire-reports

             

             

            -------------------------------------------------------

            T E S T S

            -------------------------------------------------------

            java.lang.NoClassDefFoundError: org/apache/maven/surefire/testset/DirectoryScannerParameters

                    at org.apache.maven.surefire.booter.BooterDeserializer.deserialize(BooterDeserializer.java:7

            7)

                    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:62)

            Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.testset.DirectoryScannerParam

            eters

                    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

                    at java.security.AccessController.doPrivileged(Native Method)

                    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

                    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

                    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

                    ... 2 more

             

             

            Results :

             

             

            Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

             

             

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

            [INFO] Reactor Summary:

            [INFO]

            [INFO] JBoss Application Server: Build Configuration ..... FAILURE [1.953s]

            [INFO] JBoss Application Server: Parent Aggregator ....... SKIPPED

            [INFO] JBoss Application Server: Domain HTTP Interface ... SKIPPED

            [INFO] JBoss Application Server: Domain HTTP Error Context  SKIPPED

            [INFO] JBoss Application Server: Protocol Utilities ...... SKIPPED

            [INFO] JBoss Application Server: Controller Client ....... SKIPPED

            [INFO] JBoss Application Server: Controller Core ......... SKIPPED

            [INFO] JBoss Application Server: Domain Management ....... SKIPPED

            [INFO] JBoss Application Server: Domain HTTP Interface ... SKIPPED

            [INFO] JBoss Application Server: Deployment Repository ... SKIPPED

            [INFO] JBoss Application Server: Embedded ................ SKIPPED

            [INFO] JBoss Application Server: Platform MBean integration  SKIPPED

            [INFO] JBoss Application Server: Process Controller ...... SKIPPED

            [INFO] JBoss Application Server: Network ................. SKIPPED

            [INFO] JBoss Application Server: Threading Subsystem ..... SKIPPED

            [INFO] JBoss Application Server: Remoting Subsystem ...... SKIPPED

            [INFO] JBoss Application Server: Server .................. SKIPPED

            [INFO] JBoss Application Server: Subsystem Test Harness .. SKIPPED

            [INFO] JBoss Application Server: JMX Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: Naming Subsystem ........ SKIPPED

            [INFO] JBoss Application Server: EE ...................... SKIPPED

            [INFO] JBoss Application Server: JacORB Subsystem ........ SKIPPED

            [INFO] JBoss Application Server: Transaction Subsystem ... SKIPPED

            [INFO] JBoss Application Server: Clustering Subsystem .... SKIPPED

            [INFO] JBoss Application Server: Clustering Server API ... SKIPPED

            [INFO] JBoss Application Server: Common code for clustering subsystems  SKIPPED

            [INFO] JBoss Application Server: JGroups Subsystem ....... SKIPPED

            [INFO] JBoss Application Server: Infinispan Subsystem .... SKIPPED

            [INFO] JBoss Application Server: Security Subsystem ...... SKIPPED

            [INFO] JBoss Application Server: Connector Subsystem ..... SKIPPED

            [INFO] JBoss Application Server: Clustered registry service  SKIPPED

            [INFO] JBoss Application Server: EJB Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: Distributed Web Session SPI  SKIPPED

            [INFO] JBoss Application Server: Clustering Server API implementation  SKIPPED

            [INFO] JBoss Application Server: Distributed Web Session Infinispan provider  SKIPPED

            [INFO] JBoss Application Server: Web Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: Web Services Subsystem .. SKIPPED

            [INFO] JBoss Application Server: Web Services Server Integration Subsystem  SKIPPED

            [INFO] JBoss Application Server: Application Client Bootstrap  SKIPPED

            [INFO] JBoss Application Server: Config Assembly ......... SKIPPED

            [INFO] JBoss Application Server: Command line interface .. SKIPPED

            [INFO] JBoss Application Server: EJB Client BOM .......... SKIPPED

            [INFO] JBoss Application Server: JMS Client BOM .......... SKIPPED

            [INFO] JBoss Application Server: EJB and JMS client combined jar  SKIPPED

            [INFO] JBoss Application Server: Clustered Stateful Session Bean cache Infinispan provider  SKIPPED

            [INFO] JBoss Application Server: Clustered service provider registry services  SKIPPED

            [INFO] JBoss Application Server: Clustered singleton services  SKIPPED

            [INFO] JBoss Application Server: EJB Container Managed Persistence Subsystem  SKIPPED

            [INFO] JBoss Application Server: Config Admin ............ SKIPPED

            [INFO] JBoss Application Server: Deployment Scanner ...... SKIPPED

            [INFO] JBoss Application Server: EE Deployment ........... SKIPPED

            [INFO] JBoss Application Server: JAXR Client ............. SKIPPED

            [INFO] JBoss Application Server: JPA Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: JPA SPI ................. SKIPPED

            [INFO] JBoss Application Server: JPA UTIL ................ SKIPPED

            [INFO] JBoss Application Server: JPA Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: Weld Integration ........ SKIPPED

            [INFO] JBoss Application Server: JAX-RS Integration ...... SKIPPED

            [INFO] JBoss Application Server: JBoss Diagnostic Reporter  SKIPPED

            [INFO] JBoss Application Server: JDR ..................... SKIPPED

            [INFO] JBoss Application Server: JSF Support jar ......... SKIPPED

            [INFO] JBoss Application Server: JSR-77 Subsystem ........ SKIPPED

            [INFO] JBoss Application Server: Management Client Content  SKIPPED

            [INFO] JBoss Application Server: Host Controller ......... SKIPPED

            [INFO] JBoss Application Server: Logging Subsystem ....... SKIPPED

            [INFO] JBoss Application Server: Mail subsystem .......... SKIPPED

            [INFO] JBoss Application Server: Messaging Subsystem ..... SKIPPED

            [INFO] JBoss Application Server: ModCluster Subsystem .... SKIPPED

            [INFO] JBoss Application Server: OSGi .................... SKIPPED

            [INFO] JBoss Application Server: OSGi Subsystem .......... SKIPPED

            [INFO] JBoss Application Server: OSGi ConfigurationAdmin . SKIPPED

            [INFO] JBoss Application Server: POJO Subsystem .......... SKIPPED

            [INFO] JBoss Application Server: sosreport scripts ....... SKIPPED

            [INFO] JBoss Application Server: Service Archive Subsystem  SKIPPED

            [INFO] JBoss Application Server: XTS Subsystem ........... SKIPPED

            [INFO] JBoss Application Server: Hibernate 3.6.x JPA integration  SKIPPED

            [INFO] JBoss Application Server: Hibernate 4.0.x JPA integration  SKIPPED

            [INFO] JBoss Application Server: OpenJPA 2.x JPA integration  SKIPPED

            [INFO] JBoss Application Server: Build ................... SKIPPED

            [INFO] JBoss Application Server: Arquillian .............. SKIPPED

            [INFO] JBoss Application Server: Arquillian TestEnricher MSC  SKIPPED

            [INFO] JBoss Application Server: Arquillian Common ....... SKIPPED

            [INFO] JBoss Application Server: Arquillian Protocol JMX . SKIPPED

            [INFO] JBoss Application Server: Arquillian Managed Container  SKIPPED

            [INFO] JBoss Application Server: Arquillian Remote Container  SKIPPED

            [INFO] JBoss Application Server: Exported Java EE Specification APIs  SKIPPED

            [INFO] JBoss Application Server: Arquillian TestNG Integration  SKIPPED

            [INFO] JBoss Application Server: Arquillian Common Domain  SKIPPED

            [INFO] JBoss Application Server: Arquillian Remote Domain Container  SKIPPED

            [INFO] JBoss Application Server: Arquillian Managed Domain Container  SKIPPED

            [INFO] JBoss Application Server: Distribution ............ SKIPPED

            [INFO] JBoss Application Server: Remoting Subsystem Test . SKIPPED

            [INFO] JBoss Application Server: Validation Tests for Exported Java EE Specification APIs  SKIPPED

            [INFO] JBoss Application Server: Web Services Tests Integration Subsystem  SKIPPED

            [INFO] JBoss Application Server Test Suite: Shared ....... SKIPPED

            [INFO] JBoss Application Server Test Suite: Aggregator ... SKIPPED

            [INFO] JBoss Application Server Test Suite: Integration .. SKIPPED

            [INFO] JBoss Application Server Test Suite: Integration - Smoke  SKIPPED

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

            [INFO] BUILD FAILURE

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

            [INFO] Total time: 8.859s

            [INFO] Finished at: Wed Nov 14 15:57:17 CST 2012

            [INFO] Final Memory: 69M/178M

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

            [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-tes

            t) on project jboss-as-build-config: Error occured in starting fork, check output in log -> [Help 1]

             

             

            [ERROR]

            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

            [ERROR] Re-run Maven using the -X switch to enable full debug logging.

            [ERROR]

            [ERROR] For more information about the errors and possible solutions, please read the following arti

            cles:

            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

            • 3. Re: how to build jboss as7
              Nicklas Karlsson Master

              So you started with downloading https://github.com/jbossas/jboss-as/archive/master.zip ?

              and you have no strange maven-related environment variables around?

              • 4. Re: how to build jboss as7
                xiaojun zou Newbie

                yes, I had download that source, and you are right, I think that's some wrong with maven settings. I don't have the environment.

                I read the "README.md", It says

                build.jpg

                build.bat is run the maven which include in the source, and I don't how to set strange maven-related environment variables.

                I will search answer on the internet and check it more.

                • 5. Re: how to build jboss as7
                  Nicklas Karlsson Master

                  It looks like build.bat should clear most of the usual suspects. Have you tried it with a standalone maven 3?

                  • 6. Re: how to build jboss as7
                    Tomaz Cerar Master

                    Hi,

                     

                    do you maybe have M2_HOME enviroment variable set somewhere?

                     

                    if so remove it or point it to valid 3.0.4 version of maven. older versions then that will not work

                    it should probably work after that.

                     

                     

                    running

                    mvn clean install -DskipTests

                     

                    runs without any issues for me

                     

                    --
                    tomaz

                    • 7. Re: how to build jboss as7
                      xiaojun zou Newbie

                      thank you! Tomaz. I build success with the command you give me. I have the M2_HOME environment variable, and point it to as7 source tools/maven.

                      I think that error was raised by maven test config, so that I  must install it with -DskipTests.

                      however, I get the as7 product in build/target finally, thanks!