I have a project that have dependency to other project like this:
<dependency>
<groupId>com.company.project1</groupId>
<artifactId>project1-war</artifactId>
<version>${project.version}</version>
<classifier>classes</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.company.project2</groupId>
<artifactId>project2-war</artifactId>
<version>${project.version}</version>
<classifier>classes</classifier>
<scope>test</scope>
</dependency>
In my spring boot configuration i want to import the web-context.xml from project1-war not the one of project2-war like this:
@ImportResource(locations = { "classpath*:**/project1-war-1.0-classes/web-context.xml" })
but this is not working