23

Due to being tasked with moving our java builds from a manual build process to Teamcity, I've been checking out IntelliJ, Maven and Ant for builds. Of the 3 due to various reasons, I've decided to go with Ant, however after converting one of the projects to a Maven project, I now cannot 'undo' this action. Finding help anywhere has been pointless as it appears it's popular enough any time someone asks a similar question they get redirected on how to 'continue' using Maven instead.

Jeremy Little
  • 354
  • 1
  • 3
  • 11

1 Answers1

47

Right Click Project -> Maven -> Disable Maven Nature

Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
  • And if there is no Maven dropdown item, what then? – Jeremy Little Oct 09 '13 at 21:12
  • Answered my own question there - re-convert to Maven then disable as you suggested. Thank you. – Jeremy Little Oct 09 '13 at 21:14
  • Then maven is not enabled for that project. I just tested it on one of my projects. If you disable maven the maven nature then the Maven menu will no longer be available for the project. – Chris Hinshaw Oct 09 '13 at 21:15
  • Does the project icon folder have the small M above it to signify that it is a maven project? Also are you using kepler, juno, or another version of eclipse? – Chris Hinshaw Oct 09 '13 at 21:16
  • I got it. I had to re-convert to Maven and then disable as you suggested above. My base problem was any time I attempted to build or run I got a could not find POM file error (paraphrased) and couldn't get it to go away. Maybe I will take another look at Maven in the future but for now it's overkill for what we're trying to do as well as being, in my opinion, pretty invasive for what we needed. – Jeremy Little Oct 09 '13 at 21:36
  • 1
    How can you stop Maven from hijacking the JUnit run configuration classpath even after disabling the Maven project nature? http://stackoverflow.com/questions/28954222/how-to-force-eclipse-junit-run-configuration-to-use-project-default-classpath – Jeff Evans Mar 12 '15 at 05:00
  • You might need to delete the junit test configuration and then run it again. Right click unit test you want to run-> run as -> run configurations. Then delete the generated run configuration for that unit test. It will be recreated the next time you run it. That would be my guess – Chris Hinshaw Mar 12 '15 at 13:44
  • Is there a way to re-enable Maven after clicking 'Disable Maven Nature' ? Seems menu-item gets removed and there is no way back. – Oysio May 21 '19 at 12:49
  • @Oysio I have not been using eclipse for quite some time now. You might need to open a new question for this one. – Chris Hinshaw May 21 '19 at 13:52