Reputation: 63
Greeting, guys. Could you please help me solve the issue: In my pom.xml (for example application calls 'maven-Hell') i have 2 dependencies:
<dependency>
<groupId>com.dor.lub</groupId>
<artifactId>aaa</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.dor.dabu</groupId>
<artifactId>ddd</artifactId>
<version>3.3.3</version>
</dependency>
When i run mvn clean install for 'maven-Hell' application I want to build (clean install, as well) for two dependencies (see above) before 'maven-Hell' app. P.S. They are also my modules, not like parent and child. Any idea how to do it? Thanks!
Upvotes: 0
Views: 405
Reputation: 63
mvn clean install -pl MICRO-SERVICE-NAME -P mvnProfile -am -f pom.xml
Mvn will run clean install on owns modules from project
Upvotes: 1