]
Gustavo Fernandes commented on ISPN-4865:
-----------------------------------------
Workaround is to manually download the file and install it locally
{code}
mvn install:install-file -DgroupId=antlr -DartifactId=antlr -Dversion=2.7.7
-Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/org.antlr.antlr-2.7.7-sources.jar
{code}
Solution is to exclude it from the build or deploy it to the jboss repo
Missing artifact sources during javadoc generation on distribution
------------------------------------------------------------------
Key: ISPN-4865
URL:
https://issues.jboss.org/browse/ISPN-4865
Project: Infinispan
Issue Type: Bug
Components: Build process
Affects Versions: 7.0.0.CR1
Reporter: Gustavo Fernandes
{{mvn clean install -Dmaven.test.skip.exec=true -Pdistribution -s maven-settings.xml}}
Fails with:
{code}
[INFO] Infinispan Distribution ............................ FAILURE [ 31.539 s]
[INFO] Infinispan ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.833 s
[INFO] Finished at: 2014-10-20T20:22:20+00:00
[INFO] Final Memory: 73M/261M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10:javadoc
(javadoc) on project infinispan-distribution: An error has occurred in JavaDocs report
generation: Failed to resolve one or more javadoc source/resource artifacts:
[ERROR]
[ERROR] Missing:
[ERROR] ----------
[ERROR] 1) antlr:antlr:jar:sources:2.7.7
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=antlr -DartifactId=antlr -Dversion=2.7.7
-Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=antlr -DartifactId=antlr -Dversion=2.7.7
-Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) org.infinispan:infinispan-distribution:pom:7.0.0-SNAPSHOT
[ERROR] 2) antlr:antlr:jar:sources:2.7.7
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR] org.infinispan:infinispan-distribution:pom:7.0.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] redhat-earlyaccess-repository-group
(
http://maven.repository.redhat.com/earlyaccess/all/, releases=true, snapshots=true),
[ERROR] jboss-public-repository-group
(
https://repository.jboss.org/nexus/content/groups/public-jboss/, releases=true,
snapshots=true),
[ERROR] jboss-public-repository
(
https://repository.jboss.org/nexus/content/groups/public, releases=true,
snapshots=true),
[ERROR] central (
https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
{code}