Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven plugin 0.9.7 results in ClassNotFoundException: com/sun/javadoc/DocErrorReporter #58

Closed
AlmasB opened this issue Feb 26, 2016 · 4 comments

Comments

@AlmasB
Copy link

AlmasB commented Feb 26, 2016

Steps to reproduce: change outputFormat to javadoc in maven plugin 0.9.7.

Then

 mvn pre-site
        <plugin>
            <groupId>org.jetbrains.dokka</groupId>
            <artifactId>dokka-maven-plugin</artifactId>
            <version>0.9.7</version>
            <executions>
                <execution>
                    <phase>pre-site</phase>
                    <goals>
                        <goal>dokka</goal>
                    </goals>
                    <configuration>
                        <outputFormat>javadoc</outputFormat>
                    </configuration>
                </execution>
            </executions>
        </plugin>

Manual addition of $JAVA_HOME/lib/tools.jar to classpath fixes it, so I'm assuming the dependency was not in fatjar for some reason.

@cy6erGn0m
Copy link
Contributor

I used to think tools.jar is in the classpath for jdk.. Perhaps we can add system dependency as well to avoid issue

@cy6erGn0m
Copy link
Contributor

Perhaps we can do http://stackoverflow.com/a/3080695

@AlmasB
Copy link
Author

AlmasB commented Feb 27, 2016

Yeah, should do the trick

@yole
Copy link
Contributor

yole commented Apr 29, 2016

Fixed in 62cd241

@yole yole closed this as completed Apr 29, 2016
@semoro semoro mentioned this issue Dec 7, 2016
semoro added a commit that referenced this issue Dec 8, 2016
Added hack to adjust publishing pom for maven

Added hack to load tools.jar for cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants