aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Cannot find JCommon with Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Cannot find JCommon with Maven" Watch "Cannot find JCommon with Maven" New topic
Author

Cannot find JCommon with Maven

Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
Hello,
I am new to Maven, and I have a project that uses JFreeChart. This is using JCommon as a dependency.
Can you please tell me how to instruct Maven to dowload JCommon?
I can't find the proper repository.

Thanks in advance
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

jcommon is in the Maven Central repository at: http://repo1.maven.org/maven2/jcommon/jcommon/

An easy way to locate artifacts is to use the Dependencies tab of the POM editor in the m2eclipse plugin. Just click add, type the name and it automatically searches for all artifact with that name.


JBoss In Action
Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
Thank you very much, It solved the problem
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 200
    
    1

Peter Johnson wrote:An easy way to locate artifacts is to use the Dependencies tab of the POM editor in the m2eclipse plugin. Just click add, type the name and it automatically searches for all artifact with that name.


Not always... Sometimes you have to look up to God (Google in my case...)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Actually, another thing you could do is install Nexus and let it index the various global repositories that it comes pre-configured with. Then a simple Nexus search should locate most JARs. As you run across additional global repositories (such as the one for JBoss), you can add it to Nexus. (I have not tried Artifactory, but I suspect it provides the same capability.)
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 200
    
    1

Yeah, Nexus is nice... I had to use to resolve Drools dependencies in my project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find JCommon with Maven