|
Hello,
I'm quite new to Artifactory, and I"m facing a problem that Artifactory is not downloading 3rd party jar from maven2(or any other) repository. Currently I'm using out-of-the-box configuration of Artifactory and I can see in Remote Repositories section that maven2 repository is configured(http://repo1.maven.org/maven2). But when I run build it's failing to resolve dependency of hibernate-core.jar. I'd like to remark that when I'm not using Artifactory, ivy successfully downloading and resolving the dependencies from Maven2 repository. Any help is appreciated. ivysettings.xml <?xml version="1.0" encoding="UTF-8"?> <ivy-settings> <settings defaultResolver="main" /> <resolvers> <chain name="main"> <url name="public" m2compatible="false"> <artifact pattern="http://localhost:8081/artifactory/libs-release/[organization]/[module]/[revision]/[module](-[classifier])-[revision].[ext]" /> </url> </chain> </resolvers> </ivy-settings> Log when running with Artifactory [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:retrieve] module not found: org.hibernate#hibernate-core;4.0.1.Final [ivy:retrieve] ==== public: tried [ivy:retrieve] -- artifact org.hibernate#hibernate-core;4.0.1.Final!hibernate-core.jar: [ivy:retrieve] http://localhost:8081/artifactory/libs-release/org.hibernate/hibernate- core/4.0.1.Final/hibernate-core-4.0.1.Final.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: org.hibernate#hibernate-core;4.0.1.Final: not found [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] |
|
Hi,
From a quick look at your ivy configuration, I think it should be (if you want normal maven resolution): <ibiblio name="public" m2compatible="true" root="http://localhost:8081/artifactory/libs-release" />
You can use the Home->Ivy Settings page in Artifactory or the doc to kick start the setup process (it will give you different conf for URL or Ibiblio resolvers).
Hope this help, Fred. On Sun, Jan 22, 2012 at 2:20 PM, nmicra <[hidden email]> wrote: Hello, ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users |
| Powered by Nabble | See how NAML generates this page |
