Get started with maven

后端 未结 3 1717
日久生厌
日久生厌 2021-02-06 19:11

I have experience in Ant, how to get started with maven. Any advantage with maven over ant?

3条回答
  •  醉酒成梦
    2021-02-06 19:20

    In comparison to Ant what Maven does well is dependency management and standardisation of the build lifecycle.

    As for learning a bit more about it, the Maven documentation is pretty readable and thorough.

    I'd start by looking at the introductory piece that explains some of the core principles about the difference between Maven and other build tools.

    http://maven.apache.org/what-is-maven.html

    Then downlod and install maven, open your terminal and type...

    mvn archetype:generate
    

    Select all defaults and you'll end up with a simple build-able project with one runnable class and a matching test file. Use that as a test project to familiarise yourself with the build lifecycle and dependency resolution process.

提交回复
热议问题