Creating Project
-
2. Installing Maven
How to Install Apache Maven on GNU/Linux
-
3. Making Java Project
Maven 3 Command to Create a Simple Java Project
The general form is:mvn archetype:generate -DgroupId=[yourPackagingId] -DartifactId=[yourProjectName] -DarchetypeArtifactId=maven-archetype-webapp
And so for Example:
mvn archetype:generate -DgroupId=com.tutorialforlinux -DartifactId=myWebApp -DarchetypeArtifactId=maven-archetype-webapp
This should then create a Maven Project Structure like:
. |– src | `– main | `– java | |– resources | |– webapp | | `– WEB-INF | | `– web.xml | `– index.jsp `– pom.xml
-
4. Setting up Eclipse
How to Integrate a Maven Java Project into Eclipse:
Getting-Started with Java Development on Eclipse IDE for Linux: Installing Eclipse on Linux
Contents