Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven fails to get SNAPSHOT builds from repository
    primarykey
    data
    text
    <p>Our internal repository (Artifactory) now contains both the stable builds as well as SNAPSHOT versions of our internal libraries.</p> <p>For stable builds there has never been a problem of downloading anything from the repository.</p> <p>However, when I add a -SNAPSHOT, Maven claims to be unable to find the dependency, even though it is most definitely in the repository.</p> <p>If I build and deploy the dependency locally (i.e. into my local repo) all works normally.</p> <p>Basically, this works:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;com.example&lt;/groupId&gt; &lt;artifactId&gt;ourlibrary&lt;/artifactId&gt; &lt;version&gt;1.0.0&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>and this doesn't:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;com.example&lt;/groupId&gt; &lt;artifactId&gt;ourlibrary&lt;/artifactId&gt; &lt;version&gt;1.0.1-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>Even though both versions were built the same way and deployed (as far as I can possibly tell) correctly to the repository.</p> <p>The error:</p> <pre><code>Missing: ---------- 1) com.example:ourlibrary:jar:1.0.1-SNAPSHOT, Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.example -DartifactId=ourlibrary -Dversion=1.0.1-SNAPSHOT, -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.example -DartifactId=ourlibrary -Dversion=1.0.1-SNAPSHOT, -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.example:product:war:2.0.0-SNAPSHOT 2) com.example:ourlibrary:jar:1.0.1-SNAPSHOT, </code></pre> <p>While this sounds similar to <a href="https://stackoverflow.com/questions/1328385/snapshot-not-downloaded-by-maven">this</a> question, the resolution arrived at there does not apply to my case.</p> <p>Any insights into this issue would be greatly appreciated.</p> <p><strong>Edit</strong></p> <p>Running with -X (as John V. suggested) revealed the following:</p> <pre><code>[DEBUG] Skipping disabled repository central [DEBUG] ourlibrary: using locally installed snapshot [DEBUG] Skipping disabled repository central [DEBUG] Using mirror: http://repo.example.com/repo (id: repo.example.com) [DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository com.example:ourlibrary:pom:1.0.1-SNAPSHOT from the specified remote repositories: repo.example.com (http://repo.example.com/repo) [DEBUG] Using defaults for missing POM com.example:ourlibrary:pom:1.0.1-SNAPSHOT:compile [DEBUG] com.example:ourlibrary:jar:1.0.1-SNAPSHOT:compile (selected for compile) </code></pre>
    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. 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