These cause failure to generate javadoc for projects which specify <includeDependencySources>true</includeDependencySources> for the purpose of inheriting documentation:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:jar (attach-javadocs) on project ...: MavenReportException: Error while generating Javadoc: Failed to resolve one or more javadoc source/resource artifacts:
[ERROR]
[ERROR] Failed to unpack: org.liquibase:liquibase-core:jar:sources:3.8.6
[ERROR] org.liquibase:liquibase-core:jar:3.8.6
[ERROR]
[ERROR] : Entry is outside of the target directory (/)
The
sources
artifacts forliquibase-core
3.8.6
and3.8.7
(unlike3.8.5
and earlier) appear to contain rogue entries like:/ /var/ /var/jenkins/ /var/jenkins/workspace/ /var/jenkins/workspace/liquibasePro/ /var/jenkins/workspace/liquibasePro/3.8.x/...
See:
https://repo1.maven.org/maven2/org/liquibase/liquibase-core/3.8.6/liquibase-core-3.8.6-sources.jar
https://repo1.maven.org/maven2/org/liquibase/liquibase-core/3.8.7/liquibase-core-3.8.7-sources.jar
and compare to:
https://repo1.maven.org/maven2/org/liquibase/liquibase-core/3.8.5/liquibase-core-3.8.5-sources.jar
These cause failure to generate javadoc for projects which specify
<includeDependencySources>true</includeDependencySources>
for the purpose of inheriting documentation:<plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>3.1.1</version> <configuration> <includeDependencySources>true</includeDependencySources> <subpackages>...</subpackages> </configuration> </plugin>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:jar (attach-javadocs) on project ...: MavenReportException: Error while generating Javadoc: Failed to resolve one or more javadoc source/resource artifacts: [ERROR] [ERROR] Failed to unpack: org.liquibase:liquibase-core:jar:sources:3.8.6 [ERROR] org.liquibase:liquibase-core:jar:3.8.6 [ERROR] [ERROR] : Entry is outside of the target directory (/)