|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Strange artifact/pom setting in Maven Central...Folks,
I came across an unusual situation where a nexus search for json-lib (GAV: net.sf.jason-lib:json-lib:2.3:jar) returned -- among other things -- an entry with packaging jar where the pom does not have a classifier or anything so that I could rationally expect to find both in our nexus file system and in the remote Maven Central repo the following artifact... net/sf/json-lib/json-lib/2.3/json-lib-2.3.jar. Well, on our file system we see only the pom. In maven central we see json-lib-2.3-jdk13-javadoc.jar 11-Jul-2009 22:40 245582 json-lib-2.3-jdk13-sources.jar 11-Jul-2009 22:40 102390 json-lib-2.3-jdk13.jar 11-Jul-2009 22:40 151390 json-lib-2.3-jdk15-javadoc.jar 11-Jul-2009 22:40 248751 json-lib-2.3-jdk15-sources.jar 11-Jul-2009 22:40 104049 json-lib-2.3-jdk15.jar This suggests that a classifier should be specified. Sure enough, when I added <classifier>jdk15</classifier> to my dependency I got the correct jar. My questions: 1 - How is it that the pom in does not specify a classifier yet json-lib-2.3.jar doesn't exist? 2 - How can nexus list the following in a search for json-lib: version packaging classifier Download 2.3 jar artifact,pom yet clicking the pom link shows this dependency... <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.3</version> </dependency> Instead of <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.3</version> <classifier>whatever</classifier> </dependency> I hope this loaded question is not too confusing. Sam CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone or return email. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: nexus-dev-unsubscribe@... For additional commands, e-mail: nexus-dev-help@... |
|
|
Re: Strange artifact/pom setting in Maven Central...Hi Sam,
This was a bug on nexus 1.3.6 and it is already fixed on 1.4.0 (to be released in a few days). If you wanna try
VELO On Tue, Sep 29, 2009 at 8:05 PM, Sam Husson <shusson@...> wrote: Folks, |
| Free embeddable forum powered by Nabble | Forum Help |