Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven is not using repo1, it's going over to maven.glassfish.org and failing my build
    primarykey
    data
    text
    <p>I have this repo section:</p> <pre><code>&lt;repositories&gt; &lt;repository&gt; &lt;id&gt;Repo1&lt;/id&gt; &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt; &lt;/releases&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;EclipseLink&lt;/id&gt; &lt;url&gt;http://download.eclipse.org/rt/eclipselink/maven.repo&lt;/url&gt; &lt;/repository&gt; &lt;/repositories&gt; </code></pre> <p>and this dependency:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt; &lt;artifactId&gt;jersey-client&lt;/artifactId&gt; &lt;version&gt;1.9.1&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>Why is maven continuously going to <code>download.java.net</code> and <code>maven.glassfish.org</code> ? It's not in my poms anywhere</p> <pre><code>Downloading: http://download.java.net/maven/glassfish//com/ocpsoft/prettyfaces-parent/3.3.3/prettyfaces-parent-3.3.3.pom [INFO] Unable to find resource 'com.ocpsoft:prettyfaces-parent:pom:3.3.3' in repository Glassfish (http://download.java.net/maven/glassfish/) Downloading: http://repo1.maven.org/maven2/com/ocpsoft/prettyfaces-parent/3.3.3/prettyfaces-parent-3.3.3.pom 8K downloaded (prettyfaces-parent-3.3.3.pom) Downloading: http://download.java.net/maven/glassfish//com/ocpsoft/ocpsoft-parent/2/ocpsoft-parent-2.pom [INFO] Unable to find resource 'com.ocpsoft:ocpsoft-parent:pom:2' in repository Glassfish (http://download.java.net/maven/glassfish/) Downloading: http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-parent/2/ocpsoft-parent-2.pom 1K downloaded (ocpsoft-parent-2.pom) Downloading: http://repo1.maven.org/maven2/com/sun/jersey/jersey-client/1.9.1/jersey-client-1.9.1.pom 6K downloaded (jersey-client-1.9.1.pom) Downloading: http://repo1.maven.org/maven2/com/sun/jersey/jersey-project/1.9.1/jersey-project-1.9.1.pom 17K downloaded (jersey-project-1.9.1.pom) Downloading: http://download.java.net/maven/2/net/java/jvnet-parent/1/jvnet-parent-1.pom [INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in repository m2.java.net (http://download.java.net/maven/2) Downloading: http://repository.jboss.org/nexus/content/groups/public//net/java/jvnet-parent/1/jvnet-parent-1.pom [INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in repository repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/) Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom 185b downloaded (jvnet-parent-1.pom) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '&lt;html&gt; &lt;head&gt;&lt;title&gt;301' - RETRYING Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom 185b downloaded (jvnet-parent-1.pom) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '&lt;html&gt; &lt;head&gt;&lt;title&gt;301' - IGNORING [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: com.sun.jersey:jersey-project:pom:1.9.1 Reason: Cannot find parent: net.java:jvnet-parent for project: com.sun.jersey:jersey-project:pom:1.9.1 for project com.sun.jersey:jersey-project:pom:1.9.1 </code></pre> <p>EDIT:</p> <p>As a debug step, I've nuked ~/.m2... I don't know what is going on, but this build used to work.</p> <p>MOR EDIT:</p> <p>Ok, so I should have mentioned, the repositories section is in the parent pom and the dependency is in the child pom. If I put the configuration into one big pom it works. Two poms, it fails. What the heck??</p> <p>EVEN MOR EDIT:</p> <p>This is absolutely crazy where maven is getting the extra repositories at, I even checked the artifact poms. Anyway, here is my solution to the unexplained behavior. Put this in my settings.xml:</p> <pre><code>&lt;settings&gt; &lt;mirrors&gt; &lt;mirror&gt; &lt;id&gt;central-mirror&lt;/id&gt; &lt;url&gt;http://repo.maven.apache.org/maven2&lt;/url&gt; &lt;mirrorOf&gt;*,!eclipselink&lt;/mirrorOf&gt; &lt;/mirror&gt; &lt;/mirrors&gt; &lt;/settings&gt; </code></pre> <p>This forces maven to use central, except for when I'm using the eclipselink repo. Sigh, argh!</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.
 

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