Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java Build Automation with Maven (04- Maven Plugins (Collection of one or…
Java Build Automation with Maven
01- Getting Started
Whats Maven?
project management & comprehension tool, can manage project builds, reporting n documentation
POM- project object model
install apache maven
download n extract zip file
set env variables for java n maven
02- Understanding Maven
POM
project version
authors n conrtibutors
dependencies
Lifecycle
generate a project > execute maven > install maven artifacts > run the app
validate the project > compile > test
package
integration test
verify
install
deploy
Maven repository
central repo contains open source projects
local repo - /.m2 folder
contains local copy of remote components
dependency management
03- POM
04- Maven Plugins
Collection of one or more goals, a goal is a unit of work in maven. A plugin may have one or more goals. Goals are nothing but tasks.
Core plugins - JAR plugin, compiler plugin, surefire plugin
we can create custom plugins
we can run a plugin in project directory - mvn <<plugin-name>>:<<goal name>>
packaging plugins, reporting plugins, tools
05- Create a project with Maven
run command: mvn archetype:generate
mvn install
06- Test with Maven