Mvn release: crash in java 8 - javadoc plugin added

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. 
+6
source share
2 answers

Try disabling doc linting completely for java 8:

 <profile> <id>disable-javadoc-doclint</id> <activation> <jdk>[1.8,)</jdk> </activation> <properties> <additionalparam>-Xdoclint:none</additionalparam> </properties> </profile> 

Found it here: https://issues.shibboleth.net/jira/browse/JPAR-73

+4
source

Unfortunately, I cannot tell you with the information provided why "-Xdoclint: none" is not respected by the release plugin.

But a β€œsimple” fix can only be to completely remove the argument and actually fix the Javadoc errors in the compiler reports (such as self-closing elements that are not allowed).

0
source

All Articles