Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing status in IVY, works for the "less stable one" (ie integration), not for the other (ie milestone and release)
    primarykey
    data
    text
    <p>I am trying desperately to have this working. I've spent the whole day on it and can't find what's wrong.</p> <p>It seems that IVY can resolve only the "less stable status" in the statuses list, ie for the default ones, only integration not milestone or release.</p> <p>This is a test ant file.</p> <pre><code>&lt;project name="helicopter" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"&gt; &lt;ivy:settings file="ivysettings.xml" id="ivy.instance"/&gt; &lt;!-- the call to resolve is not mandatory, retrieve makes an implicit call if we don't --&gt; &lt;ivy:resolve file="ivy.xml" /&gt; &lt;ivy:retrieve type="swc" pattern="../libs/bin/[module]-[revision].[ext]" /&gt; &lt;ivy:retrieve type="src" pattern="../libs/src/[module]-[revision].[ext]" /&gt; &lt;/project&gt; </code></pre> <p>This is the ivysettings.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ivysettings&gt; &lt;settings defaultResolver="local" /&gt; &lt;resolvers&gt; &lt;filesystem name="local" checkmodified="true"&gt; &lt;artifact pattern="C:/repository/[organisation]/[module]/[revision]/[artifact].[ext]" /&gt; &lt;/filesystem&gt; &lt;/resolvers&gt; &lt;/ivysettings&gt; </code></pre> <p>And this is the ivy.xml</p> <pre><code>&lt;ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" &gt; &lt;info organisation="com.org" module="moduleA" status="integration" /&gt; &lt;publications&gt; &lt;artifact type="swf" ext="swf" /&gt; &lt;artifact type="src" ext="src.zip" /&gt; &lt;/publications&gt; &lt;dependencies&gt; &lt;dependency org="com.org" name="moduleB" rev="latest.integration"&gt; &lt;artifact name="moduleB" type="swc" ext="swc" /&gt; &lt;artifact name="moduleB" type="src" ext="src.zip" /&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/ivy-module&gt; </code></pre> <p>And the moduleB ivy.xml in the repository (folder) </p> <pre><code>&lt;info organisation="com.org" module="moduleB" revision="0.0.5.0" status="integration" publication="20111201174403"/&gt; &lt;publications&gt; &lt;artifact type="swc" ext="swc"/&gt; &lt;artifact type="src" ext="src.zip"/&gt; &lt;/publications&gt; &lt;dependencies&gt; &lt;/dependencies&gt; </code></pre> <p></p> <p>So this will work, the moduleB will be downloaded all right. <br />Now if I edit the ivy.xml to get the latest.milestone </p> <pre><code> &lt;info organisation="com.org" module="moduleA" status="integration" /&gt; &lt;publications&gt; &lt;artifact type="swf" ext="swf" /&gt; &lt;artifact type="src" ext="src.zip" /&gt; &lt;/publications&gt; &lt;dependencies&gt; &lt;dependency org="com.org" name="moduleB" rev="latest.milestone"&gt; &lt;artifact name="moduleB" type="swc" ext="swc" /&gt; &lt;artifact name="moduleB" type="src" ext="src.zip" /&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/ivy-module&gt; </code></pre> <p>and edit the ivy.xml of my published moduleB (so editing in the repository folder) to be of status milestone </p> <pre><code>&lt;info organisation="com.org" module="moduleB" revision="0.0.5.0" status="milestone" publication="20111201174403"/&gt; &lt;publications&gt; &lt;artifact type="swc" ext="swc"/&gt; &lt;artifact type="src" ext="src.zip"/&gt; &lt;/publications&gt; &lt;dependencies&gt; &lt;/dependencies&gt; </code></pre> <p></p> <p>it won't work, the artifact won't be found, although listed</p> <pre><code>:: problems summary :: :::: WARNINGS module not found: com.org#moduleB;latest.milestone ==== local: tried -- artifact com.org#moduleB;latest.milestone!moduleB.src.zip(src): C:/repository/com.org/moduleB/revision]/moduleB.src.zip [0.0.5.0 (MD)] -- artifact com.org#moduleB;latest.milestone!moduleB.swc: C:/repository/com.org/moduleB/[revision]/moduleB.swc [0.0.5.0 (MD)] </code></pre> <p>Now the FUN PART! Before using the defaults statuses from IVY I used mine. It had the exact same behavior (that's why I tried the defaults one then). The fun bits is that if I had</p> <pre><code>&lt;statuses default="status-dev"&gt; &lt;status name="status-stable" integration="false"/&gt; &lt;status name="status-test" integration="false"/&gt; &lt;status name="status-dev" integration="true" /&gt; &lt;/statuses&gt; </code></pre> <p>The only latest.[status] working will be for status-dev. Now if I change the status order to</p> <pre><code>&lt;statuses default="status-dev"&gt; &lt;status name="status-stable" integration="false"/&gt; &lt;status name="status-dev" integration="true" /&gt; &lt;status name="status-test" integration="false"/&gt; &lt;/statuses&gt; </code></pre> <p>The only one working will be status-test.</p> <p>I' puzzled here... :/</p> <p>Thanks for any help you could provide. Cheers, Xavier</p> <p>I have created a basic project showing the weird behavior.<br> <code>moduleB</code> is the module being published.<br> <code>moduleA</code> is the module getting <code>moduleB</code> as a dependency.<br> Please update the path to the local repository in both <code>ivysettings</code> file<br> The link to download the file<br> <a href="https://rapidshare.com/files/1326835940/test_ivy.zip" rel="nofollow">https://rapidshare.com/files/1326835940/test_ivy.zip</a> </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