Skip to main content

Build Tools: Maven

Build Tools
Maven
    • Notifications
    • Privacy
  • Project HomeTools and Techniques in Software Engineering
  • Projects
  • Learn more about Manifold

Notes

Show the following:

  • Annotations
  • Resources
Search within:

Adjust appearance:

  • font
    Font style
  • color scheme
  • Margins
table of contents
  1. Introduction to Build Tools
  2. Grammars related to build tools
    1. Yet another markup language (Yaml/YML)
    2. XML
  3. Build Tools
    1. Make
    2. Maven
  4. Continuous Integration
  5. Bibliography

Maven

Maven is an open source built tool that can be used in the workflow of working on Java projects to manage dependencies and the build process. There are other similar build tools available such as gradle, ant, make, etc. Build tools become very useful with larger code projects.

Information about installation and running maven can be found at the project homepage https://maven.apache.org/

Workflow

Maven requires a pom.xml file at the root directory of the project structure. It works like a recipe in specifying the dependencies required for the project (i.e. borrowed open source libraries) and also specifying the way the project should be built.

Maven Commands

The syntax for running maven follows the pattern

mvn [options] [<goal(s)>] [<phase(s)>]

The options and phases can be referenced by typing in man mvn in the command line to access the manual.

Annotate

Next Chapter
Continuous Integration
PreviousNext
System & Tools
Powered by Manifold Scholarship. Learn more at
Opens in new tab or windowmanifoldapp.org