Maven 1.x Eclipse Plugin
  1. Maven 1.x Eclipse Plugin
  2. MPECLIPSE-102

Running 'maven:eclipse' turns CheckStyle off for the project.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Assuming project is already setup in Eclipse 3.1 (either manually or via the eclipse plugin)
      1. Install CheckStyle Eclispe plugin
      2. Turn it on for the project.
      3. Shutdown Eclipse
      4. Run maven eclipse on the project
      5. Restart Eclipse
      6. Notice CheckStyle is now turned off.

        Activity

        Hide
        fabrizio giustina added a comment -

        this is fixed in the m2 plugin (see MNG-1506). Existing natures/builders are overwritten when generating new files.
        Still open in the m1 version

        Show
        fabrizio giustina added a comment - this is fixed in the m2 plugin (see MNG-1506 ). Existing natures/builders are overwritten when generating new files. Still open in the m1 version
        Hide
        nicolas de loof added a comment -

        You simply have to set :
        maven.eclipse.projectnatures = com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
        maven.eclipse.buildcommands = com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder

        (and any other builders/nature for the plugins you like to use in Eclipse)

        Show
        nicolas de loof added a comment - You simply have to set : maven.eclipse.projectnatures = com.atlassw.tools.eclipse.checkstyle.CheckstyleNature maven.eclipse.buildcommands = com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder (and any other builders/nature for the plugins you like to use in Eclipse)
        Hide
        Jamie Bisotti added a comment -

        Since it's fixed in M2 version, can't it be fixed fairly easily in the M1 version too?

        Show
        Jamie Bisotti added a comment - Since it's fixed in M2 version, can't it be fixed fairly easily in the M1 version too?
        Hide
        Arnaud Heritier added a comment -

        There's a workaround and it's not easy to fix in maven 1 because we don't read the original file.

        Show
        Arnaud Heritier added a comment - There's a workaround and it's not easy to fix in maven 1 because we don't read the original file.
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jamie Bisotti
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: