You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ekaterina Ilina <il...@devexperts.com> on 2010/12/22 16:00:27 UTC

Failed to resolve artifact

Hello!

 

We are using Maven 2.2.1 and Nexus 1.7.0.

We have one "core" project and 4 dependent projects. After "core" project is
built and artifacts are deployed, every of these dependent projects starts
to build. And sometimes one or two of them fail with exception: Failed to
resolve artifact.

Here is an example.

 

One of dependent projects failed with the reason that artifact config.jar is
missing. The first thing is that this artifact already was deployed - at
21:13. The second - that as far as I see in log, it was downloaded at
21:25:36.

 

Such a problem occurs from time to time, with different projects, and with
any artifact. And I have no idea what is the reason of this problem. Do you
have any?

 

Full log:

[21:25:36]: Downloading:
https://maven.in.d.com/content/repositories/gft-snapshot//com/config/1-272-S
NAPSHOT/config-1-272-20101221.181256-220.jar
<https://maven.in.d.com/content/repositories/gft-snapshot/com/config/1-272-S
NAPSHOT/config-1-272-20101221.181256-220.jar> 

[21:25:37]: 16K downloaded  (config-1-272-20101221.181256-220.jar)

[21:25:40]: [INFO]
------------------------------------------------------------------------

[21:25:40]: [ERROR] BUILD ERROR

[21:25:40]: [INFO]
------------------------------------------------------------------------

[21:25:40]: [INFO] Failed to resolve artifact.

[21:25:40]: Missing:

[21:25:40]: ----------

[21:25:40]: 1) com.d.gft:config:jar:1-272-SNAPSHOT

[21:25:40]:   Try downloading the file manually from the project website.

[21:25:40]:   Then, install it using the command: 

[21:25:40]:       mvn install:install-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file

[21:25:40]:   Alternatively, if you host your own repository you can deploy
the file there: 

[21:25:40]:       mvn deploy:deploy-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

[21:25:40]:   Path to dependency: 

[21:25:40]:          1) com.w-package:wb:war:B-58-SNAPSHOT

[21:25:40]:          2) com:config:jar:1-272-SNAPSHOT

[21:25:40]: ----------

[21:25:40]: 1 required artifact is missing.

[21:25:40]: for artifact: 

[21:25:40]:   com.w-package:wb:war:B-58-SNAPSHOT

[21:25:40]: from the specified remote repositories:

