Hi Carlo ,all
On Sat, Feb 4, 2012 at 10:43 PM, Carlo Allocca <[email protected]> wrote: > Hi Rupert, > > I have just found that related to the [FATAL] > > [FATAL] Non-resolvable parent POM for > org.apache.stanbol:stanbol-parent:0.9.0-incubating-SNAPSHOT: Could not > transfer artifact org.apache:apache:pom:9 from/to apache > (http://repository.apache.org/snapshots/): Error transferring file: > Connection refused and 'parent.relativePath' points at no local POM @ > org.apache.stanbol:stanbol-parent:0.9.0-incubating-SNAPSHOT, > /Users/ca3533/Desktop/DATAMIProjectDev/stanbol/parent/pom.xml, line 15, > column 11 > > there is something which may be not correct and it can also be the source of > the error: > I opened the file > /Users/ca3533/Desktop/DATAMIProjectDev/stanbol/parent/pom.xml and the > parent.relativePath is empty. > > <parent> > <groupId>org.apache</groupId> > <artifactId>apache</artifactId> > <version>9</version> > <relativePath> </relativePath> > </parent> > The empty relativePath is intended, because this POM file MUST BE downloaded from a remote maven server. Based on the debug level log provided by your previous logs it should be downloaded from > Downloading: http://repo1.maven.org/maven2/org/apache/apache/9/apache-9.pom > [DEBUG] Reading resolution tracking file > /Users/ca3533/.m2/repository/org/apache/apache/9/apache-9.pom.lastUpdated > [DEBUG] Writing resolution tracking file > /Users/ca3533/.m2/repository/org/apache/apache/9/apache-9.pom.lastUpdated but this does - for some reason i do not know - not work on your machine. Note that the Error: > [FATAL] Non-resolvable parent POM for > org.apache.stanbol:stanbol-parent:0.9.0-incubating-SNAPSHOT: Could not > transfer artifact org.apache:apache:pom:9 from/to apache > (http://repository.apache.org/snapshots/): Error transferring file: > Connection refused and 'parent.relativePath' points at no local POM @ > org.apache.stanbol:stanbol-parent:0.9.0-incubating-SNAPSHOT, > /Users/ca3533/Desktop/DATAMIProjectDev/stanbol/parent/pom.xml, line 15, > column 11 This basically says that the POM could not be downloaded form the http://repository.apache.org/snapshots/ - what is true, because this Repository does not contain org.apache:apache:9. However I think this execution is only printed because this repository happens to be the first in the list and the Artifact could not be found on any of the listed Repositories. This is also supported by the DEBUG level loggings that clearly show that all repositories are queried for the the mentioned artifact. Based on this observation I think the problem we need to solve is to force Maven to download "org.apache:apache:9" form "http://repo1.maven.org/maven2/". The following things might help with that 1) you can try to call "mvn -U clean" and than try to "mvn install" again. This might help because -U,--update-snapshots Forces a check for updated releases and snapshots on remote 2) you can try to manually delete the folder "/Users/ca3533/.m2/repository/org/apache/apache/9/" in your local cache the .m2 folder contains you local cache. If you delete this cache (or part of it) maven will download all missing artifacts on the next run. This can solve problems like that in case the cache somehow contain corrupted data. I hope this helps best Rupert -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
