Dependency on sun.jdk:tools

0 views
Skip to first unread message

Bouiaw

unread,
Nov 2, 2010, 5:06:22 AM11/2/10
to jax-doclets
Hi,

First, tanks for this great project.

I tried to use jax-doclets on my project (http://resthub.org
framework), but there is a blocking issue for me, and I think for a
lot of potential users : the system scope dependency on sun.jdk:tools.

It does not work out of the box on my computer, even if I have sun jdk
installed. Since I develop a framework (http://resthub.org), I don't
want to force users to create some weird env variable on their
computer to use jax-doclets.

Is it possible to remove or modify the dependency on sun.jdk:tools to
something more "classical" (not system score with, no hardcoded
path) ?

Regards

Stephane Epardaud

unread,
Nov 2, 2010, 8:21:01 AM11/2/10
to jax-d...@googlegroups.com
Hello,

I don't think there is any other solution though, according to the Maven FAQ: http://maven.apache.org/general.html#tools-jar-dependency

Are you using OSX perhaps?
--
Stéphane Épardaud

Bouiaw

unread,
Nov 2, 2010, 8:51:59 AM11/2/10
to jax-d...@googlegroups.com
Yes, I tested it under MaxOS X.

Since I had no issue with Maven javadoc plugin, I thought that it could be possible to have doclets without having this kind of dependencies, by your answer suggest that it is not really possible.

Maybe I could try to put it in an optional profile, and use default platform based activation to handle this.

Do you have an idea of the right default configuration ?
Activated by default on Windows
Deactivated by default on MacOS (bundled in the default JDK so it will work out of the box) ?
Under Linux I don't know, do you know if it works with OpenJDK ?

Stephane Epardaud

unread,
Nov 2, 2010, 8:53:34 AM11/2/10
to jax-d...@googlegroups.com
I can try to put it in a profile as the FAQ suggests, but only if you're ready to test this from SVN and report on whether it works or not before I push it to central. Sounds OK?
--
Stéphane Épardaud

Bouiaw

unread,
Nov 2, 2010, 8:56:07 AM11/2/10
to jax-d...@googlegroups.com
Nice, I am ok to test it from SVN.

Stephane Epardaud

unread,
Nov 2, 2010, 9:09:57 AM11/2/10
to jax-d...@googlegroups.com
OK I pushed a fix on SVN, can you try it out?

Bouiaw

unread,
Nov 2, 2010, 5:54:15 PM11/2/10
to jax-doclets
Tested, patched and validated under MacOSX. Details and patch added to
the issue.
I also created http://code.google.com/p/jax-doclets/issues/detail?id=25
since I would like to generate documentation for my abstract generic
JAXRS classes.

On 2 nov, 14:09, Stephane Epardaud <stephane.epard...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages