Hi rick, try this link http://blogs.unixage.com/blojsom/blog/adam.kruszewski/eclipse/?permalink=Maven2-Eclipse-plugin-with-latest-WTP-from-callisto-update-site.html
looks like an 'updated version' of maven2 plugin for eclipse... i m using it too.. even though i m running mvn from command line btw, since i m here, for anyone who runs maven via eclipse, where do you specify the profile? in the command line argument of the external task launched for running mvn? regards marco On 11/9/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
Hi Rick, it depends which maven plugin you are talking about. m2eclipse I assume. Have you tried browsing their mailing list: http://www.nabble.com/Maven-Eclipse---User-f14525.html You can use a standard maven heirarchical directory layout, but eclipse will not allow you to create a project for the parent project - but you're only missing out on the parent pom - it's no big deal. however the bigger issue is that the m2eclipse plugin won't compile the jar. You still need to run that from the command line. you could try a flat layout by referring to the child modules like this: <module>../hello</module> but I haven't tried it. Adam Rick Debay wrote: > I'm trying to set up a project from scratch using Maven 2 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, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]