You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Portuendo Vestado <te...@yahoo.com.br> on 2007/07/04 16:38:13 UTC

Snapshot dependency naming problem

Hi all
   
  I'm having a problem with dependency jar naming
within the war file generated by the WAR
plugin. There's a dependency on X-2.0.1-SNAPSHOT.jar,
but when maven downloads it form the
local repository, it puts it in using the unique
timestamped name the way it is stored in
snapshot repository. It's fine like that normally,
except when you need to include its name
in the manifest as Class-Path
   
  So you get something like this
   
  WAR contents:
 .
 `-- WEB-INF
     `-- lib
         |-- dep1-1.0.jar
         |-- dep2-1.0.jar
         `-- X-2.0.1-20070626.141521-7
   
  <war>/META-INF/manifest.mf contents:
  Class-Path: dep1-1.0.jar dep2-1.0.jar
X-2.0.1-SNAPSHOT.jar
   
  So when application loads, it's trying to set
X-2.0.1-SNAPSHOT.jar in the classpath because
that's what's listed in the manifest, but doesn't find
such library.
   
  Is there a workaround for this kind of issue? Is
there a way to force certain dependency
name when it gets included in the war file?
   
  You'd expect maven plugin to figure out to either
rename the dependency artifact or use
the full unique name in the manifest; does this
qualify as a bug?
   
  Appreciate any suggestions,
  -p


      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org