Hi,

You are right. After I move the dependency into the plugin section, it works.

Many thanks!

Thomas

--- Wayne Fay <wayne...@gmail.com> schrieb am Mi, 7.9.2011:

Von: Wayne Fay <wayne...@gmail.com>
Betreff: Re: Get "java.lang.NoClassDefFoundError" though the class is in the 
classpath
An: "Maven Users List" <users@maven.apache.org>
Datum: Mittwoch, 7. September, 2011 16:18 Uhr

> I know the class "com.sun.mirror.apt.AnnotationProcessorFactory" is in the 
> tools.jar so I've add the dependency in the pom.xml as follow:
>
>             <systemPath>C:/Program 
> Files/Java/jdk1.7.0/lib/tools.jar</systemPath>
>
> As I run mvn dependency:build-classpath to check the included jars I can see 
> the tools.jar in included.

You probably don't want this in your build classpath but perhaps added
to the classpath of the jaxws plugin, right? Move the dependency there
and try again with mvn -X to see the full classpath used for that
plugin execution.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to