Dynamic Artifact Id Name in Maven

In this tutorial, i will give you an example how to create Artifact Id dynamically using maven.

below my pom.xml:

<groupId>sample-project</groupId>
<artifactId>sampleproject--${your_parameter}</artifactId>
<version>0.1.0</version>

and my mvn command:

mvn clean -Dyour_parameter=YOUR_DYNAMIC_PARAM
mvn install -Dyour_parameter=YOUR_DYNAMIC_PARAM

CMIIW :).

Leave a Reply

Your email address will not be published. Required fields are marked *

Afiseaza emoticoanele Locco.Ro