Tony,

I had run into this as well.  The reason is that you likely have
defined the dist.codehaus.org repo as a "legacy" layout repo.  With
that you get a xdoclet v3.0.0 POM, and m2 simply ignores this POM (and
therefore none of the xdcolet2 transitive dependencies, including
nanocontainer, are downloaded or added to the plugin classpath). 
Thankfully, xdoclet has also been uploaded to the same repo in m2
layout, woth a v4.0.0 POM.  So, define your POM to have a
pluginRepositories section that defines the repo as non-legacy first,
then again as a legacy layout.  This worked for me.

The alternative is to install xdoclet in your  local m2 repo with "mvn
install:install-file -DgeneratePom=true ......" and then manually add
the dependencies into the v4.0.0 POM from the v3.0.0 POM.  Be sure to
get rid of the "<url>..</url>" tags from the dependencies.

HTH,
Shash

On 1/26/06, tony nys <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a classnotfoundexception when running xdoclet2
> from maven2
> On the nanocontainer
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to