Bug 573422: Module documentation not available on integration builds
maven-javadoc-plugin parameter name changed. kept old settings for
reference, added new settings, too.
Change-Id: I869d7a25e454a882213e54af6cee943c738249cd
diff --git a/plugins/pom.xml b/plugins/pom.xml
index a23f0aa..ff973d0 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -141,6 +141,8 @@
<outputDirectory>${project.build.directory}/../mydocs</outputDirectory>
<doclet>org.eclipse.ease.helpgenerator.V9ModuleDoclet</doclet>
<docletPath>${doclet.path}</docletPath>
+
+ <!-- required for maven-javadoc-plugin before 3.0.0 -->
<additionalparam>-root ${basedir}
-encoding 'UTF-8'
-failOnHTMLError true
@@ -149,12 +151,27 @@
https://docs.oracle.com/en/java/javase/11/docs/api
-linkoffline
../../org.eclipse.platform.doc.isv/reference/api/
- http://help.eclipse.org/oxygen/topic/org.eclipse.platform.doc.isv/reference/api
+ https://help.eclipse.org/2021-03/topic/org.eclipse.platform.doc.isv/reference/api
-linkoffline
../../org.eclipse.ease.help/help/api-docs/javadoc/
https://ci.eclipse.org/ease/job/ease.build.core/JavaDoc
</additionalparam>
+ <!-- required for maven-javadoc-plugin 3.0.0 and higher -->
+ <additionalOptions>-root ${basedir}
+ -encoding 'UTF-8'
+ -failOnHTMLError true
+ -failOnMissingDocs true
+ -link
+ https://docs.oracle.com/en/java/javase/11/docs/api
+ -linkoffline
+ ../../org.eclipse.platform.doc.isv/reference/api/
+ https://help.eclipse.org/2021-03/topic/org.eclipse.platform.doc.isv/reference/api
+ -linkoffline
+ ../../org.eclipse.ease.help/help/api-docs/javadoc/
+ https://ci.eclipse.org/ease/job/ease.build.core/JavaDoc
+ </additionalOptions>
+
<useStandardDocletOptions>false</useStandardDocletOptions>
</configuration>
<executions>
diff --git a/tests/org.eclipse.ease.test/src/org/eclipse/ease/modules/ModuleDocumentationTest.java b/tests/org.eclipse.ease.test/src/org/eclipse/ease/modules/ModuleDocumentationTest.java
new file mode 100644
index 0000000..417e4e2
--- /dev/null
+++ b/tests/org.eclipse.ease.test/src/org/eclipse/ease/modules/ModuleDocumentationTest.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2021 Christian Pontesegger and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Christian Pontesegger - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.ease.modules;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+import org.eclipse.core.runtime.Platform;
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+
+public class ModuleDocumentationTest {
+
+ @Test
+ @DisplayName("module documentation exists")
+ public void module_documentation_exists() {
+ assertNotNull(Platform.getBundle("org.eclipse.ease").getEntry("/help/module_org.eclipse.ease.environment.html"));
+ }
+}