3 Replies Latest reply on Aug 7, 2010 6:39 PM by Ales Justin

    Broken build?

    Ales Justin Master

      I've just cloned the project from this github: http://github.com/arquillian/arquillian

      Running "mvn clean install" results in

       

      Skywalker:arquillian alesj$ mvn clean install
      [INFO] Scanning for projects...
      [WARNING] Missing POM for org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.2
      [ERROR] The build could not read 2 projects -> [Help 1]
      [ERROR]   The project org.jboss.arquillian.protocol:arquillian-protocol-jmx-osgi-bundle:1.0.0-SNAPSHOT (/Users/alesj/projects/arquillian/protocols/jmx-osgi-bundle/pom.xml) has 2 errors
      [ERROR]     Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.1.0 or one of its dependencies could not be resolved: Missing:
      ----------
      1) org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.2
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=org.apache.felix -DartifactId=org.apache.felix.bundlerepository -Dversion=1.6.2 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=org.apache.felix -DartifactId=org.apache.felix.bundlerepository -Dversion=1.6.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
            1) org.apache.felix:maven-bundle-plugin:maven-plugin:2.1.0
            2) org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.2
      
      ----------
      1 required artifact is missing.
      
      for artifact: 
        org.apache.felix:maven-bundle-plugin:maven-plugin:2.1.0
      
      from the specified remote repositories:
        central (replaced by mirror settings, releases=true, snapshots=true),
        jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true)
          -> [Help 2]
      [ERROR]     Unknown packaging: bundle
      [ERROR]   The project org.jboss.arquillian:arquillian-reference-guide:1.0.0-SNAPSHOT (/Users/alesj/projects/arquillian/doc/reference/pom.xml) has 2 errors
      [ERROR]     Unresolveable build extension: Plugin org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0 or one of its dependencies could not be resolved: No versions are present in the repository for the artifact with a range [1.1.0,1.2.0)
        org.eclipse.wst.sse:core:jar:null
      
      from the specified remote repositories:
        central (replaced by mirror settings, releases=true, snapshots=true),
        jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true),
        repository.jboss.com (http://repository.jboss.com/maven2/, releases=true, snapshots=false),
        maven2-snapshots.jboss.org (http://snapshots.jboss.org/maven2, releases=false, snapshots=true),
        maven-repository.dev.java.net (http://download.java.net/maven/1, releases=true, snapshots=false)
      Path to dependency: 
          1) org.jboss.maven.plugins:maven-jdocbook-plugin:maven-plugin:2.2.0
          2) org.jboss:jbossorg-docbook-xslt:jar:1.1.0
          3) org.jboss.docs:highlight:jar:1.0.0
          4) org.richfaces.docs:highlight:jar:3.1.4.GA
          5) org.eclipse.wst.css:core:jar:1.1.101-v200705302225
          -> [Help 2]
      [ERROR]     Unknown packaging: jdocbook
      [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/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
      Skywalker:arquillian alesj$
      

       

      Do I need to add some extra mvn repo?

        • 1. Re: Broken build?
          Aslak Knutsen Master

          No extra repos, but you are mirroring central and your mirror doesn't have a full central view it seems.

           

          http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.bundlerepository/1.6.2/

           

          from the specified remote repositories:

            central (replaced by mirror settings, releases=true, snapshots=true),
          • 2. Re: Broken build?
            Ales Justin Master

            Updating the settings.xml with the latest from: http://community.jboss.org/wiki/MavenSettingsExample-Developers

            gets me past the missing osgi, but the other error remains:

             

            Skywalker:arquillian alesj$ mvn clean install
            [INFO] Scanning for projects...
            [ERROR] The build could not read 1 project -> [Help 1]
            [ERROR]   The project org.jboss.arquillian:arquillian-reference-guide:1.0.0-SNAPSHOT (/Users/alesj/projects/arquillian/doc/reference/pom.xml) has 2 errors
            [ERROR]     Unresolveable build extension: Plugin org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.0 or one of its dependencies could not be resolved: No versions are present in the repository for the artifact with a range [1.1.0,1.2.0)
              org.eclipse.wst.sse:core:jar:null
            
            from the specified remote repositories:
              jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true),
              central (http://repo1.maven.org/maven2, releases=true, snapshots=false),
              repository.jboss.com (http://repository.jboss.com/maven2/, releases=true, snapshots=false),
              maven2-snapshots.jboss.org (http://snapshots.jboss.org/maven2, releases=false, snapshots=true),
              maven-repository.dev.java.net (http://download.java.net/maven/1, releases=true, snapshots=false)
            Path to dependency: 
                1) org.jboss.maven.plugins:maven-jdocbook-plugin:maven-plugin:2.2.0
                2) org.jboss:jbossorg-docbook-xslt:jar:1.1.0
                3) org.jboss.docs:highlight:jar:1.0.0
                4) org.richfaces.docs:highlight:jar:3.1.4.GA
                5) org.eclipse.wst.css:core:jar:1.1.101-v200705302225
                -> [Help 2]
            [ERROR]     Unknown packaging: jdocbook
            [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/ProjectBuildingException
            [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
            Skywalker:arquillian alesj$
            

             

            Any idea?

            • 3. Re: Broken build?
              Ales Justin Master
              Any idea?

              Excluding <!-- module>doc/reference</module --> helped. :-)

              Looks like mvn issue; I'm running 3.0.0.Beta1.