$ mvn install:install-le -DgroupId=javax.transaction -
DartifactId=jta -Dversion=1.1 -Dpackaging=jar -Dle=c:\path\
to\jar\jta-1.1-classes.jar
4. Bear with me, we are almost there
5. cd into quickstart and run:
$ mvn jetty:run
6. Point your browser to http://localhost:8080/quickstart
7. To create an eclipse project run:
$ mvn eclipse:eclipse
or (to create web project for WTP):
mvn eclipse:eclipse -Dwtpversion=1.0
Doing it yourself
Create Eclipse project
1. Open Eclipse. Seriously, you need to open Eclipse.
2. Click File -> New -> Project. Under the "Web" folder, select "Dynamic Web Project"
and click "Next".
3. Enter the project name, "quickstart" from here on. The project will be running
inside Tomcat, so we need to create a server conguration for it.
1. Under "Target Runtime", click "New", select "Apache Tomcat 5.5" and click
next.
2. Enter Tomcat's installation directory and select an installed JRE (1.5 is
required)
4. Now you should be back to the project creation wizard, with Tomcat as your Target
Runtime. Click "Next". Select "Dynamic Web Module" and "Java" facets, and click
"Finish".
Dependencies
Your project should contain the folders "src", "build" and "WebContent". We are going to
put all the required jars under "/WebContent/WEB-INF/lib". To add les to the "lib" folder,
just copy them to ${workspace}\quickstart\WebContent\WEB-INF\lib, where ${workspace}
is the location of your Eclipse workspace folder.
In the table, the version has been removed from the JAR les, since these may change in future
milestone releases. Use whatever version is shipping with the indicated products.
评论0
最新资源