Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to compile Maven with clean parameter and got exception  RSS feed

 
Thakur Sachin Singh
Ranch Hand
Posts: 248
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to compile Maven with clean parameter:

C:> mvn clean


and got the exception below:

Cannot execute mojo: clean. it requires a project with an existing pom.xml, but the buid is not using one.

can anyone tell me how I can associate my existing project to maven.
 
Jayesh A Lalwani
Rancher
Posts: 2762
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to the foilder that contains the pom file and run mvn clean. DOn't run mvn clean from C:
 
Thakur Sachin Singh
Ranch Hand
Posts: 248
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the information. I have received errors related to Parent POM(see image file). Can you guide me how I can fix this?
errors.PNG
[Thumbnail for errors.PNG]
parent and artifact errors
 
Thakur Sachin Singh
Ranch Hand
Posts: 248
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

for more info: I also have another thread related to these errors. Please check Here
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!