...
Depending on you comfort level there may be more Maven configuration tricks that you may want to perform, such as customizing your settings.xml file. Look at the Additional References section below for more tutorials on Maven configurations that you may find helpful.
Creating the Maven Project in Eclipse using archetypes
There are probably various ways to create a maven project but I found this one very simple at creating a basic maven structured project using archetypes based on a tutorial that was found at http://www.avajava.com/tutorials/categories/maven.
Prerequisite
You will need to install the Eclipse IDE Maven plugin found at the Eclipse Marketplace
Maven Integration Eclipse Plugin
Step 1. Create
...
a New Maven Project
- Click 'File' -> '
...
- New' -> '
...
2. Create a new program. Right-click on 'Program' and select 'New'
3. Create the archetype~create project according to the image below.
Name: the name of your new archetype which we labeled 'mvn archetype~create'
Location: the location of the maven executable (/usr/bin/mvn)
Working Directory: the Eclipse workspace folder
Arguments: the string_prompt argument means that a pop-up will display asking for the groupId and artifactId
After you click on 'Apply' the newly created program will appear under the 'Program' list.
Step 2. Run the new Archetype you created
1. Click on the new archetype you created
Step 3. Fill out the prompts
1. Enter the groupid such as 'edu.youruniversity'
2. Enter the artifactid, which is the name of your new portlet, such as 'TestPortlet'
...
- Other' -> 'Maven Project' and then click 'Next'.
Step 2. Select project name and location.
Use the default Workspace location or specify the location if necessary.
Step 3. Select an archetype
Select the maven-archetype-quickstart archetype from the list. It's a simple Maven web structure that will help get you started.
Step 4. Enter the Group id and Artifact Id
Enter the Group Id and Artifact Id and click 'Finish'
Step 5. Your New Maven Project
Below is what your sample structure looks like after you perform all the steps. This should help as a starting point.
Info | ||
---|---|---|
| ||
Additional References |
Warning | ||||
---|---|---|---|---|
| ||||
Please send us feedback at uportal-user@lists.ja-sig.org |