Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is how you retrieve more than one artifact associated with a Maven module:</p> <pre><code>&lt;dependency org="org.neo4j.app" name="neo4j-server" rev="1.5-SNAPSHOT"&gt; &lt;artifact name="neo4j-server" type="jar" /&gt; &lt;artifact name="neo4j-server" type="jar" m:classifier="static-web"/&gt; &lt;/dependency&gt; </code></pre> <p>The syntax is odd because of the way Maven references additional artifacts using classifiers.</p> <p>The neo4j snapshot repository needs to be added into your <strong>ivysettings.xml</strong> file (snapshot releases are not published to Maven Central)</p> <pre><code>&lt;ivysettings&gt; &lt;settings defaultResolver="chain"/&gt; &lt;resolvers&gt; &lt;chain name="chain"&gt; &lt;ibiblio name="central" m2compatible="true"/&gt; &lt;ibiblio name="neo4j-snapshot" m2compatible="true" root="http://repo.neo4j.org/content/repositories/snapshots"/&gt; &lt;/chain&gt; &lt;/resolvers&gt; &lt;/ivysettings&gt; </code></pre> <h1>Other issues</h1> <h2>Version corrections</h2> <pre><code>&lt;dependency org="org.aspectj" name="aspectjrt" rev="1.6.11"/&gt; &lt;dependency org="org.aspectj" name="aspectjtools" rev="1.6.11"/&gt; </code></pre> <h2>Broken repository POM</h2> <p>The problem with using snapshot repos is sometimes the POMs are broken. Ivy is unable to process the following file:</p> <p><a href="http://repo.neo4j.org/content/repositories/snapshots/org/neo4j/app/neo4j-server/1.5-SNAPSHOT/neo4j-server-1.5-SNAPSHOT.pom" rel="noreferrer">http://repo.neo4j.org/content/repositories/snapshots/org/neo4j/app/neo4j-server/1.5-SNAPSHOT/neo4j-server-1.5-SNAPSHOT.pom</a></p> <p>This prevents ivy from downloading the neo4j-server arifacts....</p> <pre><code>[ivy:retrieve] :::: WARNINGS [ivy:retrieve] io problem while parsing ivy file: http://repo.neo4j.org/content/repositories/snapshots/org/neo4j/app/neo4j-server/1.5-SNAPSHOT/neo4j-server-1.5-SNAPSHOT.pom: Impossible to load parent for file:/home/mark/.ivy2/cache/org.neo4j.app/neo4j-server/ivy-1.5-SNAPSHOT.xml.original. Parent=org.neo4j.build#parent-pom;25 [ivy:retrieve] module not found: org.neo4j.app#neo4j-server;1.5-SNAPSHOT .. [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: org.neo4j.app#neo4j-server;1.5-SNAPSHOT: not found [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: </code></pre> <h2>Work-around</h2> <p>In the settings file configure ivy to retrieve the artifacts directly using the <a href="http://ant.apache.org/ivy/history/latest-milestone/resolver/url.html" rel="noreferrer">url resolver</a>. The <a href="http://ant.apache.org/ivy/history/latest-milestone/resolver/ibiblio.html" rel="noreferrer">ibiblio resolver</a> is used for all other modules whose POMs are valid.</p> <pre><code>&lt;ivysettings&gt; &lt;settings defaultResolver="chain"/&gt; &lt;resolvers&gt; &lt;chain name="chain"&gt; &lt;ibiblio name="central" m2compatible="true"/&gt; &lt;ibiblio name="neo4j-snapshot" m2compatible="true" root="http://repo.neo4j.org/content/repositories/snapshots"/&gt; &lt;/chain&gt; &lt;url name="neo4j-snapshot-hack"&gt; &lt;artifact pattern="http://repo.neo4j.org/content/repositories/snapshots/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/&gt; &lt;/url&gt; &lt;/resolvers&gt; &lt;modules&gt; &lt;module organisation="org.neo4j.app" name="neo4j-server" resolver="neo4j-snapshot-hack"/&gt; &lt;/modules&gt; &lt;/ivysettings&gt; </code></pre> <p>This will mean transitive dependencies in the by-passed POM file might be skipped. Can't be helped if the POM is not working properly</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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