Thanks for your help Stuart.
Unfortunately none of your tips helped.
Anyway I solved my problem by overwriting my local repository with a
backup of my old installation.
Additionally I'm using Apache Archiva now and it helps a lot with
that well known network problems of maven.
So what I've learned again: Never touch a running system ;-)
Ingo
Am 29.03.2008 um 04:13 schrieb Stuart McCulloch:
On 29/03/2008, Ingo Meyer <[EMAIL PROTECTED]> wrote:
Hi,
I have a similar problem. I've installed my macos on my macbook new
and wanted to start with an empty local repository.
Unfortunately none of my projects succeed in building:
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-compiler-plugin
Reason: Error getting POM for 'org.apache.maven.plugins:maven-
compiler-plugin' from the repository: Failed to resolve artifact,
possibly due to a repository list that is not appropriately
equipped for this artifact's metadata.
org.apache.maven.plugins:maven-compiler-plugin:pom:
2.1-20060630.030817-1
from the specified remote repositories: central (http://
repo1.maven.org/maven2) for project org.apache.maven.plugins:maven-
compiler-plugin
that's very weird - it looks like your local maven metadata might
have got messed up (can occasionally happen when you have
an interrupted network connection - fyi 2.0.9 should avoid this)
I'd suggest you try the following first:
mvn -U clean install (-U to force a metadata update)
if that fails, remove ~/.m2/repository/org/apache/maven/plugins
and try again, perhaps with -X to get extra debug information
if it still fails then try the following in an empty directory:
mvn compile -X -U
this will produce an error message about a missing project, but
you should find the compiler plugin resolves to version 2.0.2
if it doesn't then there's something wrong with your settings.xml
or your mirror (the version shown above looks like a snapshot)
HTH
Neither with direct acces nor with my apache archiva installation
as a mirror.
What can be the problem? Any help is urgently appreciated.
Thanks
Ingo
Am 25.03.2008 um 17:50 schrieb Timothy Bennett:
Something weird... maybe some of you have had this happen...
Using this article (http://wiki.ops4j.org/confluence/display/ops4j/
How+to+use+Pax+Logging) for guidance on setting up and using pax
logging, I checked out and installed both the base and pax
projects on one of my machines last night. Everything checked
out, built, and installed without a problem. I used these
instructions:
mkdir ops4j
cd ./ops4j
svn co https://scm.ops4j.org/repos/ops4j/projects/base<mime-
attachment.gif> base
svn co https://scm.ops4j.org/repos/ops4j/projects/pax<mime-
attachment.gif> pax
cd ./base
mvn install
cd ../pax
mvn install
As I said, no problems. However this morning, I attempted to
replicate these exact steps on a different machine. The base
project compiles and installs fine with maven. But I attempt to
perform mvn install on the pax project, I get the following error
dump. Any ideas?
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/ops4j/pax/master/
1.10/master-1.10.pom
[INFO]
---------------------------------------------------------------------
---
[ERROR] FATAL ERROR
[INFO]
---------------------------------------------------------------------
---
[INFO] Error building POM (may not be this project's POM).
Project ID: org.ops4j.pax:project:pom:1.10-SNAPSHOT
Reason: Cannot find parent: org.ops4j.pax:master for project:
org.ops4j.pax:project:pom:1.10-SNAPSHOT for project
org.ops4j.pax:project:pom:1.10-SNAPSHOT
[INFO]
---------------------------------------------------------------------
---
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find
parent: org.ops4j.pax:master for project:
org.ops4j.pax:project:pom:1.10-SNAPSHOT for project
org.ops4j.pax:project:pom:1.10-SNAPSHOT
at org.apache.maven.DefaultMaven.getProjects
(DefaultMaven.java:376)
at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:289)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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)
Caused by: org.apache.maven.project.ProjectBuildingException:
Cannot find parent: org.ops4j.pax:master for project:
org.ops4j.pax:project:pom:1.10-SNAPSHOT for project
org.ops4j.pax:project:pom:1.10-SNAPSHOT
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage
(DefaultMavenProjectBuilder.java:1259)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal
(DefaultMavenProjectBuilder.java:745)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:476)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build
(DefaultMavenProjectBuilder.java:197)
at org.apache.maven.DefaultMaven.getProject
(DefaultMaven.java:548)
at org.apache.maven.DefaultMaven.collectProjects
(DefaultMaven.java:458)
at org.apache.maven.DefaultMaven.collectProjects
(DefaultMaven.java:524)
at org.apache.maven.DefaultMaven.collectProjects
(DefaultMaven.java:524)
at org.apache.maven.DefaultMaven.getProjects
(DefaultMaven.java:362)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.ops4j.pax:master' not found in repository: Unable to download
the artifact from any repository
org.ops4j.pax:master:pom:1.10
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
for project org.ops4j.pax:master
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:571)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage
(DefaultMavenProjectBuilder.java:1255)
... 19 more
Caused by:
org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
org.ops4j.pax:master:pom:1.10
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:206)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:524)
... 20 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
Unable to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact
(DefaultWagonManager.java:324)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:194)
... 22 more
[INFO]
---------------------------------------------------------------------
---
[INFO] Total time: 1 second
[INFO] Finished at: Tue Mar 25 11:37:27 CDT 2008
[INFO] Final Memory: 1M/4M
[INFO]
---------------------------------------------------------------------
---
<mime-attachment.gif>
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general
--
Cheers, Stuart
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general