[21:25:40]:   thirdparty
(https://maven.in.d.com/content/repositories/thirdparty),

[21:25:40]:   gft (https://maven.in.d.com/content/repositories/gft/),

[21:25:40]:   gft-snapshot
(https://maven.in.d.com/content/repositories/gft-snapshot/),

[21:25:40]:   jboss (http://repository.jboss.org/maven2/),

[21:25:40]:   java.net.m2.mirror
(http://maven.in.d.com:7090/content/repositories/maven2-repository.dev.java.
net),

[21:25:40]:   Nexus (http://maven.in.d.com:7090/content/groups/public),

[21:25:40]:   shared (http://maven.in.d.com/content/repositories/shared)

[21:25:40]: [INFO]
------------------------------------------------------------------------

[21:25:40]: [INFO] Trace

[21:25:40]: org.apache.maven.lifecycle.LifecycleExecutionException: Missing:

[21:25:40]: ----------

[21:25:40]: 1) com:config:jar:1-272-SNAPSHOT

[21:25:40]:   Try downloading the file manually from the project website.

[21:25:40]:   Then, install it using the command: 

[21:25:40]:       mvn install:install-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file

[21:25:40]:   Alternatively, if you host your own repository you can deploy
the file there: 

[21:25:40]:       mvn deploy:deploy-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

[21:25:40]:   Path to dependency: 

[21:25:40]:          1) com.w-package:wb:war: B-58-SNAPSHOT

[21:25:40]:          2) com:config:jar:1-272-SNAPSHOT

[21:25:40]: ----------

[21:25:40]: 1 required artifact is missing.

[21:25:40]: for artifact: 

[21:25:40]:   com.w-package:wb:war:B-58-SNAPSHOT

[21:25:40]: from the specified remote repositories:

[21:25:40]:   thirdparty
(https://maven.in.d.com/content/repositories/thirdparty),

[21:25:40]:   gft (https://maven.in.d.com/content/repositories/gft/),

[21:25:40]:   gft-snapshot
(https://maven.in.d.com/content/repositories/gft-snapshot/),

[21:25:40]:   jboss (http://repository.jboss.org/maven2/),

[21:25:40]:   java.net.m2.mirror
(http://maven.in.d.com:7090/content/repositories/maven2-repository.dev.java.
net),

[21:25:40]:   Nexus (http://maven.in.d.com:7090/content/groups/public),

[21:25:40]:   shared (http://maven.in.d.com/content/repositories/shared)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:711)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:556)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:535)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:387)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:348)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:180)

[21:25:40]:   at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

[21:25:40]:   at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

[21:25:40]:   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

[21:25:40]:   at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

[21:25:40]:   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[21:25:40]:   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

[21:25:40]:   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

[21:25:40]:   at java.lang.reflect.Method.invoke(Method.java:597)

[21:25:40]:   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

[21:25:40]:   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

[21:25:40]:   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

[21:25:40]:   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

[21:25:40]: Caused by:
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:

[21:25:40]: ----------

[21:25:40]: 1) com:config:jar:1-272-SNAPSHOT

[21:25:40]:   Try downloading the file manually from the project website.

[21:25:40]:   Then, install it using the command: 

[21:25:40]:       mvn install:install-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file

[21:25:40]:   Alternatively, if you host your own repository you can deploy
the file there: 

[21:25:40]:       mvn deploy:deploy-file -DgroupId=com -DartifactId=config
-Dversion=1-272-20101221.181256-220 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

[21:25:40]:   Path to dependency: 

[21:25:40]:          1) com.w-package:wb:war:B-58-SNAPSHOT

[21:25:40]:          2) com:config:jar:1-272-SNAPSHOT

[21:25:40]: ----------

[21:25:40]: 1 required artifact is missing.

[21:25:40]: for artifact: 

[21:25:40]:   com.w-package:wb:war:B-58-SNAPSHOT

[21:25:40]: from the specified remote repositories:

[21:25:40]:   thirdparty
(https://maven.in.d.com/content/repositories/thirdparty),

[21:25:40]:   gft (https://maven.in.d.com/content/repositories/gft/),

[21:25:40]:   gft-snapshot
(https://maven.in.d.com/content/repositories/gft-snapshot/),

[21:25:40]:   jboss (http://repository.jboss.org/maven2/),

[21:25:40]:   java.net.m2.mirror
(http://maven.in.d.com:7090/content/repositories/maven2-repository.dev.java.
net),

[21:25:40]:   Nexus (http://maven.in.d.com:7090/content/groups/public),

[21:25:40]:   shared (http://maven.in.d.com/content/repositories/shared)

[21:25:40]:   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitive
ly(DefaultArtifactResolver.java:360)

[21:25:40]:   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitive
ly(DefaultArtifactResolver.java:304)

[21:25:40]:   at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(D
efaultPluginManager.java:1499)

[21:25:40]:   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:442)

[21:25:40]:   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:694)

[21:25:40]:   ... 17 more

 

Regards,

Ekaterina

 

 


RE: Failed to resolve artifact

Posted by Ekaterina Ilina <il...@devexperts.com>.
The second :)
It's just a misprint - groupId is 'com' in both cases.


-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Wednesday, December 22, 2010 7:01 PM
To: Maven Users List
Subject: Re: Failed to resolve artifact

> https://maven.in.d.com/content/repositories/gft-snapshot//com/config/1-272-S
> NAPSHOT/config-1-272-20101221.181256-220.jar
>
> [21:25:40]: [INFO] Failed to resolve artifact.
>
> [21:25:40]: 1) com.d.gft:config:jar:1-272-SNAPSHOT

Looks like the artifact you downloaded has groupId com w/artifactId
config and Maven cannot resolve an artifact with groupId com.d.gft
w/artifactId config -- or are these the same artifact and you have
simply tried to hide your company name in this debug log?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Failed to resolve artifact

Posted by Wayne Fay <wa...@gmail.com>.
> https://maven.in.d.com/content/repositories/gft-snapshot//com/config/1-272-S
> NAPSHOT/config-1-272-20101221.181256-220.jar
>
> [21:25:40]: [INFO] Failed to resolve artifact.
>
> [21:25:40]: 1) com.d.gft:config:jar:1-272-SNAPSHOT

Looks like the artifact you downloaded has groupId com w/artifactId
config and Maven cannot resolve an artifact with groupId com.d.gft
w/artifactId config -- or are these the same artifact and you have
simply tried to hide your company name in this debug log?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org