[ 
https://issues.apache.org/jira/browse/MPLUGIN-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421114#comment-15421114
 ] 

Hudson commented on MPLUGIN-292:
--------------------------------

SUCCESS: Integrated in Jenkins build maven-plugin-tools #266 (See 
[https://builds.apache.org/job/maven-plugin-tools/266/])
[MPLUGIN-292] HelpMojo contains malformed HTML which causes javadoc to fail 
under JDK 8
Apply proper html escaping (rfscholte: 
[http://svn.apache.org/viewvc/?view=rev&rev=1756391])
* (edit) maven-plugin-tools-generators/src/main/resources/help-class-source.vm


> HelpMojo contains malformed HTML which causes javadoc to fail under JDK 8
> -------------------------------------------------------------------------
>
>                 Key: MPLUGIN-292
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-292
>             Project: Maven Plugin Tools
>          Issue Type: Bug
>            Reporter: S L
>            Assignee: Robert Scholte
>             Fix For: 3.5
>
>
> Hi,
> the generated Help-Mojo Class contains malformed HTML which causes the 
> generation of javadoc to fail under JDK 8. This is not reproducible with 
> older Java versions (I suspect that oracle has deployed some more strict 
> validation here).
> error output is:
> {quote}
> /fooBar/target/generated-sources/plugin/com/example/helpmojo/HelpMojo.java:311:
>  error: malformed HTML
>      * @throws NegativeArraySizeException if <code>repeat < 0</code>
>                                                           ^
> /fooBar/target/generated-sources/plugin/com/example/helpmojo/HelpMojo.java:350:
>  error: malformed HTML
>      * @throws NegativeArraySizeException if <code>indent < 0</code>
>                                                           ^
> Command line was: /usr/lib/jvm/java-8-oracle/jre/../bin/javadoc @options 
> @packages
> [....]
> {quote}
> using the following configuration:
> {quote}
> <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-plugin-plugin</artifactId>
>                               <version>3.4</version>
>                               <dependencies>
>                                       <dependency>
>                                               
> <groupId>org.apache.maven.plugin-tools</groupId>
>                                               
> <artifactId>maven-plugin-tools-ant</artifactId>
>                                               <version>3.4</version>
>                                       </dependency>
>                               </dependencies>
>                               <executions>
>                                       <execution>
>                                               <id>default-descriptor</id>
>                                               <goals>
>                                                       <goal>descriptor</goal>
>                                               </goals>
>                                               <phase>process-classes</phase>
>                                       </execution>
>                                       <execution>
>                                               <id>generated-helpmojo</id>
>                                               <goals>
>                                                       <goal>helpmojo</goal>
>                                               </goals>
>                                               <configuration>
>                                                       
> <goalPrefix>myPrefix</goalPrefix>
>                                                       
> <helpPackageName>com.example.helpmojo</helpPackageName>
>                                               </configuration>
>                                       </execution>
>                               </executions>
>                       </plugin>
> {quote}
> and the following java / maven versions:
> {quote}
> $ java -version
> java version "1.8.0_60"
> Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
> Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
> $ mvn --version
> Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 
> 2014-08-11T22:58:10+02:00)
> Maven home: /usr/share/maven-3.2.3
> Java version: 1.8.0_60, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-oracle/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "3.16.0-33-generic", arch: "amd64", family: "unix"
> {quote}
> If a demo project for this is required let me know.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to