I'm looking for help getting going with Maven and Eclipse. I've read lots, but have been unable to synthesis what I've read into a practical, working procedure. I'm looking for some direction (URLs or other suggestions).

Where am I?

I have downloaded Maven and run it successfully to create the sample myapp Hello World project. I have found and downloaded Maven plugins for Eclipse, though I haven't figured out where to put them yet. For now, I've tucked them away in a folder parallel to my Tomcat installation.

   *C:\Program Files\Apache Software
   Foundation\apache-maven-2.0.9\plugins> dir

    Directory of C:\Program Files\Apache Software
   Foundation\apache-maven-2.0.9\plugins

   04/30/2008  07:38 PM    <DIR>          .
   04/30/2008  07:38 PM    <DIR>          ..
   04/30/2008  07:37 PM           409,126
   maven-eclipse-plugin-2.5.1-javadoc.jar
   04/30/2008  07:37 PM           181,400 maven-eclipse-plugin-2.5.1.jar
   04/30/2008  07:38 PM             7,174 maven-eclipse-plugin-2.5.1.pom
                  3 File(s)        597,700 bytes
                  2 Dir(s)  95,256,113,152 bytes free*

I have used Eclipse's Sofware Update/Find and Install facility to fetch down a plugin for Eclipse. These would apparently be the famous "Q" plugins for use FROM Eclipse while the previous ones are those used FROM Maven. Or so my reading encourages me to believe.

   *C:\tutorial\eclipse\plugins>dir *maven*

    Directory of C:\tutorial\eclipse\plugins

   04/30/2008  09:04 PM         2,047,318
   org.apache.maven.embedder_2.1.0.627670.jar
   04/30/2008  09:04 PM            41,565
   org.apache.maven.shared.dependency.tree_1.1.0.v200802050958.jar
   04/30/2008  09:04 PM           426,398
   org.devzuz.q.maven.core_0.6.0.200804131445.jar
   04/30/2008  09:04 PM            63,497
   org.devzuz.q.maven.dependency.analysis_0.6.0.200804131445.jar
   04/30/2008  09:04 PM            17,652
   org.devzuz.q.maven.dependencyviewer_0.6.0.200804131446.jar
   04/30/2008  09:04 PM            48,308
   org.devzuz.q.maven.jdt.core_0.6.0.200804131445.jar
   04/30/2008  09:04 PM            54,760
   org.devzuz.q.maven.jdt.ui_0.6.0.200804131445.jar
   04/30/2008  09:04 PM           665,387
   org.devzuz.q.maven.ui_0.6.0.200804131445.jar
   04/30/2008  09:04 PM           148,246
   org.devzuz.q.maven.wizard_0.6.0.200804131445.jar
   04/30/2008  09:04 PM             7,834
   org.devzuz.q.maven.wtp.core_0.6.0.200804131446.jar
                 10 File(s)      3,520,965 bytes
                  0 Dir(s)  95,256,096,768 bytes free*

And I've tried running "mvn eclipse" realizing that that is way too naive as a starting point. I'm guessing that to create a Dynamic Web Project under Maven control for use in Eclipse, I have to create a BLANK PROJECT on the command line in Maven, but there's something about the Eclipse workbench plugin that will give me all the right directories and a fully WTP-armed POM. Then, I can copy (?) this blank somewhere and use it ever after (or just use Maven to create a new blank every time I need one)?

The questions I'm looking to answer are:

   - How do I invoke the Maven plugin inside Eclipse to "tell" Maven to
   create me a "fully WTP-armed" POM?

   - What does it leave lying around that tells me this has succeeded?

   - What Maven command do I use on the Windoz/DOS command line to
   create this mythical project with Eclipse .classpath/.metadata/etc.
   stuff in it?

   - How do I import the new project into Eclipse so I can get developing?

   - Will the full-octane, WTP-armed POM and project hierarchy come
   with /faces-config.xml/, /web.xml/, etc.

I have heard that this is possible and that Maven is going to do all these cools things for me, but after hours of research reading link after followed link, I've only stumbled on more or less how to install and nothing about how to use. I'm not looking for anyone to do the work for me, but a list of URLs or some pointers would be greatly helpful.

Thanks in advance,

Russ Bateman








Reply via email to