score:0

have you done a maven install to project b? i had the same problem, and after i did a maven install it worked.

score:1

this is a bit late, but in project b you need this in your pom.xml:

<plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-jar-plugin</artifactid>
    <executions>
      <execution>
        <id>testjar</id>
        <phase>package</phase>
        <goals>
          <goal>test-jar</goal>
        </goals>
      </execution>
    </executions>
</plugin>

then in project a you need this:

<dependency>
      <groupid>com.projectb</groupid>
      <artifactid>projectbartifactid</artifactid>
      <classifier>tests</classifier>
</dependency>

source: https://maven.apache.org/guides/mini/guide-attached-tests.html


Related Query

More Query from same tag