Maven 2.x Eclipse Plugin

Ability to add other workspace configuration similar to add-maven-repo goal

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    xp
  • Number of attachments :
    1

Description

add ability to configure code slyle, jvm, warning,etc

We can create a new goal like eclipse:configure-workspace and merge add-maven-repo into it.

We will need to a complex class for injection. This complex class will have the following property

String workspaceDirectory; // if given, will trigger add-maven-repo

String styleFile; // if given, will trigger the settup of source format style file

etc,

This will allow us to preconfigure eclispe configuration in the parent pom, and there for developers in a team will have the
same eclipse setup, rather manually configure it.

WDYT?

Issue Links

Activity

Hide
Dan Tran added a comment -

to configure the code slyle in file

.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs

set the following properties:

  • formatter_profile=_<profile_name> profile_name can be found the the slyle file, profile element, name attribute
  • org.eclipse.jdt.ui.formatterprofiles=<the content of the slyle file>

will find some time to code this up

Show
Dan Tran added a comment - to configure the code slyle in file .metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs set the following properties:
  • formatter_profile=_<profile_name> profile_name can be found the the slyle file, profile element, name attribute
  • org.eclipse.jdt.ui.formatterprofiles=<the content of the slyle file>
will find some time to code this up
Hide
Dan Tran added a comment -

The attached patch introduces eclipse:configure-workspace mojo which is the replacement of eclipse:add-maven-repo in addition to ability to load a eclipse code style file via URL into a workspace.

Test cases and update docs are included as well

Please review.

Thanks

Show
Dan Tran added a comment - The attached patch introduces eclipse:configure-workspace mojo which is the replacement of eclipse:add-maven-repo in addition to ability to load a eclipse code style file via URL into a workspace. Test cases and update docs are included as well Please review. Thanks
Hide
Dan Tran added a comment -

committed at rev 556442 the attached patch, as well as the fix for ECLIPSE-296. Tested the build with both windows and solaris platforms.

Show
Dan Tran added a comment - committed at rev 556442 the attached patch, as well as the fix for ECLIPSE-296. Tested the build with both windows and solaris platforms.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
2d
Time Spent - 2 days