Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to specify which Ivy resolver to use
    primarykey
    data
    text
    <p>My understanding is that <code>&lt;ivy:resolve/&gt;</code> copies dependencies from the configured repo into the local Ivy cache (rooted under <code>${USER_HOME}/.ivy2</code>). But after looking at the <a href="https://ant.apache.org/ivy/history/2.3.0-rc2/use/resolve.html" rel="nofollow">task's docs</a>, I was surprised to find that there is no <code>resolver</code> attribute, like:</p> <pre><code>&lt;ivy:resolve file="ivy.xml" conf="compile" resolver="theResolverToUse"/&gt; </code></pre> <p>So I ask: <strong>how do you specify which resolver to use</strong>, especially if (in <code>ivysettings.xml</code>), you can define 1+ resolvers? Thanks in advance.</p> <p><strong>Update</strong>:</p> <p>For instance, here's a snippet of the resolver defined in my (emerging) <code>ivysettings.xml</code>:</p> <pre><code>&lt;resolvers&gt; &lt;chain name="chainResolver" returnFirst="true"&gt; &lt;url name="urlResolver"&gt; &lt;ivy pattern="${ivyRepoRoot}/module_descriptors/${ivyModDescriptorPattern}"/&gt; &lt;artifact pattern="${ivyRepoRoot}/artifacts/${ivyArtifactPattern}"/&gt; &lt;/url&gt; &lt;filesystem name="localFileResolver"&gt; &lt;artifact pattern="${user.home}/.ivy2/local-cache/[artifact]-[revision].[ext]"/&gt; &lt;/filesystem&gt; &lt;/chain&gt; &lt;sftp name="publisherResolver" user="fizz" userPassword="buzz" host="example.com"&gt; &lt;ivy pattern="sftp://example.com:22/usr/local/apache/htdocs/ivy/module_descriptors/${ivyModDescriptorPattern}"/&gt; &lt;artifact pattern="sftp://example.com:22/usr/local/apache/htdocs/ivy/artifacts/${ivyArtifactPattern}"/&gt; &lt;/sftp&gt; &lt;/resolvers&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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