Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
Description
I'm running Maven with Eclipse and found the eclipse:external-tools goal in maven's eclipse plugin that is supposed to automatically create external tool entries in eclipse for maven. When properly set up and executed, an externaltools.xml is placed in eclipse's workspace\.metadata\.plugins\org.eclipse.ui.externaltools directory but this doesn't seem to be enough for eclipse. I suspect that this used to work in an earlier version of eclipse, but that the interface has since changed and this particular goal hasn't been updated to reflect the changes made in eclipse.
I've browsed the mailing list archive to no avail trying to figure this out. Any suggestions? Is this supposed to work in the current eclipse release? (I'm running Eclipse 2.1.0).
Thanks!
t
–
Thomas Burns
tbaccount@burnskids.com
Issue Links
- is depended upon by
-
MAVEN-401
Release maven-b10
-
It appears that eclipse 2.1 stores this information differently:
it looks like it goes in ${maven.eclipse.workspace}\.metadata\.plugins\org.eclipse.debug.core\.launches\${name}.launch
where name is the name of the tool, e.g. maven clean.
Here's a sample file:
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<stringAttribute
key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-e -p ${resource_loc} clean"/>
<stringAttribute
key="org.eclipse.ui.externaltools.ATTR_REFRESH_SCOPE" value="${project}"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute
key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${container_loc}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="c:\Program Files\maven\bin\maven.bat"/>
</launchConfiguration>