Hi,
On 10/6/15 11:06 AM, Stian Soiland-Reyes wrote:
Hi!
I'm developing a Maven plugin for a custom <packaging>
https://github.com/stain/data-maven-plugin
Is it possible for a plugin to add a JAR file to the test classpath? I've
tried to modify project.getArtifacts() from the INITIALIZATION stage,
without luck.
What about checking project.getTestArtifacts() ? or
project.getTestClasspathElements() might be a better idea...
Catch: the JAR file is the project artifact, and is made during the compile
stage as I want to test it during the test stage.
In which way do you want to test it, cause using maven-surefire it is
already on the classpath ?
(The reason for this is that this plugin supports making ZIP archives of
data files, which could be large and therefore I want to avoid copying them
to target/classes.)
You should think about using maven-assembly-plugin ? May be you have an
example project with some data so we can dicuss this in more detail...
Kind regards
Karl Heinz Marbaise
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]