O'Reilly logo

AWS Automation Cookbook by Nikit Swaraj

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Now, we have both the JDK and Maven installed on our local machine. Let's create or initialize a web project in Java using Maven project template toolkit Archetype.

The Archetype plugin will create the necessary folder structure that is required by the developers to quickly start their development. 
[root@awsstar ~]# mvn archetype:generate -DgroupId=com.awsstar -DartifactId=javawebapp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

The preceding command will take some time if you are running it for the first time.

The preceding executed command will give the output in the javawebapp folder, because if you take a look at the parameter passed,  -D artifactID  is javawebapp.

If we go in the webapp folder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required