<html>
<head>
<base href="http://bugzilla.slf4j.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Missing version in pom files"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=319">319</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>slf4j-dev@qos.ch
</td>
</tr>
<tr>
<th>Summary</th>
<td>Missing version in pom files
</td>
</tr>
<tr>
<th>Severity</th>
<td>blocker
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bdupraz.ext@deltadore.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>1.7.x
</td>
</tr>
<tr>
<th>Component</th>
<td>Implementations
</td>
</tr>
<tr>
<th>Product</th>
<td>SLF4J
</td>
</tr></table>
<p>
<div>
<pre>When using Ivy to resolve dependency in my project with this line:
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.5" />
slf4j-api-1.7.5.jar and log4j-1.2.17.jar aren't resolve. I've open the
ivy-1.7.5.xml file in Ivy cache, I've got this :
<dependency org="org.slf4j" name="working@xxxxxxxx" rev="1.7.5" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="log4j" name="log4j" rev="working@xxxxxxxx" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
At working@xxxxxxxx, the xxxxxxxx are my machine host name. When I edit the
file with dependency found on Maven central like this:
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.5" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="log4j" name="log4j" rev="1.2.17" force="true"
conf="compile->compile(*),master(*);runtime->runtime(*)"/>
It works as soon as I trigger a new resolve with Ivy. So I looked in the pom
file on Maven Central and I found that the required version attribute in
dependencies are missing. Here the extract of the pom file currently on Maven
Central:
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
and here is what it should be:
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependencies>
This problem appears on every versions of slf4j-log4j12</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>