maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "raphael.jolivet" <>
Subject log4j:log4j:bundle:1.2.16 : Bundle or JAR ?
Date Fri, 26 Nov 2010 11:26:24 GMT


In my project, I have a dependency over log4j 1.2.16.
In maven central, it comes as a "bundle" package type :
I'm not sure what it really is:
Is it just a big jar with all dependencies included ?

Anyway, I have added it to my POM, but maven fails at finding it on the
It searches for some log4J.<version>.bundle, whereas there is actually a

Here is a part of my POM:


And the error I get (with mvn compile):

[[INFO] Scanning for projects...
[INFO] Building sdr
[INFO]    task-segment: [compile]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
[INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository (
[INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository
third-party (file:///v:/maven/repositories/third-party/)
[INFO] Unable to find resource 'log4j:log4j:bundle:1.2.16' in repository
central (
[INFO] Failed to resolve artifact.

1) log4j:log4j:bundle:1.2.16

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=log4j -DartifactId=log4j
-Dversion=1.2.16 -Dpackaging=bundle -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
      mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j
-Dversion=1.2.16 -Dpackaging=bundle -Dfile=/path/to/file -Durl=[url]

  Path to dependency: 
        1) fr.armines.anemos:sdr:jar:0.0.1-SNAPSHOT
        2) log4j:log4j:bundle:1.2.16

1 required artifact is missing.

for artifact: 

from the specified remote repositories:
  third-party (file:///v:/maven/repositories/third-party/),
  central (, (


You can have a look at the central repository :
The "jar" file is there, but there is not "bundle" file.

In the POM
(, the
packaging is reported as "bundle".

So who is right ? The central repository or my maven client ?

Thanks in advance for your help,


Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_21
Java home: c:\Program Files\Java\jre6
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message