7 Replies Latest reply on Sep 20, 2010 6:42 PM by jwulf

    Maven problems building AS7

    jwulf

      I followed the instructions here: http://community.jboss.org/wiki/HackingonAS7

      and here: http://community.jboss.org/docs/DOC-15166 

       

      to try to build AS7. 

       

      I get the following error: 

       

      [jwulf@gaura jboss-as]$ mvn install

      [INFO] Scanning for projects...

      [ERROR] The build could not read 2 projects -> [Help 1]

      [ERROR]   The project org.jboss.as:jboss-as-testsuite-protocol-base:7.0.0.Beta1-SNAPSHOT (/home/jwulf/Work/AS7/jboss-as/testsuite/protocol/base/pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM org.jboss.as:jboss-as-parent:7.0.0.Beta1-SNAPSHOT for org.jboss.as:jboss-as-testsuite-protocol-base:7.0.0.Beta1-SNAPSHOT: Failed to resolve POM for org.jboss.as:jboss-as-parent:7.0.0.Beta1-SNAPSHOT due to The following artifacts could not be resolved: org.jboss.as:jboss-as-parent:pom:7.0.0.Beta1-SNAPSHOT: Failure to find org.jboss.as:jboss-as-parent:pom:7.0.0.Beta1-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository. Resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced. -> [Help 2]

      [ERROR]   The project org.jboss.as:jboss-as-testsuite-protocol-test:7.0.0.Beta1-SNAPSHOT (/home/jwulf/Work/AS7/jboss-as/testsuite/protocol/test/pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM org.jboss.as:jboss-as-testsuite:7.0.0.Beta1-SNAPSHOT for org.jboss.as:jboss-as-testsuite-protocol-test:7.0.0.Beta1-SNAPSHOT: Failed to resolve POM for org.jboss.as:jboss-as-testsuite:7.0.0.Beta1-SNAPSHOT due to The following artifacts could not be resolved: org.jboss.as:jboss-as-testsuite:pom:7.0.0.Beta1-SNAPSHOT: Failure to find org.jboss.as:jboss-as-testsuite:pom:7.0.0.Beta1-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository. Resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced. -> [Help 2]

      [jwulf@gaura jboss-as]$ mvn install
      [INFO] Scanning for projects...
      [ERROR] The build could not read 2 projects -> [Help 1]
      [ERROR]   The project org.jboss.as:jboss-as-testsuite-protocol-base:7.0.0.Beta1-SNAPSHOT (/home/jwulf/Work/AS7/jboss-as/testsuite/protocol/base/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM org.jboss.as:jboss-as-parent:7.0.0.Beta1-SNAPSHOT for org.jboss.as:jboss-as-testsuite-protocol-base:7.0.0.Beta1-SNAPSHOT: Failed to resolve POM for org.jboss.as:jboss-as-parent:7.0.0.Beta1-SNAPSHOT due to The following artifacts could not be resolved: org.jboss.as:jboss-as-parent:pom:7.0.0.Beta1-SNAPSHOT: Failure to find org.jboss.as:jboss-as-parent:pom:7.0.0.Beta1-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository. Resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced. -> [Help 2]
      [ERROR]   The project org.jboss.as:jboss-as-testsuite-protocol-test:7.0.0.Beta1-SNAPSHOT (/home/jwulf/Work/AS7/jboss-as/testsuite/protocol/test/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM org.jboss.as:jboss-as-testsuite:7.0.0.Beta1-SNAPSHOT for org.jboss.as:jboss-as-testsuite-protocol-test:7.0.0.Beta1-SNAPSHOT: Failed to resolve POM for org.jboss.as:jboss-as-testsuite:7.0.0.Beta1-SNAPSHOT due to The following artifacts could not be resolved: org.jboss.as:jboss-as-testsuite:pom:7.0.0.Beta1-SNAPSHOT: Failure to find org.jboss.as:jboss-as-testsuite:pom:7.0.0.Beta1-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public-jboss/ was cached in the local repository. Resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced. -> [Help 2]
      Any ideas or pointers?

        • 1. Re: Maven problems building AS7
          jwulf

          Running ./build.sh clean install inside the AS jboss-as folder gives an error for the same dependency.

          • 2. Re: Maven problems building AS7
            wolfc

            Note that maven does not retry failed resolutions. It caches the error. So if (for some reason) the repository was not reachable you're stuck. (I consider this a bug, but allas.)

            • 3. Re: Maven problems building AS7
              brian.stansberry

              Does

               

              ./build.sh install -U

               

              solve the problem?

              • 4. Re: Maven problems building AS7
                dimitris

                I have the same issue, actually.

                • 5. Re: Maven problems building AS7
                  wolfc

                  Found and fixed the issue: https://jira.jboss.org/browse/JBAS-8440

                   

                  Just fetch my branch at http://github.com/wolfc/jboss-as.

                  • 6. Re: Maven problems building AS7
                    dimitris

                    Carlo de Wolf wrote:

                     

                    Found and fixed the issue: https://jira.jboss.org/browse/JBAS-8440

                     

                    Just fetch my branch at http://github.com/wolfc/jboss-as.

                    Thanks Carlo, that fixes it.

                     

                    So changes to the master copy should really be tested against clean repos?

                     

                    At least the hudson run should run with a clean repo. This one didn't catch this:

                     

                    http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-7.0.x/changes

                    • 7. Re: Maven problems building AS7
                      jwulf

                      I pulled the latest from master, where Brian merged the patch. Now I get this:
                      ./build.sh clean install
                      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:testCompile (default-testCompile) on project jboss-as-domain: Compilation failure: Compilation failure:
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[70,76] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#839 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.DeploymentUnitElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[82,76] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#340 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.DeploymentUnitElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[170,76] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#677 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.DeploymentUnitElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileIncludeElementTestBase.java:[64,76] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#276 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ProfileIncludeElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileIncludeElementTestBase.java:[122,76] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#266 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ProfileIncludeElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[94,62] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#70 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ProfileElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[119,62] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#410 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ProfileElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[234,62] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#81 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ProfileElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[90,68] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#474 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.PropertiesElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[109,68] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#254 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.PropertiesElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[208,68] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#187 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.PropertiesElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[225,50] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#952 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.PropertiesElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[70,90] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#928 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ServerGroupDeploymentElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[81,90] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#874 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ServerGroupDeploymentElement
                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[168,90] inconvertible types
                      found   : org.jboss.as.model.AbstractModelElement<capture#669 of ? extends org.jboss.as.model.AbstractModelElement<?>>
                      required: org.jboss.as.model.ServerGroupDeploymentElement
                      -> [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 articles:
                      [ERROR]
                      [ERROR] After correcting the problems, you can resume the build with the command
                      [ERROR]   mvn <goals> -rf :jboss-as-domain

                      I pulled the latest from master, where Brian merged the patch. Now I get this:

                       

                      ./build.sh clean install

                       

                      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:testCompile (default-testCompile) on project jboss-as-domain: Compilation failure: Compilation failure:

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[70,76] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#839 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.DeploymentUnitElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[82,76] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#340 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.DeploymentUnitElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/DeploymentUnitElementTestBase.java:[170,76] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#677 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.DeploymentUnitElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileIncludeElementTestBase.java:[64,76] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#276 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ProfileIncludeElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileIncludeElementTestBase.java:[122,76] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#266 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ProfileIncludeElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[94,62] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#70 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ProfileElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[119,62] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#410 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ProfileElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ProfileElementTestBase.java:[234,62] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#81 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ProfileElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[90,68] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#474 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.PropertiesElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[109,68] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#254 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.PropertiesElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[208,68] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#187 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.PropertiesElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/PropertiesElementTestBase.java:[225,50] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#952 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.PropertiesElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[70,90] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#928 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ServerGroupDeploymentElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[81,90] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#874 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ServerGroupDeploymentElement

                       

                      /home/jwulf/Work/AS7/jboss-as/domain/src/test/java/org/jboss/as/model/base/ServerGroupDeploymentElementTestBase.java:[168,90] inconvertible types

                      found   : org.jboss.as.model.AbstractModelElement<capture#669 of ? extends org.jboss.as.model.AbstractModelElement<?>>

                      required: org.jboss.as.model.ServerGroupDeploymentElement

                      -> [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 articles:

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

                      [ERROR]

                      [ERROR] After correcting the problems, you can resume the build with the command

                      [ERROR]   mvn <goals> -rf :jboss-as-domain