I'm trying to set up a project from scratch using Maven 2, m2eclipse 0.0.9, and Eclipse 3.2. I'm starting by working with the Quick Start to understand how a project with multiple modules should be structured to accommodate both systems. I understand that while Eclipse 3.2 now supports sub-projects, the Maven plugin doesn't. I tried to follow the example in Better Builds with Maven, but it looks like the J2EE example switches between flat and hierarchal layouts.
Here are the POM files that I have. When I select External Tools compile or package, I get BUILD SUCCESSFUL but no class files or jar is written to the target directory. So what is the correct way to lay out a project that will consist of multiple modules? eclipse\workspace\hello-world\pom.xml <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>com.accessrxs.hello</groupId> <artifactId>hello-world</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>Maven Quick Start Archetype</name> <url>http://maven.apache.org</url> <modules> <module>hello</module> </modules> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> eclipse\workspace\hello-world\hello\pom.xml <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"> <parent> <groupId>com.accessrxs.hello</groupId> <artifactId>hello-world</artifactId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>hello</artifactId> <packaging>jar</packaging> <name>Maven Quick Start Archetype submodule</name> </project> Thanks, Rick DeBay Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
