I've run into the same issue.

In my case it seems to only occur if I close/reopen a project in eclipse, or delete then recreate a project with the same name.

From the eclipse error log:

!SESSION 2008-10-13 10:20:59.094 -----------------------------------------------
        eclipse.buildId=M20080911-1700
        java.version=1.5.0_16
        java.vendor=Apple Inc.
        BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -keyring /Users/sean/.eclipse_keyring - showlocation Command-line arguments: -os macosx -ws carbon -arch x86 -keyring / Users/sean/.eclipse_keyring -consoleLog -showlocation

        !ENTRY org.maven.ide.eclipse 4 0 2008-10-13 11:00:25.178
!MESSAGE Unsupported launch configuratio type org.eclipse.ant.AntLaunchConfigurationType



This appears to be caused by the

org.eclipse.jdt.launching.CLASSPATH_PROVIDER

and

org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER

entries in this file:

<workspace_dir>/.plugins/org.eclipse.debug.core/.launches/ <project_name> <ant_build_filename> [<ant_task_name>].launch

Before closing the project (when running the ant task works correctly) they are set to

<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>

After closing/reopening/recreating the project (when running the ant task results in the error) they are set to

<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.classpathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.sourcepathProvider"/>

As a workaround (and as I don't have any task-specific settings) simply deleting the .launch file and letting eclipse recreate it has worked for me.

Sean.

On 19 Oct 2008, at 20:33, Chris wrote:

I've upgraded some Maven components, and now I can't launch Ant scripts from within Eclipse. When I click build.xml and right-click Run As/Ant Build, I get the error message:

Unsupported launch configuratio type org.eclipse.ant.AntLaunchConfigurationType

(note the misspelling)

A bit of googling found the offending code here:

http://jira.codehaus.org/secure/attachment/37121/m2eclipse-MNGECLIPSE-917.patch

and here:

http://svn.sonatype.org/m2eclipse/tags/0.9.1.200803311600/org.maven.ide.eclipse/src/org/maven/ide/eclipse/launch/MavenRuntimeClasspathProvider.java

Looks like an m2eclipse error. I just upgraded to 0.9.7, but that did not fix the issue.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to