You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by knf <ka...@gmail.com> on 2008/04/29 12:01:41 UTC
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?
RE: zip dependency
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
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:kaolinsnf@gmail.com]
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org