I have a project that consist of 3 different libraries. When I run install script it takes all libraries from repo and run mvn clean install on them. But this version of lib
Most maven plugins can be skipped by specifying something like:
maven-install-plugin
X.Y
true
you can also set up build profiles to set properties and use that to determine the value. for example, running the command: mvn -Pexample would select the "example" profile. The POM would then contain:
...
false
...
...
example
false
...
maven-install-plugin
X.Y
${skip.install}
...
Using these POM additions, the default behavior for the install plugin will be to perform its default goal, but if the example profile is selected, then the install plugin will skip its goal.