Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I specify net.sf.json-lib#json-lib#2.3 in Ivy or Maven?
    primarykey
    data
    text
    <p>I am in the middle of converting over our build system from Ant to Ant with Ivy, and have run into an issue specifying a particular jar we need.</p> <ul> <li><strong>groupId</strong>: net.sf.json-lib</li> <li><strong>artifactId</strong>: json-lib</li> <li><strong>version</strong>: 2.3</li> </ul> <p>I specified it in Ivy as:</p> <pre><code>&lt;dependency org="net.sf.json-lib" artifact="json-lib" rev="2.3" conf="compile-&gt;default"/&gt; </code></pre> <p>And got the following error:</p> <pre><code>[ivy:retrieve] ==== public: tried [ivy:retrieve] http://buildl01.tcprod.local/artifactory/libs-release/net/sf/json-lib/json-lib/2.3/json-lib-2.3.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: FAILED DOWNLOADS :: [ivy:retrieve] :: ^ see resolution messages for details ^ :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: net.sf.json-lib#json-lib;2.3!json-lib.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: </code></pre> <p>Notice Ivy tried to download the file <code>json-lib-2.3.jar</code> from the repository.</p> <p>I did a search on the <a href="http://search.maven.org/#artifactdetails%7Cnet.sf.json-lib%7Cjson-lib%7C2.3%7Cjar" rel="nofollow">Central Maven Repository</a> and found that the artifact isn't called <code>json-lib-2.3.jar</code> but either <code>json-lib-2.3-jdk-13.jar</code> or <code>json-lib-2.3-jdk-15.jar</code>. </p> <p>The problem is the way the name of the artifact is specified. The version number appears in the <strong>middle</strong> of the jar name. If the artifact was `json-lib-jdk-15-2.4.jar, I could do this:</p> <pre><code>&lt;dependency org="net.sf.json-lib" artifact="json-lib" rev="2.3" conf="compile-&gt;default"&gt; &lt;artifact name="json-lib-jdk-15"/&gt; &lt;/dependency&gt; </code></pre> <p>How can I specify this jar for downloading? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload