O'Reilly logo

Apache Maven 3 Cookbook by Srirangan

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

Creating a new project

All done with downloads, setups, configurations, installations, and verifications? Great! Let’s get down to business. If not, refer to the first few recipes of this chapter.

In this recipe, we will create our first Apache Maven project. To be more specific, we will use the Maven archetype:generate goal to generate our first Maven Java project.

Then we take a look at the Maven project structure to get an idea of what constitutes a Maven project and what goes where by convention.

How to do it...

  • Start the command-line terminal and run the following command:
    $ mvn archetype:generate
    
  • If this is the first time you are running this command, you will see that downloads are taking place in the command line.
  • Then you will see a rather ...

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