MyEclipse: MyEclipse 8 Maven Project Doesn't Work With Ant

phillips1021 - Feb 12, 2010 - 07:42 PM
Post subject: MyEclipse 8 Maven Project Doesn't Work With Ant
I have a project in MyEclipse 8 that uses Maven from within Ant. This project builds fine on the command line using Ant. This project also built fine using Ant in MyEclipse 7.

Using the same Ant target in MyEclipse 8 causes this error:

Unsupported launch configuratio type org.eclipse.ant.AntLaunchConfigurationType

If I disable the Maven4MyEclipse dependency (right click on project name select Maven4MyEclipse - Select Disable dependency management) then the project builds just fine using Ant within MyEclipse 8.

I can provide you a MyEclipse example project for your research into this issue.

There is a known bug in m2eclipse (see: http://jira.codehaus.org/browse/MNGECLIPSE-989) that can cause this problem. Is MyEclipse 8 using that version of m2eclipse?

Bruce Phillips
University of Kansas
support-shalini - Feb 15, 2010 - 11:34 AM
Post subject: RE: MyEclipse 8 Maven Project Doesn
Bruce,
Can you try the workaround given in the following link -
http://old.nabble.com/Bug:-can%27t-launch-Ant-td20059445.html
maven4myeclise is based on m2eclipse
You can also refer to the following posts for further reference -
1. http://www.myeclipseide.com/PNphpBB2-printview-t-21194-start-0.html
2. http://www.myeclipseide.org/PNphpBB2-viewtopic-t-21358.html
phillips1021 - Feb 15, 2010 - 07:52 PM
Post subject: Deleting the Launch File Worked
Deleting the launch file in

[workspace-folder]\.metadata\.plugins\org.eclipse.debug.core\.launches

fixed the problem.

Thank you for the assistance.
support-shalini - Feb 16, 2010 - 03:55 AM
Post subject: RE: Deleting the Launch File Worked
Bruce,
Good to know that it worked..
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits