File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to compile Maven with clean parameter and got exception

 
Thakur Sachin Singh
Ranch Hand
Posts: 242
Hibernate Java Spring
  • 0
  • 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
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • 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: 242
Hibernate Java Spring
  • 0
  • 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
parent and artifact errors
[Thumbnail for errors.PNG]
 
Thakur Sachin Singh
Ranch Hand
Posts: 242
Hibernate Java Spring
  • 0
  • 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic