Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly happens during this command: mvn -pl <project list >

Tags:

maven

What exactly happens during this command:

mvn -pl ABC  –am  -amd? 

Does it compile the code?

The reason I asked is I have purposely put an invalid file and when I run mvn -pl ABC -am -amd option I get successful result and I'm confused why Maven is not complaining about the errored file?

But if I use mvn install command it errors!

like image 226
maven-dev Avatar asked Jan 03 '11 22:01

maven-dev


People also ask

What does the mvn command do?

mvn deploy This command is used to deploy the artifact to the remote repository. The remote repository should be configured properly in the project pom. xml file distributionManagement tag. The server entries in the maven settings.

What is Maven project and how it works?

Maven is a popular open-source build tool developed by the Apache Group to build, publish, and deploy several projects at once for better project management. The tool provides allows developers to build and document the lifecycle framework.

What is a Maven list its phases or life cycle command to run our project through the Maven?

Maven makes the day-to-day work of Java developers easier and helps with the building and running of any Java-based project. Maven Lifecycle: Below is a representation of the default Maven lifecycle and its 8 steps: Validate, Compile, Test, Package, Integration test, Verify, Install and Deploy.


1 Answers

-pl or --projects allows you to select a specific set of projects to apply your goal, (e.g. clean install) this way saving the time you would spend waiting for a full build on a big project if you just need to build a couple modules.

You might wanna check the following section:

  • Specifying a Subset of Projects
like image 198
jhurtado Avatar answered Sep 24 '22 08:09

jhurtado