[ https://jira.codehaus.org/browse/MJAVADOC-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafael Fontes updated MJAVADOC-413: ----------------------------------- Description: I'm using a custom doclet, and in order to make it properly work I need to add the rt.jar to the bootclasspath, this only happens using the maven-javadoc-plugin. I'm defining the bootclasspathArtifacts as expected, but due the need to add the rt.jar i have tried to also add the bootclasspath already with a value (<bootclasspath>${java.home}\lib\rt.jar;</bootclasspath>). There is a workaround, don't use the bootclasspathArtifacts and define everything that is need on the bootclasspath. But using the Artifacts its the best way to do it. The error that i descibre above that appear in the lack of the rt.jar is: Exit code: 1 - com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath was: I'm using a custom doclet, and in order to make it properly work I need to add the rt.jar to the bootclasspath. Since i'm defining the bootclasspathArtifacts both can't coexist. The solution is to define all the dependency jars in the bootclasspath. And it's very usefull the use of the bootclasspathArtifacts. The error that i descibre above that appear in the lack of the rt.jar is: Exit code: 1 - com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath > bootclasspathArtifacts override values on bootclasspath > ------------------------------------------------------- > > Key: MJAVADOC-413 > URL: https://jira.codehaus.org/browse/MJAVADOC-413 > Project: Maven Javadoc Plugin > Issue Type: Bug > Affects Versions: 2.10 > Environment: Any > Reporter: Rafael Fontes > > I'm using a custom doclet, and in order to make it properly work I need to > add the rt.jar to the bootclasspath, this only happens using the > maven-javadoc-plugin. I'm defining the bootclasspathArtifacts as expected, > but due the need to add the rt.jar i have tried to also add the bootclasspath > already with a value > (<bootclasspath>${java.home}\lib\rt.jar;</bootclasspath>). > There is a workaround, don't use the bootclasspathArtifacts and define > everything that is need on the bootclasspath. But using the Artifacts its the > best way to do it. > The error that i descibre above that appear in the lack of the rt.jar is: > Exit code: 1 - com.sun.tools.javac.util.FatalError: Fatal Error: Unable to > find package java.lang in classpath or bootclasspath -- This message was sent by Atlassian JIRA (v6.1.6#6162)