I want to compile test files using some external jar dependencies which will not be present in pom.xml's dependency tag. Is there any way through configuration. Something like this-
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<executions>
<execution>
<id>test-compile</id>
<configuration>
<classPathElements>
<classPathElement>somejar.jar</classPathElement>
</classPathElements>
</configuration>
</execution>
</executions>
</plugin>