From: David Roden Date: Sun, 11 May 2025 09:00:17 +0000 (+0200) Subject: 📝 Build javadoc and archive it correctly X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=01d857c338229ca634153def4813aa0db79d879f;p=msta.git 📝 Build javadoc and archive it correctly --- diff --git a/Jenkinsfile b/Jenkinsfile index e84b7dd..e6779e9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,7 @@ pipeline { configFileProvider([configFile(fileId: 'fb50fa11-48a8-44b8-84fd-e11f06ab1067', targetLocation: 'toolchains.xml')]) { sh './mvnw -t toolchains.xml -DskipTests=true package' archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true - javadoc javadocDir: '**/target/apidocs', keepAll: true + javadoc javadocDir: 'target/site/apidocs', keepAll: true } } } diff --git a/pom.xml b/pom.xml index 934eca5..86e07ae 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,11 @@ 3.13.0 + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.3 + + maven-surefire-plugin 3.3.1 @@ -148,6 +153,18 @@ org.apache.maven.plugins maven-toolchains-plugin + + org.apache.maven.plugins + maven-javadoc-plugin + + + + aggregate + + package + + +