[ https://issues.apache.org/jira/browse/MJAVADOC-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MJAVADOC-480: ------------------------------------ Priority: Minor (was: Blocker) > Javadoc generation broken on Java9 if there are references to > javax.xml.bind.annontation.XmlElement and building code for java8 > ------------------------------------------------------------------------------------------------------------------------------- > > Key: MJAVADOC-480 > URL: https://issues.apache.org/jira/browse/MJAVADOC-480 > Project: Maven Javadoc Plugin > Issue Type: Bug > Components: javadoc > Affects Versions: 2.10.4 > Reporter: Enrico Olivelli > Priority: Minor > > The code uses javax.xml.bind.annotation.XmlElement annotations > Plugin configuration: > {code} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <version>2.10.4</version> > <configuration> > <linksource>true</linksource> > <!--<additionalparam>-Xdoclint:none</additionalparam>--> > </configuration> > <executions> > <execution> > <id>attach-javadocs</id> > <goals> > <goal>jar</goal> > </goals> > </execution> > </executions> > </plugin> > {code} > This is my error > {code} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on > project scripting-api: MavenReportException: Error while generating Javadoc: > [ERROR] Exit code: 1 - > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/xml/XmlField.java:22: > error: package javax.xml.bind.annotation is not visible > [ERROR] import javax.xml.bind.annotation.XmlElement; > [ERROR] ^ > [ERROR] (package javax.xml.bind.annotation is declared in module > java.xml.bind, which is not in the module graph) > [ERROR] > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/xml/XmlField.java:23: > error: package javax.xml.bind.annotation is not visible > [ERROR] import javax.xml.bind.annotation.XmlRootElement; > [ERROR] ^ > [ERROR] (package javax.xml.bind.annotation is declared in module > java.xml.bind, which is not in the module graph) > [ERROR] > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/xml/XmlFieldValue.java:19: > error: package javax.xml.bind.annotation is not visible > [ERROR] import javax.xml.bind.annotation.XmlRootElement; > [ERROR] ^ > [ERROR] (package javax.xml.bind.annotation is declared in module > java.xml.bind, which is not in the module graph) > [ERROR] > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/xml/XmlDatabaseSchema.java:21: > error: package javax.xml.bind.annotation is not visible > [ERROR] import javax.xml.bind.annotation.XmlElement; > [ERROR] ^ > [ERROR] (package javax.xml.bind.annotation is declared in module > java.xml.bind, which is not in the module graph) > [ERROR] > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/xml/XmlDatabaseSchema.java:22: > error: package javax.xml.bind.annotation is not visible > [ERROR] import javax.xml.bind.annotation.XmlRootElement; > [ERROR] ^ > [ERROR] (package javax.xml.bind.annotation is declared in module > java.xml.bind, which is not in the module graph) > [ERROR] > /home/diennea.lan/enrico.olivelli/dev/magnews/scripting/src/main/java/scripting/mock/MockContactsDB.java:27: > error: package javax.xml.bind is not visible > [ERROR] import javax.xml.bind.JAXB; > [ERROR] ^ > [ERROR] (package javax.xml.bind is declared in module java.xml.bind, which is > not in the module graph) > [ERROR] > [ERROR] Command line was: > /home/diennea.lan/enrico.olivelli/dev/jdk-9/bin/javadoc @options @packages > [ERROR] > [ERROR] Refer to the generated Javadoc files in > '/home/diennea.lan/enrico.olivelli/dev/magnews/scripting/target/apidocs' dir. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)