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 2.x Eclipse Plugin
  • MECLIPSE-188

Support for Maven2 project nature

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: M2Eclipse support
  • Labels:
    None

Description

Since eclipse has nice plugin http://m2eclipse.codehaus.org/ for maven2 projects, you should provide this type of project nature
below there are .project and .classpath files which has the declaration of m2 nature

przemek@przemek ~/mag/modules/web $ cat .project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mag-web</name>
<comment>Some project</comment>
<projects>
<project>mag-common</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
</projectDescription>

przemek@przemek ~/mag/modules/web $ cat .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="src" path="/mag-common"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

This feature would be very handy, because now in package explorer in eclipse there is a lot of dependencies shown in project, using m2 plugin they are all covered in library. Maybe you should provide some configuration option like
<configuration>
<useMavenPlugin>true</useMavenPlugin>
</configuration>
which would be false for default, so one no using this plugin won't feel the difference.

Issue Links

duplicates

New Feature - A new feature of the product, which has yet to be developed. MECLIPSE-78 create eclipse projects which are m2eclipse ready

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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
David Rabinowitz added a comment - 15/Jan/07 2:15 AM

There is already an issue on this subject, http://jira.codehaus.org/browse/MECLIPSE-78.

Show
David Rabinowitz added a comment - 15/Jan/07 2:15 AM There is already an issue on this subject, http://jira.codehaus.org/browse/MECLIPSE-78.

People

  • Assignee:
    Unassigned
    Reporter:
    Przemek Kubicki
Vote (1)
Watch (1)

Dates

  • Created:
    07/Nov/06 1:12 PM
    Updated:
    29/Nov/07 9:50 PM
  • 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.