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 --- aspectjmatcher/pom.xml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'aspectjmatcher') diff --git a/aspectjmatcher/pom.xml b/aspectjmatcher/pom.xml index e0cd44e8a..ff456caa1 100644 --- a/aspectjmatcher/pom.xml +++ b/aspectjmatcher/pom.xml @@ -157,6 +157,59 @@ + + org.codehaus.mojo + truezip-maven-plugin + + + unzip-relocated-sources + package + + copy + + + + ${maven.javadoc.skip} + true + + ${project.build.directory}/${project.build.finalName}-sources.jar + ${project.build.directory}/unpacked-sources + + + + + + + + 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 @@ -184,4 +237,23 @@ + + + + org.aspectj + util + ${project.version} + + + org.aspectj + bridge + ${project.version} + + + org.aspectj + org.aspectj.matcher + ${project.version} + + + -- cgit v1.2.3