Search code examples
javarepositoryivy

How put a jar in a Ivy local repository


I had been studiyng the example of Liferay but, when I tried to create the example of Service Builder Portlet , my Eclipse-console showed me this message

 [ivy:resolve]    http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom
 [ivy:resolve]    -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
 [ivy:resolve]    http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar
 [ivy:resolve]      ::::::::::::::::::::::::::::::::::::::::::::::
 [ivy:resolve]      ::          UNRESOLVED DEPENDENCIES         ::
 [ivy:resolve]      ::::::::::::::::::::::::::::::::::::::::::::::
 [ivy:resolve]      :: biz.aQute#bnd;2.3.0: not found 
 [ivy:resolve]      :::::::::::::::::::::::::::::::::::::::::::::: 
 [ivy:resolve] 
 [ivy:resolve]  
 [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

effectly, the repository URL was unavailable.

I found the missed jar and I put him in .ivy/cache and I read the Ivy documentation, but I miss some point for solve my problem.

Now the repository is available, but yet I don't understand how can the repository read the location of jar that I put in local filesystem.


Solution

  • If you go to your directory

    D:\MyWorks\liferay-plugins-sdk-6.2\ you have to modify file ivj.xml changing the line

    dependency name="bnd" org="biz.aQute" rev="2.3.0"

    into

    dependency name="bnd" org="biz.aQute.bnd" rev="2.3.0"

    This should correct the problem.