Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Maven/M2E and eclipse projects.

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 <nhrdls@xxxxxxxxx> 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
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top