Hide Forgot
Description of problem: I couldn't build one of my packages in the rawhide (f17) environment, whilst there's no problem with building in the f16 environment. The workaround for rawhide was to force the java version to 1.6.0. Version-Release number of selected component (if applicable): 1:1.7.0.1-2.0.3.fc17 How reproducible: always Reproduction: Build the maven-plugin-tools in rawhide with ">=" BuildRequires: java-devel >= 1:1.6.0 Workaround: Build the maven-plugin-tools in rawhide with "=" BuildRequires: java-devel = 1:1.6.0 Actual results: [ERROR] /builddir/build/BUILD/maven-plugin-tools-2.7/maven-plugin-tools-javadoc/src/main/java/org/apache/maven/tools/plugin/javadoc/MojoThreadSafeTypeTaglet.java:[22,28] error: package com.sun.tools.doclets does not exist [ERROR] /builddir/build/BUILD/maven-plugin-tools-2.7/maven-plugin-tools-javadoc/src/main/java/org/apache/maven/tools/plugin/javadoc/AbstractMojoTaglet.java:[33,22] error: package com.sun.javadoc does not exist [ERROR] /builddir/build/BUILD/maven-plugin-tools-2.7/maven-plugin-tools-javadoc/src/main/java/org/apache/maven/tools/plugin/javadoc/AbstractMojoTaglet.java:[34,28] error: package com.sun.tools.doclets does not exist [ERROR] /builddir/build/BUILD/maven-plugin-tools-2.7/maven-plugin-tools-javadoc/src/main/java/org/apache/maven/tools/plugin/javadoc/AbstractMojoTaglet.java:[50,15] error: cannot find symbol [ERROR] class Taglet /builddir/build/BUILD/maven-plugin-tools-2.7/maven-plugin-tools-javadoc/src/main/java/org/apache/maven/tools/plugin/javadoc/AbstractMojoTaglet.java:[53,28] error: cannot find symbol ... ... Expected results: No errors
Created attachment 533946 [details] build.log
Created attachment 533947 [details] root.log
Re-assigning to maven-plugin-tools Java 1.6 will be removed from Fedora eventually by the way (maybe even F17, it is undecided yet). The proper fix is to make maven-plugin-tools not use internal com.sun.* API.
(In reply to comment #3) > Re-assigning to maven-plugin-tools > > Java 1.6 will be removed from Fedora eventually by the way (maybe even F17, it > is undecided yet). > > The proper fix is to make maven-plugin-tools not use internal com.sun.* API. Deepak, How do you suggest this to happen? There is no other API AFAIK. The only thing I found is http://openjdk.java.net/jeps/106 but it's gonna take long time before it's available in OpenJDK release, right?
Another thing is that these packages are present in OpenJDK 7 (tools.jar) but they are not found while on OpenJDK 6 they are. So it's quite probable that there is a packaging bug or something else preventing tools.jar from being accessible. P.S. I don't question your com.sun comment and I totally agree with it but we have to find a solution.
Hi Alex, I was a bit confused by the original report. I didn't realize that the classes were still there, just not visible. It seems that somehow for OpenJDK6 maven was seeing tools.jar but now it isn't. I think the workaround should then be to add tools.jar to the classpath regardless of version of the JDK. With 1.6 this should have no ill-effect and with 1.7 the classes will be seen correctly. Tools.jar is not supposed to be in the system classpath since 1.5 (at least) anyway. This link explains how to do it for maven: http://maven.apache.org/general.html#tools-jar-dependency
Thanks a lot ... I applied the proposed changes and it works. I've also checked the latest upstream and the same changes were made there recently. The package is rebuilt -> closing.