org.apache.maven:maven-parent:pom:4-SNAPSHOT error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

org.apache.maven:maven-parent:pom:4-SNAPSHOT error

kcr sk
When I do mvn clean install, I am getting following build error. The missing artifact is not in my company repository thus artifactory must get it from ibilio and cache it. But is not happening. Below is the error trace. Also attached are the settings.xml, pom.xml and artifactory.config.xml. Note: In artifactory.config.xml, I do not have remote repositories defined to reference  ibilio cache and http://repo1.maven.org/maven2/org/apache/maven/plugins/. Is this the problem?
 
 [WARNING] Unable to get resource 'org.apache.maven:maven-parent:pom:4-SNAPSHOT'
from repository snapshots (http://[machine]:[port]/artifactory/repo)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
GroupId: org.apache.maven
ArtifactId: maven-parent
Version: 4-SNAPSHOT
 
Reason: Unable to download the artifact from any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
 
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project
for plugin 'org.apache.maven.plugins:maven-surefire-plugin': Cannot find parent:
 org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-plugi
ns:pom:2-SNAPSHOT
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1274)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifec
ycle(DefaultLifecycleExecutor.java:1221)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:987)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build proje
ct for plugin 'org.apache.maven.plugins:maven-surefire-plugin': Cannot find pare
nt: org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-pl
ugins:pom:2-SNAPSHOT
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:268)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:186)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
        ... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-plug
ins:pom:2-SNAPSHOT
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1198)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1214)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:697)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:230)
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:252)
        ... 20 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.ma
ven:maven-parent' not found in repository: Unable to download the artifact from
any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:528)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1194)
        ... 24 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:197)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:73)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:482)
        ... 25 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:308)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:185)
        ... 27 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Apr 09 14:03:16 MDT 2007
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------


Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

SETTINGS-POM-ARTIFACTORY Files.doc (59K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: org.apache.maven:maven-parent:pom:4-SNAPSHOT error

Yoav Landman
Administrator
This is very much like it. You need to add a remote repository where the artifact can be initially found and cached (or deploy it to a local repository).
2 other things:
- Do not use maven1 remote repositories like http://dist.codehaus.org. These are not supported and will only slow down Artifactory.
- The ibiblio maven 2 repository you are using is extremely slow and likely results in network timeouts most of the time - use repo1 instead.

On 4/10/07, kcr sk <[hidden email]> wrote:
When I do mvn clean install, I am getting following build error. The missing artifact is not in my company repository thus artifactory must get it from ibilio and cache it. But is not happening. Below is the error trace. Also attached are the settings.xml, pom.xml and artifactory.config.xml. Note: In artifactory.config.xml, I do not have remote repositories defined to reference  ibilio cache and <a href="http://repo1.maven.org/maven2/org/apache/maven/plugins/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://repo1.maven.org/maven2/org/apache/maven/plugins/. Is this the problem?
 
 [WARNING] Unable to get resource 'org.apache.maven:maven-parent:pom:4-SNAPSHOT'
from repository snapshots (http://[machine]:[port]/artifactory/repo)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
GroupId: org.apache.maven
ArtifactId: maven-parent
Version: 4-SNAPSHOT
 
Reason: Unable to download the artifact from any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
 
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException : Unable to build project
for plugin 'org.apache.maven.plugins:maven-surefire-plugin': Cannot find parent:
 org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-plugi
ns:pom:2-SNAPSHOT
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1274)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifec
ycle(DefaultLifecycleExecutor.java:1221)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java :987)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
Caused by: org.apache.maven.plugin.InvalidPluginException : Unable to build proje
ct for plugin 'org.apache.maven.plugins:maven-surefire-plugin': Cannot find pare
nt: org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-pl
ugins:pom:2-SNAPSHOT
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:268)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:186)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
        ... 17 more
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: org.apache.maven:maven-parent for project: org.apache.maven.plugins:maven-plug
ins:pom:2-SNAPSHOT
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1198)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (D
efaultMavenProjectBuilder.java:1214)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java :697)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:230)
        at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:252)
        ... 20 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM '<a href="http://org.apache.ma" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> org.apache.ma
ven:maven-parent' not found in repository: Unable to download the artifact from
any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:528)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1194)
        ... 24 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository
 
  org.apache.maven:maven-parent:pom:4-SNAPSHOT
 
from the specified remote repositories:
  central (http://[machine]:[port]/artifactory/repo),
  snapshots (http://[machine]:[port]/artifactory/repo)
 
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (De
faultArtifactResolver.java:197)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:73)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:482)
        ... 25 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (Def
aultWagonManager.java:308)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:185)
        ... 27 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Apr 09 14:03:16 MDT 2007
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------


Be a PS3 game guru.
Get your game face on with <a href="http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">the latest PS3 news and previews at Yahoo! Games.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users