[slf4j-dev] [Bug 31] Varargs for Logger methods

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Feb 8 14:59:13 CET 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=31





------- Comment #16 from syvalta at yahoo.com  2008-02-08 14:59 -------
Actually, Maven dependency definition has a field for differentiating the same
artifact. It's called classifier.

>From http://maven.apache.org/maven-v4_0_0.xsd:

"The classifier of the dependency. This allows distinguishing two artifacts
that belong to the same POM but were built differently, and is appended to the
filename after the version."

So, for JDK 1.5 we can define:
<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.4.3</version>
        <classifier>jdk15</classifier>
        <scope>compile</scope>
<dependency>

And for JDK 1.4:
<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.4.3</version>
        <classifier>jdk14</classifier> <!-- or leave it out if jdk 1.4 is the
default) -->
        <scope>compile</scope>
<dependency>

Not sure if this is of any help, but decided to comment because this feature of
Maven is not very well known.

I agree with the others that this would be a very nice feature (in addition to
the "throwable with parameters", bug #70).


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list