Shash, Now I don't have the nanocontainerexception anymore, as I put manually depencies (copied from web-plugin)in the xdoclet2-plugin pom file. I had to remove the 'properties' (probably because of pom3 ?)
required artifacts missing: xdoclet-plugins:xdoclet-plugin-qtags:jar:1.0.4-SNAPSHOT generama:qdox:jar:20051211.114207 generama:generama:jar:1.2.2-SNAPSHOT for the artifact: xdoclet:maven2-xdoclet2-plugin:maven-plugin:2.0.5-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), dist.codehaus.org (http://dist.codehaus.org) my pluginreposistories: <pluginRepositories> <pluginRepository> <id>dist.codehaus.org</id> <url>http://dist.codehaus.org</url> <layout>default</layout> </pluginRepository> <pluginRepository> <id>dist.codehaus.org</id> <url>http://dist.codehaus.org</url> <layout>legacy</layout> </pluginRepository> </pluginRepositories> PLUGIN POM: maven2-xdoclet2-plugin-2.0.5-SNAPSHOT.pom: <project> <modelVersion>4.0.0</modelVersion> <groupId>xdoclet</groupId> <artifactId>maven2-xdoclet2-plugin</artifactId> <packaging>maven-plugin</packaging> <version>2.0.5-SNAPSHOT</version> <description>POM was created from install:install-file</description> <dependencies> <dependency> <groupId>xdoclet-plugins</groupId> <artifactId>xdoclet-plugin-qtags</artifactId> <version>1.0.4-SNAPSHOT</version> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet</artifactId> <version>2.0.5-SNAPSHOT</version> </dependency> <dependency> <groupId>generama</groupId> <artifactId>qdox</artifactId> <version>20051211.114207</version> </dependency> <dependency> <groupId>picocontainer</groupId> <artifactId>picocontainer</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>nanocontainer</groupId> <artifactId>nanocontainer-ant</artifactId> <version>1.0-beta-3</version> </dependency> <dependency> <groupId>nanocontainer</groupId> <artifactId>nanocontainer</artifactId> <version>1.0-beta-3</version> </dependency> <dependency> <groupId>generama</groupId> <artifactId>generama</artifactId> <version>1.2.2-SNAPSHOT</version> </dependency> <dependency> <groupId>velocity</groupId> <artifactId>velocity</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.8</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.7.0</version> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly</artifactId> <version>20050813.225330</version> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly-tags-xml</artifactId> <version>20050823.222913</version> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly-tags-jsl</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly-tags-define</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1.6</version> </dependency> <dependency> <groupId>jaxen</groupId> <artifactId>jaxen</artifactId> <version>1.1-beta-4</version> </dependency> <dependency> <groupId>saxpath</groupId> <artifactId>saxpath</artifactId> <version>1.0-FCS</version> </dependency> <dependency> <groupId>commons-jexl</groupId> <artifactId>commons-jexl</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.5.3-1</version> </dependency> <dependency> <groupId>xmlunit</groupId> <artifactId>xmlunit</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> </dependency> </dependencies> </project> --- Sasvata Chatterjee <[EMAIL PROTECTED]> wrote: > Date: Thu, 26 Jan 2006 21:00:50 -0600 > From: Sasvata Chatterjee > <[EMAIL PROTECTED]> > To: Maven Users List <[email protected]> > Subject: Re: m2 and xdoclet2 classnotfoundexception > on nanocontainer > > 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] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
