Maven learning (2)

1. Maven project structure

src

    -main

        -java

             -package

    -test

        -java

             -package

        -resources

2. Maven common commands

mvn -v View Maven version

mvn compile compiles the Maven project

mvn clean delete the compiled target folder

mvn test test

mvn package project packaging

mvn install installs the jar package into the local repository

3. Necessary parameter configuration

    groupId: project name, the default package name is used 

    artifactId: module name, generally "project-module"

    version: version number

    package: the package where the project is located

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326564201&siteId=291194637