I am working on a maven project, which depends on some artifact (named here "artifact1"), which is resolved using dependency:unpack:
pom.xml extract:
<project>
[...]
<build>
<plugins>
[...]
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.xxx.xxx</groupId>
<artifactId>artifact1</artifactId>
<version>100.1.1</version>
<type>zip</type>
[...]
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
[...]
</build>
[...]
</project>
"artifact1" has its own dependencies:
[INFO] +- com.xxx.xxx:artifact1:zip:100.1.1:compile
[INFO] | - com.xxx.xxx:artifact2:zip:100.1.1:compile
[INFO] | +- com.xxx.xxx:xxx:artifact3:zip:100.1.1:compile
I am looking for a way to override version of "artifact3" (let us say to version 100.1.2) (without modifying anything on artifact1 project itself)
Expected result, running mvn dependency:tree with pom.xml here above and get dependency tree:
[INFO] +- com.xxx.xxx:artifact1:zip:100.1.1:compile
[INFO] | - com.xxx.xxx:artifact2:zip:100.1.1:compile
[INFO] | +- com.xxx.xxx:xxx:artifact3:zip:100.1.2:compile
Do you know if there is any possibiliy to do it?
Thanks in advance
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…