This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 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: 2415
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Trying to compile Maven with clean parameter and got exception