Skip to main content

"mvn install" => Error transferring file: oss.sonatype.org and 'parent.relativePath' points at wrong local POM

3 replies [Last post]
lolveley
Offline
Joined: 2008-12-16
Points: 0

hello,

when I try to compile swingx I get an error message from maven:

******************************************************************************************

[olivier@fedora ~]$ cd Documents/eclipse/SMS/SwingX/

[olivier@fedora SwingX]$ ls

checkstyle.xml lib swingx-action swingx-common swingx-painters www

COPYING pom.xml swingx-all swingx-core swingx-plaf

docs README.txt swingx-autocomplete swingx-demos swingx-testsupport

header.regex styles swingx-beaninfo swingx-graphics swingx-unused

[olivier@fedora SwingX]$ mvn install

[INFO] Scanning for projects...

Downloading: http://oss.sonatype.org/content/repositories/swinglabs-releases/org/sona...

Downloading: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/4/oss-parent-4...

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR] The project org.swinglabs:swingx-project:1.6.3-SNAPSHOT (/home/olivier/Documents/eclipse/SMS/SwingX/pom.xml) has 1 error

[ERROR] Non-resolvable parent POM: Could not transfer artifact org.sonatype.oss:oss-parent:pom:4 from/to swinglabs-releases (http://oss.sonatype.org/content/repositories/swinglabs-releases/): Error transferring file: oss.sonatype.org and 'parent.relativePath' points at wrong local POM @ line 3, column 11: Unknown host oss.sonatype.org -> [Help 2]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

******************************************************************************************

I don't understand what is the problem.

can you help me?

olivier

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

I have not experienced that issue.  What version of Maven are you using?

Karl

lolveley
Offline
Joined: 2008-12-16
Points: 0

hello

I tried 2 ways :

-from eclipse indigo SR1, with the plugin m2e v1.0

-from the command line, version 3.0.3

both lead to problems.

the pom.xml of the swingx project contains:

*************************************************************

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>4</version>
</parent>

*************************************************************

this seems to cause the error, but I don't know why.

kschaefe
Offline
Joined: 2006-06-08
Points: 0

This configuration has changed to take advantage of the java.net Maven central sync.  Please try with the updated POMs.

Karl