Note that there are some explanatory texts on larger screens.

plurals
  1. POmvn package fails with Required Artifact Missing even though it exists in my Remote Repository
    primarykey
    data
    text
    <p>I'm trying to run <em>mvn clean package</em> on my Maven project and it fails with the message:</p> <p><strong>"required artifact is missing" for the artifact net.ezswitch:ResourcesComponent:jar:0.0.14</strong></p> <p>I've configured my <em>settings.xml</em> to include my Remote Repository and if I navigate, on my browser, I can actually find this Jar in my repository, but Maven can't, somehow.</p> <p>I've checked that the Maven version that I'm running is the one for which the settings.xml file that I've edited takes effect, because if I disable the Profile that I configured there, Maven fails with a different message.</p> <p>I'm using Maven 2.2.1 on MAC OS X Lion.</p> <p>Here's my settings.xml:</p> <pre><code>&lt;localRepository&gt;/Users/hordine/.m2/repository&lt;/localRepository&gt; &lt;servers&gt; &lt;server&gt; &lt;id&gt;LiquixRepository&lt;/id&gt; &lt;username&gt;henrique&lt;/username&gt; &lt;password&gt;xxxxx&lt;/password&gt; &lt;configuration&gt; &lt;httpConfiguration&gt; &lt;put&gt; &lt;params&gt; &lt;param&gt; &lt;name&gt;http.authentication.preemptive&lt;/name&gt; &lt;value&gt;%b,true&lt;/value&gt; &lt;/param&gt; &lt;/params&gt; &lt;/put&gt; &lt;/httpConfiguration&gt; &lt;/configuration&gt; &lt;/server&gt; &lt;server&gt; &lt;id&gt;dev.liquix.eu&lt;/id&gt; &lt;username&gt;henrique&lt;/username&gt; &lt;password&gt;xxxxx&lt;/password&gt; &lt;/server&gt; &lt;server&gt; &lt;id&gt;ezpay-dev.liquix.eu&lt;/id&gt; &lt;username&gt;henrique&lt;/username&gt; &lt;password&gt;xxxxx&lt;/password&gt; &lt;/server&gt; &lt;/servers&gt; &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;ezswitch&lt;/id&gt; &lt;properties&gt; &lt;tomcat.home&gt;/System/Library/tomcat&lt;/tomcat.home&gt; &lt;subversion.user&gt;henrique&lt;/subversion.user&gt; &lt;subversion.password&gt;xxxxx&lt;/subversion.password&gt; &lt;/properties&gt; &lt;activation&gt; &lt;jdk&gt;1.6&lt;/jdk&gt; &lt;/activation&gt; &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;central&lt;/id&gt; &lt;name&gt;EzSwitch Cache&lt;/name&gt; &lt;layout&gt;default&lt;/layout&gt; &lt;url&gt;http://ezpay-dev.liquix.eu:9998/repository&lt;/url&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;central_maven1&lt;/id&gt; &lt;name&gt;EzSwitch Cache2&lt;/name&gt; &lt;layout&gt;legacy&lt;/layout&gt; &lt;url&gt;http://ezpay-dev.liquix.eu:9998/repository&lt;/url&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;pluginRepositories&gt; &lt;pluginRepository&gt; &lt;id&gt;central&lt;/id&gt; &lt;name&gt;EZswitch&lt;/name&gt; &lt;url&gt;http://ezpay-dev.liquix.eu:9998/repository&lt;/url&gt; &lt;snapshots&gt; &lt;/snapshots&gt; &lt;releases&gt; &lt;/releases&gt; &lt;/pluginRepository&gt; &lt;/pluginRepositories&gt; &lt;/profile&gt; &lt;/profiles&gt; &lt;activeProfiles&gt; &lt;activeProfile&gt;ezswitch&lt;/activeProfile&gt; &lt;/activeProfiles&gt; </code></pre> <p>And the entire error message that I get is:</p> <pre><code>[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Missing: ---------- 1) net.ezswitch:ResourcesComponent:jar:0.0.14 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.ezswitch -DartifactId=ResourcesComponent -Dversion=0.0.14 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.ezswitch -DartifactId=ResourcesComponent -Dversion=0.0.14 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) eu.liquix:RegistrationSolution:war:0.4.60-SNAPSHOT 2) net.ezswitch:ResourcesComponent:jar:0.0.14 ---------- 1 required artifact is missing. for artifact: eu.liquix:RegistrationSolution:war:0.4.60-SNAPSHOT from the specified remote repositories: central (http://ezpay-dev.liquix.eu:9998/repository), central_maven1 (http://ezpay-dev.liquix.eu:9998/repository) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) </code></pre> <p>But if I navigate, via my browser, to that Location, I can see the Artifact at the following location:</p> <p><a href="http://ezpay-dev.liquix.eu:9998/repository/net/ezswitch/ResourcesComponent/0.0.14/ResourcesComponent-0.0.14.jar" rel="nofollow">http://ezpay-dev.liquix.eu:9998/repository/net/ezswitch/ResourcesComponent/0.0.14/ResourcesComponent-0.0.14.jar</a></p> <p>I'd be grateful for any help. Thanks in advance.</p> <p>Henrique Ordine </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