In current project most of transitive artifacts are marked as "provided" (due to some of "best practices" of project architecture - I can't change this behavior). But I need to get whole list of their to make project alive.
How I can calculate whole list of artifacts, including provided? How to override "provided" scope of transitive artifact?
Okay. There is an sample of my case:
<!-- sample of my pom is so:-->
<project>
.....
<group>rd-service</group>
<artifactId>rd-service</artifactId>
.....
<dependencies>
.....
<!--link to the problem artifact -->
<dependency>
<groupId>third-party-lib-group</groupId>
<artifactId>third-party-lib-artifact</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
<!--problem artifact looks like so -->
<project>
.....
<group>third-party-lib-group</group>
<artifactId>third-party-lib-artifact</artifactId>
.....
<dependencies>
.....
<!--How I can calculate automatically whole dependencies
which looks like this and its transitive
dependencies too?
Author of spring-context-customized can't do it by himself. -->
<dependency>
<groupId>org.springframework.fork</groupId>
<artifactId>spring-context-customized</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Another look on the problem here