build-helper-maven-plugin
Last updated
Was this helpful?
Last updated
Was this helpful?
It is a useful Maven plugin provided by the Mojo project "org.codehaus.mojo". It helps in managing various aspects of the build process. Some of the ways in which it helps is given below.
Add more source directories to the project
Add more test source directories to your project
Add more resource directories to your project
Attach additional artifacts to your project
Access the parsed components of a project version (properties then can be used in other parts of the Maven build or in the POM configuration)
Resolve the latest released version of a project
Remove a project's artifacts from local repository
Reserve a list of random and unused network ports
Retrieve current host IP address
Retrieve current hostname
Retrieve available number of CPUs
Visit the official documentation for more details -
Example 1: Adding source and test directories to the build path.
Run
mvn clean compile
or click on load maven changes button in Intellij in pom.xml file to reflect the changes.