You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Maven core developers have stopped maintaining the maven-eclipse-plugin, and shifted all their attention to M2Eclipse.

It is possible to get Eclipse to use the standard CXF settings, complete with checkstyle and PMD, if you are willing to install and configure enough things.

  1. Start with Eclipse Helios
  2. Edit your config.ini (on MacOSX, perhaps eclipse.ini) to configure at least 512m of PermGen space. We hope to reduce this requirement.
  3. Setup the Eclipse workspace by importing the predefined CXF settings.
    1. Under Preferences > Java > Code Style > Code Templates, import etc/eclipse/codetemplates.xml.
    2. Under Preferences > Java > Code Style > Clean Up, import /etc/eclipse/CXFCleanUp.xml.
    3. Under Preferences > Java > Code Style > Formatter, import /etc/eclipse/CXFCodeFormatter.xml.
    4. Under Preferences > Java > Code Style > Organize Imports, import /etc/eclipse/CXF.importorder.
  4. Install M2Eclipse (at least 0.12) itself. Sonatype publishes instructions here.
  5. Install the Eclipse PMD and Eclipse Checkstyle Plug-ins from here and here , respectively.
  6. Install Benson Margulies' Checkstyle configurator from here.
    1. NOTE: While there is also a PMD configurator available, the CXF build uses a custom rule implementation class.  The Eclipse PMD plug-in cannot locate this custom rule dynamically.  Until a working solution exists, using the PMD configurator is best avoided as it will result in project import failures.
  7. Use the 'import' option from the m2eclipse menu, and stand back.
  • No labels