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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 224

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: 2052
    
  22

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: 224

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: 224


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
 
Similar Threads
Strange behavior for enhanced ForLoop.
Maven build dependencies from .classpath
ant vs. maven
Trying to build with maven => package my.external.package does not exist
Maven installation and using in project without Internet conncetion