We have a project using maven. We are trying to run our unit test cases in the maven assembly itself, and for this we need to add the DB2 java driver, depending on all subprojects.
Well, the maven path is to declare the DB2 driver as a scope dependency testin the parent project.
, jar mvn, unit test.
additionalClasspathElement , :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>path/to/additional/resources</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
, .
, , , . , , (, system). .