You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2021/04/24 18:23:09 UTC

[jspwiki] branch master updated: wrap remaining Maven invocation

This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 23b8a71  wrap remaining Maven invocation
23b8a71 is described below

commit 23b8a715c3763a34b4a5c35c024ba2bce225fc98
Author: Juan Pablo Santos Rodríguez <ju...@gmail.com>
AuthorDate: Sat Apr 24 20:22:44 2021 +0200

    wrap remaining Maven invocation
---
 Jenkinsfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 45ac47d..c8e3bae 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,8 +43,10 @@ try {
                     pom = readMavenPom file: 'pom.xml'
                     writeFile file: 'target/classes/apidocs.txt', text: 'file created in order to allow aggregated javadoc generation, target/classes is needed for all modules'
                     writeFile file: 'jspwiki-it-tests/target/classes/apidocs.txt', text: 'file created in order to allow aggregated javadoc generation, target/classes is needed for all modules'
-                    sh 'mvn package javadoc:aggregate-no-fork -DskipTests -pl !jspwiki-portable -Djdk.javadoc.doclet.version=2.0.12'
-                    sh 'java -cp jspwiki-main/target/classes org.apache.wiki.TranslationsCheck site'
+                    withMaven( jdk: buildJdk, maven: buildMvn, publisherStrategy: 'EXPLICIT' ) {
+                        sh 'mvn package javadoc:aggregate-no-fork -DskipTests -pl !jspwiki-portable -Djdk.javadoc.doclet.version=2.0.12'
+                        sh 'java -cp jspwiki-main/target/classes org.apache.wiki.TranslationsCheck site'
+                    }
                 } else {
                     buildJSPWiki()
                 }