Re: How to skip downloading POM?

2008-04-30 Thread knf
If you run maven with the option -o, it will execute in offline mode, and
will not try to download any dependency from remote repositories.

On Wed, Apr 30, 2008 at 8:02 AM, youhaodeyi [EMAIL PROTECTED] wrote:


 Maven downloads all dependencies from remote repositories including their
 related jar and pom files. For some reason, not every jar has its pom
 file.
 In this case, Maven will try to download these pom files every time it is
 running. How can I let maven skip download these pom files or download
 only
 once?
 --
 View this message in context:
 http://www.nabble.com/How-to-skip-downloading-POM--tp16975499s177p16975499.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]




zip dependency

2008-04-29 Thread knf
Hi, I'm working on a project which uses a zip dependency with a test scope,
and I noticed different behaviors between  jar and zip dependencies.
During a unit test, I have to access a properties file packaged in a zip
dependency; but I get a FileNotFoundException. If I change this zip
dependency to a jar dependency everything works fine (i changed the
dependency declaration in my pom's project, the name of the archive, the pom
of the repository).
So, I guess maven doesn't put the zip dependecies in the classpath. Is it
normal? If yes, is there a way to fix this problem but not by renaming my
dependency to a jar?