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>









share|improve this question























  • 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














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>









share|improve this question























  • 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












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>









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
















  • 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












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.






share|improve this answer




















  • 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










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















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
























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.






share|improve this answer




















  • 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














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.






share|improve this answer




















  • 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












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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto