A maven project has a core module and a sql module. The sql module's test classes should extend some of the core module test classes. What needs to be done in the sql module pom.xml to set up that dependency?
Figured it out: the way is to add a test-jar with "test" scope.
<type>test-jar</type>
<scope>test</scope>
So here is the full dependency for my case
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>