Maven 1.x Eclipse Plugin

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/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.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: