Posted in Maven

Maven submodule plugin delegation

Changing directories when executing a plugin against a specific submodule is a waste of time. Execute the following to target a specific module and its lifecycle:

mvn -pl 'submodule' 'lifecycle'

For example, from a directory
~/myapp/root-module where pom.xml is a parent pom to simple-app in that location:

mvn -pl simple-app jetty:run


I love to learn. I am not so interested in buzzwords when it comes to gadgets. I would rather see how they work. Software is no different. Just trying to be better one byte at a time ^_^