Introduction
Description
Maven
Plug-ins | Plug-in | Description |
|---|---|
| maven-compiler-plugin | compiles Java sources |
| maven-resources-plugin | Copies resources to the output directory |
| maven-surefire-plugin | Used to run JUnit tests |
| maven-install-plugin | Used to install build artifact into local repository |
| maven-deploy-plugin | Used to deploy artifact to remote repository |
| maven-clean-plugin | Used to clean after the build |
| maven-jar-plugin | Used to build JAR from the current project |
| maven-war-plugin | Used to build WAR from the current project |
| maven-archetype-plugin | Generates a skeleton project structure from an archetype. |
Description Mojo’s i.e., Maven Plain Old Java Project.
Syntax
Examples
Description
Examples
Description
Phases | Phase | Description |
|---|---|
| validate | Validation of project is carried out and provides the information required to complete the build process. |
| generate-resources | Source code generation to include while compiling. |
| process-sources | Source code is processed. |
| generate-resources | Resource generation to include in packages. |
| process-resources | Resources packing and copying into destination directory and is ready for package. |
| compile | Source code compilation |
| process-classes | Generated files into post-process after compilation. |
| generate-test-sources | Test source generation to include in compilation. |
| process-test-sources | Processing the test source code. |
| generate-test-resources | Creation of resources to test. |
| process-test-resources | Copying and processing the resources to test the destination. |
| test-compile | Compiling the test source code to test the destination. |
| test | With unit testing framework, run the tests. |
| prepare-package | Preparing the package by performing operations before actual packaging. |
| package | Gather the compiled code and package in JAR,WAR or EAR. |
| pre-integration test | The actions to be performed before integration tests are executed like setting the environment. |
| integration test | Processing and deploying the package. |
| post-integration test | Performing the action after the execution of integration tests like cleaning the environment. |
| verify | Checking the packages are valid or not. |
| install | Installing the package into local repository. |
| deploy | Copying the package into remote repository. |
Examples
Description –p profilename command is used to get the profiles.
Examples
Key Points