Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to publish an Ivy project with multiple classifiers?
    primarykey
    data
    text
    <p>I'm coming from a Maven background. The project I am working on is not Java based. However, it is a requirement to use standalone Ivy for the dependency management. The repository manager is Nexus.</p> <p>The project produces several zip artifacts and needs to deploy them to Nexus via standalone Ivy. I would like an analogue of Maven classifiers, but for Ivy.</p> <p>This is my ivysettings.xml:</p> <pre><code>&lt;ivysettings&gt; &lt;settings defaultResolver="nexus"/&gt; &lt;credentials host="localhost" realm="Sonatype Nexus Repository Manager" username="user" passwd="pass"/&gt; &lt;property name="nexus-public" value="http://localhost:8081/nexus/content/groups/public"/&gt; &lt;property name="nexus-releases" value="http://localhost:8081/nexus/content/repositories/releases"/&gt; &lt;property name="nexus-snapshots" value="http://localhost:8081/nexus/content/repositories/snapshots"/&gt; &lt;resolvers&gt; &lt;ibiblio name="nexus" m2compatible="true" root="${nexus-public}"/&gt; &lt;ibiblio name="nexus-releases" m2compatible="true" root="${nexus-releases}"/&gt; &lt;ibiblio name="nexus-snapshots" m2compatible="true" root="${nexus-snapshots}" checkmodified="true" changingPattern="*-SNAPSHOT"/&gt; &lt;/resolvers&gt; &lt;/ivysettings&gt; </code></pre> <p>I have the following ivy.xml:</p> <pre><code>&lt;ivy-module version="2.0"&gt; &lt;info organisation="kung.fu" module="ninja" revision="1.2.3"/&gt; &lt;publications&gt; &lt;artifact name="ninja" type="zip" ext="zip"/&gt; &lt;artifact name="ninja" type="win32" ext="zip"/&gt; &lt;artifact name="ninja" type="linux-x32" ext="zip"/&gt; &lt;artifact name="ninja" type="linux-x64" ext="zip"/&gt; &lt;/publications&gt; &lt;/ivy-module&gt; </code></pre> <p>I am trying to deploy to Nexus as follows:</p> <pre><code>java -jar /path/to/ivy.jar -settings /path/to/.ivy/ivysettings.xml -ivy ivy.xml -publish nexus-releases -publishpattern "target/[artifact]-[revision](-[classifier]).[ext]" -revision 1.2.3 -status released -overwrite </code></pre> <p>What am I doing wrong?</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.
    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