From 8b88829e25181e906f6abdd2cb40f454cca77485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sat, 6 Jan 2024 14:10:06 +0100 Subject: [PATCH] Clean the api directory and bind javadoc and copy to different phases Currently the api directory is not cleaned so it can potentially contain stale data. Beside that javadoc and copy goal where bound to the same phases what can have odering side effects in maven. Additional to this, ignore uninteresting javadoc changes --- Jenkinsfile | 3 +- org.eclipse.pde.doc.user/pom.xml | 62 ++++++++++++++++++++++++++------ 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d7d02d5d33..a8ab59f843 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,8 @@ pipeline { -Papi-check \ -Pjavadoc \ -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true \ - -Dtycho.debug.artifactcomparator + -Dtycho.debug.artifactcomparator \ + -Dpde.docs.baselinemode=fail ''' } } diff --git a/org.eclipse.pde.doc.user/pom.xml b/org.eclipse.pde.doc.user/pom.xml index 728b265a96..82015fb3fd 100644 --- a/org.eclipse.pde.doc.user/pom.xml +++ b/org.eclipse.pde.doc.user/pom.xml @@ -21,11 +21,31 @@ eclipse-plugin - ../apitools - ../ui - ../build + ${basedir}/../apitools + ${basedir}/../ui + ${basedir}/../build + + + + build-individual-bundles + + warn + + + + + org.eclipse.tycho + tycho-p2-plugin + + ${pde.docs.baselinemode} + + + + + + @@ -37,6 +57,29 @@ + + maven-clean-plugin + + + + reference/api + + + + + + org.eclipse.tycho + tycho-p2-plugin + + + + reference/api/*.css + reference/api/*.js + reference/api/legal/**/* + reference/api/script-dir/**/* + + + org.eclipse.tycho target-platform-configuration @@ -109,11 +152,11 @@ - ${basedir}/${eclipse.pde.ui.ui}/org.eclipse.ui.trace/plugin.xml - ${basedir}/${eclipse.pde.ui.ui}/org.eclipse.pde.core/plugin.xml - ${basedir}/${eclipse.pde.build}/org.eclipse.pde.build/plugin.xml - ${basedir}/${eclipse.pde.ui.ui}/org.eclipse.pde.ui/plugin.xml - ${basedir}/${eclipse.pde.ui.ui}/org.eclipse.pde.launching/plugin.xml + ${eclipse.pde.ui.ui}/org.eclipse.ui.trace/plugin.xml + ${eclipse.pde.ui.ui}/org.eclipse.pde.core/plugin.xml + ${eclipse.pde.build}/org.eclipse.pde.build/plugin.xml + ${eclipse.pde.ui.ui}/org.eclipse.pde.ui/plugin.xml + ${eclipse.pde.ui.ui}/org.eclipse.pde.launching/plugin.xml ${basedir}/reference/extension-points @@ -154,7 +197,7 @@ attach-javadocs - prepare-package + process-classes javadoc @@ -190,7 +233,6 @@ copy-resources - prepare-package copy-resources