欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Maven in 5 Minutes

程序员文章站 2022-05-09 17:18:16
...

1. Download the maven. (version 3.2.1)

2. Configure the maven bin path in system path.

       Maven in 5 Minutes
 3.
Check whether the maven is installed successfully using [mvn –v] in dos

         Maven in 5 Minutes

4. Execute below command.

 mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false   

5. Below is the generated file structure

my-app
|-- pom.xml
`-- src
    |-- main
    |   `-- java
    |       `-- com
    |           `-- mycompany
    |               `-- app
    |                   `-- App.java
    `-- test
        `-- java
            `-- com
                `-- mycompany
                    `-- app
                        `-- AppTest.java