Thanks for the help... Unfortunately I am still getting the same error... Attached is my POM. Note it reflects my last attempt at having a default and legacy layout repo and plugin repo...
Grégory Joseph wrote: > Glen, > > >>That was it I was missing the <layout>legacy</layout> tag for my >>repository. > > > No were not missing that tag for the existing repository you'd > declared. To try and put it more clearly this time, you need to > declare the same repo *two times*, once with layout:default and once > with layout:legacy. > > The thing is the m2 plugin of xd2 is obviously deployed with m2, so > it's stored using the m2 repository layout, while the xd2 plugins > themselves are still built and deployed with m1, hence they're stored > in a "legacy" layout. I hope this makes the error messages you got > clearer now. > > ... but I'm surprised, as I thought the m2 plugin's repositories would > be used, so I'm not sure you need to declare the legacy once > yourself... Could you send me your complete pom? Are you really > declaring the dependency on the xdoclet-hibernate-plugin you use *in* > the build/plugins/plugin/dependencies section, or in your project's > main dependencies ? > > Cheers > > g
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>net.model3</groupId> <artifactId>model3</artifactId> <packaging>jar</packaging> <version>3.1-SNAPSHOT</version> <name>Model3 Util Library</name> <url>http://model3.net</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <!-- <scope>test</scope> --> </dependency> <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> </dependency> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.2</version> </dependency> <dependency> <groupId>concurrent</groupId> <artifactId>concurrent</artifactId> <version>1.3.4</version> </dependency> <dependency> <groupId>exml</groupId> <artifactId>exml</artifactId> <version>7.0</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.13</version> </dependency> <dependency> <groupId>servletapi</groupId> <artifactId>servletapi</artifactId> <version>2.4-20040521</version> </dependency> <dependency> <groupId>hibernate</groupId> <artifactId>hibernate</artifactId> <version>2.1.8</version> </dependency> <dependency> <groupId>janino</groupId> <artifactId>janino</artifactId> <version>2.3.17</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.2.1</version> </dependency> <!-- these are in local the repo --> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.0.2</version> </dependency> <dependency> <groupId>com.jniwrapper</groupId> <artifactId>jniwrap</artifactId> <version>2.8.5</version> </dependency> <dependency> <groupId>com.jniwrapper</groupId> <artifactId>winpack</artifactId> <version>2.8.5</version> </dependency> </dependencies> <build> <finalName>model3</finalName> <sourceDirectory>source</sourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <groupId>xdoclet</groupId> <artifactId>maven2-xdoclet2-plugin</artifactId> <configuration> <configs> <config> <!-- here's where you specify which xdoclet-plugin to run, by its class name --> <plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin> <!-- here's some config for your plugin--> <params> <destdir>${basedir}/target/xdoclet/</destdir> </params> </config> <!-- run multiple plugins by repeating this <config> element --> </configs> </configuration> <dependencies> <!-- here's where you specify which xdoclet-plugin you need, by its groupId/artifactId, and any additional dependency it might have - although you'll most likely already have these in your project, so no need to repeat them here --> <dependency> <groupId>xdoclet-plugins</groupId> <artifactId>xdoclet-plugin-hibernate</artifactId> <version>1.0.4-SNAPSHOT</version> </dependency> </dependencies> <executions> <execution> <goals> <goal>xdoclet</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <repositories> <repository> <id>codehaus-plugins</id> <url>http://dist.codehaus.org/</url> <layout>legacy</layout> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>codehaus-plugins</id> <url>http://dist.codehaus.org/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>codehaus-plugins</id> <url>http://dist.codehaus.org/</url> <layout>legacy</layout> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginRepository> <pluginRepository> <id>codehaus-plugins</id> <url>http://dist.codehaus.org/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginRepository> </pluginRepositories> </project>
