mvn package fails with Required Artifact Missing even though it exists in my Remote Repository

I'm trying to run mvn clean package on my Maven project and it fails with the message:

"required artifact is missing" for the artifact net.ezswitch:ResourcesComponent:jar:0.0.14

I've configured my settings.xml 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.

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.

I'm using Maven 2.2.1 on MAC OS X Lion.

Here's my settings.xml:





              <name>EzSwitch Cache</name>
            <name>EzSwitch Cache2</name>



And the entire error message that I get is:

[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: 

from the specified remote repositories:
  central (,
  central_maven1 (

    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
    at org.apache.maven.DefaultMaven.doExecute(
    at org.apache.maven.DefaultMaven.execute(
    at org.apache.maven.cli.MavenCli.main(
    at org.apache.maven.cli.compat.CompatibleMain.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.codehaus.classworlds.Launcher.launchEnhanced(
    at org.codehaus.classworlds.Launcher.launch(
    at org.codehaus.classworlds.Launcher.mainWithExitCode(
    at org.codehaus.classworlds.Launcher.main(

But if I navigate, via my browser, to that Location, I can see the Artifact at the following location:

I'd be grateful for any help. Thanks in advance.

Henrique Ordine


Apparently error message "required artifact is missing" was hiding the actual root cause, which was not visible in the message(s). Running Maven with debug messages on (-X option) will print out additional information that gives more detailed insight as to what would be the problem.

For future reference, this time the error was

[WARNING] Unable to get resource 'net.ezswitch:ResourcesComponent:pom:0.0.14' from repository central (
Specified destination directory cannot be created: /Users/hordine/.m2/repository/net/ezswitch/ResourcesComponent/0.0.14

Which wasn't visible without the debug flag.

If you haven't already, could you please try:

mvn -U clean package

In addition updating all snapshot versions, in case they have been newly deployed to the repository since Maven's once a day snapshot check, this will also force Maven to update its other cached repo resolutions, such as 404's.

Just had this problem. Went through so many solutions on my Mac. In the end changed my


changed this:


to this:


you can see all the properties you have to play with on a mac by typing in a terminal


Need Your Help

Where is stacktrace file located for Android application when it crashes?

android proguard

Where an Android app crashes and its not in debug mode, where can I retrieve the stacktrace?

Make windows form appear in a Unity game

c# windows forms unity3d code-injection

I downloaded a game which is based on unity engine, and I programmed a windows form which reads the log file the game creates in realtime and do somethings with the data.