Profuse thanks, Chris, for helping me get started here.
Russ
[EMAIL PROTECTED] wrote:
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)?
Look at archetypes.
(Hint: http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy)
More importantly, have a look at:
http://www.sonatype.com/book/
Also, use this:
http://m2eclipse.codehaus.org/
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?
mvn archetype:create ^
-DarchetypeGroupId=<group id of the appropriate archetype> ^
-DarchetypeArtifactId=<aart. id of the appropriate archetype> ^
-DarchetypeVersion=1.0-SNAPSHOT ^
-DgroupId=<Project Group Id> ^
-DartifactId=<Project Name>
cd <Project Name>
mvn eclipse:eclipse
That will get you started.
We've set up a parent POM that has this section in it:
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>${maven-eclipse-plugin.version}</version>
<configuration>
<downloadSources>${ide.download.sources}</
downloadSources>
<downloadJavadocs>${ide.download.javadoc}</
downloadJavadocs>
<wtpversion>${eclipse.wtp.version}</wtpversion>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<properties>
<maven-eclipse-plugin.version>2.5.1</maven-eclipse-plugin.version>
<ide.download.sources>true</ide.download.sources>
<ide.download.javadoc>false</ide.download.javadoc>
<eclipse.wtp.version>1.5</eclipse.wtp.version>
</properties>
- 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?
That is what the mvn eclipse:eclipse tasks does (by it's very definition)
- How do I import the new project into Eclipse so I can get developing?
Import it like any other (existing) eclipse project...
- Will the full-octane, WTP-armed POM and project hierarchy come
with /faces-config.xml/, /web.xml/, etc.
Depends on what archetypes you've used/parent pom's you've inherited from.
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.
Not not that far ahead of you myself, and yes it is painfully difficult...