Make it a (test) dependency of your project, use dependency:copy to copy the jar to a location of choice (see http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html) before the test phase is executed.
Kalle On Fri, Nov 27, 2009 at 2:04 AM, TorstenKarusseit <[email protected]> wrote: > > I have a unit test which uses a external jar. > This jar is executed in a separate vm by the unit test. > In eclipse I've to manually build and export the jar into a defined > location. > Then the unit test with hard-coding this location starts a separate vm and > performs it's tests. > Now, how to do that with maven ? > My guesses: > 1. include dependency to the generating pom of that external jar to the > project pom > 2. include testResource (to testResources) to buid, but how ? > It has to download the jar from local repo into the defined location and > if not there build it and install it to the location. > Any help ? > > -- > View this message in context: > http://old.nabble.com/How-to-use-a-jar-as-test-resource-tp26540212p26540212.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
