Zips are not placed on the classpath. You could use the dependency
plugin to unpack the contents to a known location and use that to load
the file.

-----Original Message-----
From: knf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 29, 2008 6:02 AM
To: users@maven.apache.org
Subject: zip dependency

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?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to