Wednesday, April 2, 2014

HBase site.xml bug Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.2:site (default-site) on project hbase: SiteToolException: ArtifactResolutionException

When building HBase there is a bug:



[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:45.079s
[INFO] Finished at: Wed Apr 02 22:18:44 PDT 2014
[INFO] Final Memory: 69M/551M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.2:site (default-site) on project hbase: SiteToolException: ArtifactResolutionException: Unable to find skin: Could not transfer artifact org.apache.maven.skins:maven-stylus-skin:jar:1.5 from/to central (http//repo.maven.apache.org/maven2/): No connector available to access repository central (http//repo.maven.apache.org/maven2/) of type default using the available factories WagonRepositoryConnectorFactory
[ERROR] org.apache.maven.skins:maven-stylus-skin:jar:RELEASE
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (http//repo.maven.apache.org/maven2/, releases=true, snapshots=true),
[ERROR] cloudera (https://repository.cloudera.com/artifactory/cloudera-repos, releases=true, snapshots=true),
[ERROR] apache release (https://repository.apache.org/content/repositories/releases/, releases=true, snapshots=true),
[ERROR] apache non-releases (http://people.apache.org/~stack/m2/repository, releases=true, snapshots=false),
[ERROR] java.net (http://download.java.net/maven/2/, releases=true, snapshots=false),
[ERROR] codehaus (http://repository.codehaus.org/, releases=true, snapshots=false),
[ERROR] repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public-jboss/, releases=true, snapshots=false),
[ERROR] ghelmling.testing (http://people.apache.org/~garyh/mvn/, releases=true, snapshots=true),
[ERROR] apache.snapshots (http://repository.apache.org/snapshots, releases=false, snapshots=true)
[ERROR] -> [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/MojoExecutionException
error: Bad exit status from /var/tmp/rpm-tmp.2cxbys (%build)


This bug comes from the mvn site command where we are building docs for hbase. site.xml is under src/site/site.xml


    org.apache.maven.skins
    maven-stylus-skin

 


Add a 1.5 tag to the maven skin artifact:


    org.apache.maven.skins
    maven-stylus-skin
    1.5
 





No comments:

Post a Comment