Я пытаюсь запустить пакет mvn clean на своем Maven проекта, и он завершается с ошибкой с сообщением:
«необходимый артефакт отсутствует» для артефакта net.ezswitch:ResourcesComponent:jar:0.0.14
Я настроил свой settings.xmlдля включения мой удаленный репозиторий, и если я перемещаюсь в своем браузере, я действительно могу найти этот Jar в своем репозитории, но Maven почему-то не может.
Я проверил, что версия Maven, которую я запускаю, является той, для которой вступает в силу отредактированный файл settings.xml, потому что, если я отключу профиль, который я там настроил, Maven выйдет из строя с другим сообщение.
Я использую Maven 2.2.1 на MAC OS X Lion.
Вот мой файл settings.xml:
/Users/hordine/.m2/repository
LiquixRepository
henrique
xxxxx
http.authentication.preemptive
%b,true
dev.liquix.eu
henrique
xxxxx
ezpay-dev.liquix.eu
henrique
xxxxx
ezswitch
/System/Library/tomcat
henrique
xxxxx
1.6
central
EzSwitch Cache
default
http://ezpay-dev.liquix.eu:9998/repository
central_maven1
EzSwitch Cache2
legacy
http://ezpay-dev.liquix.eu:9998/repository
central
EZswitch
http://ezpay-dev.liquix.eu:9998/repository
ezswitch
И полное сообщение об ошибке, которое я получаю:
[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)
Но если я перейду через браузер в это место, я увижу артефакт в следующем месте:
Буду благодарен за любую помощь. Заранее спасибо.
Энрике Ордине