I'm having trouble running release: run with Java 8 and maven 3.0.5. I get an error when creating a Javadoc. I added the javadoc plugin:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin>
It is strange that it works fine when I run "mvn javadoc: javadoc" or "mvn javadoc: jar". Can anyone fix this?
I get this error after everything is generated:
Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project sdm: MavenReportException: Error while generating Javadoc: [INFO] [ERROR] C:\dir...\JavaClass.java:50: error: self-closing element not allowed [INFO] [ERROR] * <p/> [INFO] [ERROR] ^ [INFO] [ERROR] [INFO] [ERROR] Command line was: "C:\Program Files\Java\jdk1.8.0_60\jre\..\bin\javadoc.exe" @options @packages [INFO] [ERROR] [INFO] [ERROR] Refer to the generated Javadoc files in 'C:\dir.....\' dir.
source share