From c6155643d6576449f7f721e0ca26a7be9c9dc93a Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sat, 15 May 2021 10:19:08 +0700 Subject: Create javadoc for all public artifacts, fix dependencies Sonatype OSSRH repository rules require source and javadoc JARs in order to create staging repositories for releases to be promoted to Maven Central. So I added build steps to unzip the source JARs and then create Javadocs for them. FIXME: This configuration works with JDK 16, but throws errors on other JDK versions, e.g. 14. It looks as if the Maven Javadoc plugin does not do a particularly good job applying the plugin settings in a way making it work with different JDK javadoc tool versions. I am saying that, because when using the tool directly on the console, it works with basic settings and the correct classpath. In order to enable creating uber JARs via Maven Shade in the future, I also added missing dependencies. Maven Assembly descriptors just assume that all the necessary class files and sources already exist where it copies them from. But several of the dependency modules were not explicitly listed as such by the uber JAR modules. I fixed that. Signed-off-by: Alexander Kriegisch --- aspectjweaver/pom.xml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'aspectjweaver') diff --git a/aspectjweaver/pom.xml b/aspectjweaver/pom.xml index 806622208..4db51b332 100644 --- a/aspectjweaver/pom.xml +++ b/aspectjweaver/pom.xml @@ -175,6 +175,66 @@ + + org.codehaus.mojo + truezip-maven-plugin + + + unzip-relocated-sources + package + + copy + + + + ${maven.javadoc.skip} + true + + + ${project.build.directory}/${project.build.finalName}-sources.jar/org/aspectj + ${project.build.directory}/unpacked-sources/org/aspectj + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + javadoc-jar + package + + jar + + + + ${project.build.directory}/unpacked-sources + + org.aspectj + + none + + true + + 8 + + + + + org.codehaus.mojo -- cgit v1.2.3