Thanks for the link, but don't think it really solves my problem. For example organize imports command in eclipse. We have set it up so that only used imports remain in the file. Right now everyone has to tinker with settings of eclipse and I was wondering if its possible to create default set of standard settings by means of project preferences when eclipse imports maven pom file and creates the project.

Regards,



On 02/09/2012 01:39 PM, Tomas R wrote:
Take a look at [1], maybe it will be helpful

1. http://maven-java-formatter-plugin.googlecode.com/svn/site/0.3.1/examples.html

On Thu, Feb 9, 2012 at 10:57 PM, Niranjan Rao <[email protected] <mailto:[email protected]>> wrote:

    We use maven/m2e/eclipse combo for our work. We start with
    importing master maven pom file in eclipse and our eclipse
    projects get created/imported. Our source control system is set up
    to ignore eclipse generated project files as we don't want to
    check in anything generated. It all works nicely and not problems
    on this end.

    What we would like to do is set up some common eclipse preferences
    for all the projects to ensure standard coding style across all
    developers and follow java best practices. Example is re-organize
    imports setting in eclipse, reformat code when file is saved, and
    standard line widths (we prefer 120 characters as against standard
    80 eclipse default) to state the few.

    It seems like m2e can be configured to generate some of these
    settings using project configurator, but could not find any examples.

    Any thoughts how we can achieve this functionality? It would be
    much nicer to have project specific entries generated from maven
    pom configuration and everyone will share same settings automatically.

    I don't mind writing some code for the m2extension, but I am not
    familiar with eclipse guts and don't know what needs to be done.

    With many thanks in advance,
    _______________________________________________
    m2e-users mailing list
    [email protected] <mailto:[email protected]>
    https://dev.eclipse.org/mailman/listinfo/m2e-users




_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to