Gibbs
Gibbs

Reputation: 22974

Maven - Build a specific project in a multi-module project

I found many SO answers which redirects me to reactor plugin. But Maven page says This Plugin is retired. What are other alternatives for this purpose?

Upvotes: 2

Views: 377

Answers (1)

matsev
matsev

Reputation: 33789

Try executing:

mvn -pl :subprojectToBeBuilt

By calling Maven help (mvn -h) you can see its documentation:

$ mvn -h
[...]
-pl,--projects <arg>   Comma-delimited list of specified
                       reactor projects to build instead
                       of all projects. A project can be
                       specified by [groupId]:artifactId
                       or by its relative path.

Upvotes: 3

Related Questions