Wiki
Wiki
This is an old revision of the document!
<parent> <groupId>de.gsi.cs.co</groupId> <artifactId>csco-parent-java-bundle</artifactId> <version>13.0.0-SNAPSHOT</version> </parent>
<dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>12.0.1</version> </dependency> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-fxml</artifactId> <version>12.0.1</version> </dependency>
or
<dependency> <groupId>de.gsi.lo.bi</groupId> <artifactId>lobi-common-gui-fx</artifactId> <version>1.9.0-SNAPSHOT</version> </dependency>
When compiling a project on the command line with 'mvn' a Javadoc error can occur (followed by some warnings):
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (attach-javadocs) on project esr-bpm: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module. [ERROR] /common/home/sd/rhaseitl/lnx/tmp/esr-bpm/src/main/java/de/gsi/lo/bi/esr/bpm/BpmController.java:158: warning: no description for @param [ERROR] * @param url [ERROR] ^
To solve this, add this to your pom file (be careful if you already have some other plugins within the <build> tag:
... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <source>8</source> </configuration> </plugin> </plugins> </build> ...
Sometimes this is not enough and a tag must be changed from exec to java in the nbactions.xml:
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
change to
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:java</goal>