Hi Tom, Just a couple of thoughts.
Have you verified the jar exists - .m2\repository\commons-pool\commons-pool\1.5.2\commons-pool-1.5.3.jar containing the expected class? Have you tried it without the <scope>compile</scope> element in the dependency. Don't know why that would make a difference, but we don't include that and are able to resolve classes from commons-pool. Steve -----Original Message----- From: wapsi [mailto:[email protected]] Sent: Friday, November 20, 2009 7:53 AM To: [email protected] Subject: [mojo-user] PDE maven build problem Hi guys, Recently I start using Maven to automate my project builds but I'm facing an issue here. I have a Maven module project with following POM : <project> ... <modules> <module>plugins/pluginA</module> <module>plugins/pluginB</module> </modules> <build> <plugins> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <pde>true</pde> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>process-sources</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${basedir}</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${basedir}</directory> <includes> <include>*.jar</include> </includes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>pde-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <eclipseInstall>C:\Dev\eclipse</eclipseInstall> <buildProperties> <javacSource>1.5</javacSource> <javacTarget>1.5</javacTarget> </buildProperties> <antDebug>true</antDebug> <antVerbose>true</antVerbose> </configuration> <executions> <execution> <id>build-pde</id> <phase>compile</phase> <goals> <goal>attach</goal> </goals> </execution> <execution> <id>clean-pde</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> My pluginA has following POM : <project> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>...</artifactId> <groupId>...</groupId> <version>1.0-SNAPSHOT</version> <relativePath>../../</relativePath> </parent> ... <packaging>zip</packaging> <url>http://maven.apache.org</url> </project> PluginA I can build without a problem. Everything is installed as it should. However, plugin B is dependant on the org.apache.commons.pool jar as you can see in following POM: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>...</artifactId> <groupId>...</groupId> <version>1.0-SNAPSHOT</version> <relativePath>../../</relativePath> </parent> .... <url>http://maven.apache.org</url> <packaging>zip</packaging> <dependencies> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.5.2</version> <scope>compile</scope> </dependency> </dependencies> </project> This is where the troubles kick in. I always get compilation errors claiming the org.apache.commons.xxx class could not be found. However, i folliowed the instructions to copy all dependant jars in the project root folder (see parent POM) but the PDE build is not including this jar in it's classpath for some reason. I don't understand what I am missing. For some reason I cannot build plugins that require other library jars. I'm trying to get this working for more then 3 days now, and honestly I'm getting a bit frustrated. Can someone help me out with this one please or point me in the right direction? -- View this message in context: http://old.nabble.com/PDE-maven-build-problem-tp26442032p26442032.html Sent from the mojo - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
