If I have the following multi-module structure:
parent-module
dependency-module
application-module
How to explicitly declare that application-module tests depend not only
on dependency-module, but also on its packaging as a jar file to be done?
application-module needs the file
dependency-module/target/dependency-module-x.y.jar to be present.
In application-module/pom.xml I have the dependency:
<dependency>
<groupId>com.example</groupId>
<artifactId>dependency-module</artifactId>
<version>${project.version}</version>
<type>jar</type>
<scope>test</scope>
</dependency>
If I run:
mvn clean && mvn package
everything goes fine since modules are processed in order. But if I run:
mvn clean && mvn test
then no packaging will take place in dependency-module and the test will
not be able to resolve its dependency.
Thanks for your help.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org