How to use a jar as test resource
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How do I prevent maven from searching my own artifacts in public repositories ?
Hi all, thank you very mutch. I think Anders is right saying to use a repo manager, wich has to filter the artifact request if it matchs a predefined pattern of my project. Do anyone of you have experience with such a manager ? Nexus or Archiva ? Torsten - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How do I prevent maven from searching my own artifacts in public repositories ?
Hi, may be a simple question: How do I prevent maven from searching my own artifacts in public repositories ? While I playing around with my pom files there are often situations where maven uselessly disturbs externel maven repositories. Which I want to prevent if possible. Thank you. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org