aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Trying to compile Maven with clean parameter and got exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Trying to compile Maven with clean parameter and got exception" Watch "Trying to compile Maven with clean parameter and got exception" New topic
Author

Trying to compile Maven with clean parameter and got exception

Thakur Sachin Singh
Ranch Hand

Joined: Jun 15, 2010
Posts: 232

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.


SCJP 6- 91%, IBM DB2, IBM RAD Certified
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2377
    
  28

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

Joined: Jun 15, 2010
Posts: 232

Thanks for the information. I have received errors related to Parent POM(see image file). Can you guide me how I can fix this?



[Thumbnail for errors.PNG]

Thakur Sachin Singh
Ranch Hand

Joined: Jun 15, 2010
Posts: 232


for more info: I also have another thread related to these errors. Please check Here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to compile Maven with clean parameter and got exception