jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Eclipse Plugin
  • MPECLIPSE-3

Eclipse plugin external-tools goal doesn't work with eclipse 2.1

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    maven clean.launch
    29/Jun/03 11:10 PM
    0.8 kB
    dion gillard

Issue Links

is depended upon by

Task - A task that needs to be done. MAVEN-401 Release maven-b10

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
dion gillard added a comment - 29/Jun/03 11:09 PM

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>

Show
dion gillard added a comment - 29/Jun/03 11:09 PM 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>
Hide
Permalink
dion gillard added a comment - 29/Jun/03 11:10 PM

We'll need something like this for each goal we want added to the external tools entry

Show
dion gillard added a comment - 29/Jun/03 11:10 PM We'll need something like this for each goal we want added to the external tools entry
Hide
Permalink
dion gillard added a comment - 30/Jun/03 1:19 AM

Added eclipse:external-tools-21 goal

Show
dion gillard added a comment - 30/Jun/03 1:19 AM Added eclipse:external-tools-21 goal

People

  • Assignee:
    dion gillard
    Reporter:
    dion gillard
Vote (0)
Watch (0)

Dates

  • Created:
    22/Jun/03 10:19 PM
    Updated:
    30/Nov/03 9:09 PM
    Resolved:
    30/Jun/03 1:19 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.