Cannot find parent: org.sonatype.oss:oss-parent for project POM
up vote
1
down vote
favorite
I executed this command
mvn compile exec:java -Dexec.classpathScope=compile-Dexec.mainClass=trident.MyClass
and got this error
[INFO] Error
building POM (may not be this project's POM).
Project ID:org.clojure:clojure:jar:1.4.0
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
org.clojure:clojure:jar:1.4.0 for project org.clojure:clojure:jar:1.4.0
Here Pom file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<repository>
<id>github-releases</id>
<url>http://oss.sonatype.org/content/repositories/github-
releases/</url>
</repository>
</repositories>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin </artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</project>
maven pom.xml
add a comment |
up vote
1
down vote
favorite
I executed this command
mvn compile exec:java -Dexec.classpathScope=compile-Dexec.mainClass=trident.MyClass
and got this error
[INFO] Error
building POM (may not be this project's POM).
Project ID:org.clojure:clojure:jar:1.4.0
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
org.clojure:clojure:jar:1.4.0 for project org.clojure:clojure:jar:1.4.0
Here Pom file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<repository>
<id>github-releases</id>
<url>http://oss.sonatype.org/content/repositories/github-
releases/</url>
</repository>
</repositories>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin </artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</project>
maven pom.xml
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I executed this command
mvn compile exec:java -Dexec.classpathScope=compile-Dexec.mainClass=trident.MyClass
and got this error
[INFO] Error
building POM (may not be this project's POM).
Project ID:org.clojure:clojure:jar:1.4.0
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
org.clojure:clojure:jar:1.4.0 for project org.clojure:clojure:jar:1.4.0
Here Pom file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<repository>
<id>github-releases</id>
<url>http://oss.sonatype.org/content/repositories/github-
releases/</url>
</repository>
</repositories>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin </artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</project>
maven pom.xml
I executed this command
mvn compile exec:java -Dexec.classpathScope=compile-Dexec.mainClass=trident.MyClass
and got this error
[INFO] Error
building POM (may not be this project's POM).
Project ID:org.clojure:clojure:jar:1.4.0
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
org.clojure:clojure:jar:1.4.0 for project org.clojure:clojure:jar:1.4.0
Here Pom file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<repository>
<id>github-releases</id>
<url>http://oss.sonatype.org/content/repositories/github-
releases/</url>
</repository>
</repositories>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin </artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</project>
maven pom.xml
maven pom.xml
edited Nov 11 at 13:57
Cœur
17.2k9102141
17.2k9102141
asked Aug 20 '14 at 15:00
user3188912
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48
add a comment |
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
So I ran into a the same error today, although the project I got the error from is different:
Reason: Cannot find parent: org.sonatype.oss:oss-parent
I realize this post is 5 months old, but I'm posting the solution that worked for me in case others stumble on to the same Stack Overflow link.
So the problem is not with your org.clojure:clojure:jar:1.4.0 Project or it's POM file. It's with the parent project, oss.sonatype.pom. In my case, a 403 was returned when my local oss.sonatype-.pom was created. These were the contents:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Now, when Maven is trying to build your projects; org.clojure will request oss.sonatype POM & when it cannot read oss.sonatype.pom as a valid POM file; it will throw the error you're seeing:
[INFO] Error building POM (may not be this project's POM).
Project ID:<...>
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
After a bit of reading up, it seems that recently these repositories made changes to their URLs (Moving from HTTP to HTTPS), so if a call was made by any other POM or build for oss.sonatype over HTTP, the 403 HTML file was returned.
So the quick workaround is to head over to Maven Central, & get the required version of the oss.sonatype.pom file from their repositories & replace your local version with it. Then your Maven build won't fail on 'parent not found'.
The fix would be to test your URLs to check which URL(s) are not valid anymore.
Hope this helps.
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
So I ran into a the same error today, although the project I got the error from is different:
Reason: Cannot find parent: org.sonatype.oss:oss-parent
I realize this post is 5 months old, but I'm posting the solution that worked for me in case others stumble on to the same Stack Overflow link.
So the problem is not with your org.clojure:clojure:jar:1.4.0 Project or it's POM file. It's with the parent project, oss.sonatype.pom. In my case, a 403 was returned when my local oss.sonatype-.pom was created. These were the contents:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Now, when Maven is trying to build your projects; org.clojure will request oss.sonatype POM & when it cannot read oss.sonatype.pom as a valid POM file; it will throw the error you're seeing:
[INFO] Error building POM (may not be this project's POM).
Project ID:<...>
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
After a bit of reading up, it seems that recently these repositories made changes to their URLs (Moving from HTTP to HTTPS), so if a call was made by any other POM or build for oss.sonatype over HTTP, the 403 HTML file was returned.
So the quick workaround is to head over to Maven Central, & get the required version of the oss.sonatype.pom file from their repositories & replace your local version with it. Then your Maven build won't fail on 'parent not found'.
The fix would be to test your URLs to check which URL(s) are not valid anymore.
Hope this helps.
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
add a comment |
up vote
2
down vote
So I ran into a the same error today, although the project I got the error from is different:
Reason: Cannot find parent: org.sonatype.oss:oss-parent
I realize this post is 5 months old, but I'm posting the solution that worked for me in case others stumble on to the same Stack Overflow link.
So the problem is not with your org.clojure:clojure:jar:1.4.0 Project or it's POM file. It's with the parent project, oss.sonatype.pom. In my case, a 403 was returned when my local oss.sonatype-.pom was created. These were the contents:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Now, when Maven is trying to build your projects; org.clojure will request oss.sonatype POM & when it cannot read oss.sonatype.pom as a valid POM file; it will throw the error you're seeing:
[INFO] Error building POM (may not be this project's POM).
Project ID:<...>
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
After a bit of reading up, it seems that recently these repositories made changes to their URLs (Moving from HTTP to HTTPS), so if a call was made by any other POM or build for oss.sonatype over HTTP, the 403 HTML file was returned.
So the quick workaround is to head over to Maven Central, & get the required version of the oss.sonatype.pom file from their repositories & replace your local version with it. Then your Maven build won't fail on 'parent not found'.
The fix would be to test your URLs to check which URL(s) are not valid anymore.
Hope this helps.
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
add a comment |
up vote
2
down vote
up vote
2
down vote
So I ran into a the same error today, although the project I got the error from is different:
Reason: Cannot find parent: org.sonatype.oss:oss-parent
I realize this post is 5 months old, but I'm posting the solution that worked for me in case others stumble on to the same Stack Overflow link.
So the problem is not with your org.clojure:clojure:jar:1.4.0 Project or it's POM file. It's with the parent project, oss.sonatype.pom. In my case, a 403 was returned when my local oss.sonatype-.pom was created. These were the contents:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Now, when Maven is trying to build your projects; org.clojure will request oss.sonatype POM & when it cannot read oss.sonatype.pom as a valid POM file; it will throw the error you're seeing:
[INFO] Error building POM (may not be this project's POM).
Project ID:<...>
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
After a bit of reading up, it seems that recently these repositories made changes to their URLs (Moving from HTTP to HTTPS), so if a call was made by any other POM or build for oss.sonatype over HTTP, the 403 HTML file was returned.
So the quick workaround is to head over to Maven Central, & get the required version of the oss.sonatype.pom file from their repositories & replace your local version with it. Then your Maven build won't fail on 'parent not found'.
The fix would be to test your URLs to check which URL(s) are not valid anymore.
Hope this helps.
So I ran into a the same error today, although the project I got the error from is different:
Reason: Cannot find parent: org.sonatype.oss:oss-parent
I realize this post is 5 months old, but I'm posting the solution that worked for me in case others stumble on to the same Stack Overflow link.
So the problem is not with your org.clojure:clojure:jar:1.4.0 Project or it's POM file. It's with the parent project, oss.sonatype.pom. In my case, a 403 was returned when my local oss.sonatype-.pom was created. These were the contents:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Now, when Maven is trying to build your projects; org.clojure will request oss.sonatype POM & when it cannot read oss.sonatype.pom as a valid POM file; it will throw the error you're seeing:
[INFO] Error building POM (may not be this project's POM).
Project ID:<...>
Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
After a bit of reading up, it seems that recently these repositories made changes to their URLs (Moving from HTTP to HTTPS), so if a call was made by any other POM or build for oss.sonatype over HTTP, the 403 HTML file was returned.
So the quick workaround is to head over to Maven Central, & get the required version of the oss.sonatype.pom file from their repositories & replace your local version with it. Then your Maven build won't fail on 'parent not found'.
The fix would be to test your URLs to check which URL(s) are not valid anymore.
Hope this helps.
answered Jan 16 '15 at 23:12
Neil
196420
196420
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
add a comment |
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Thanks for replying
– user3188912
Jan 17 '15 at 12:46
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
Did you use a similar method to resolve your problem?
– Neil
Jan 17 '15 at 16:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
i forgot how i solved it unfortunately
– user3188912
Jan 17 '15 at 17:35
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25408108%2fcannot-find-parent-org-sonatype-ossoss-parent-for-project-pom%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I dont see a version for oss-parent which is available in Maven Central. Please add you pom file.
– khmarbaise
Aug 20 '14 at 15:01
i can't post more as i got this message "it looks like your post is mostly code"
– user3188912
Aug 20 '14 at 16:48