Accueil > Non classé > m2eclipse tips

m2eclipse tips

Thanks to Maven: The Definitive Guide, I was able to answer some questions I had about m2eclipse as well as learn more of it.

  • When you put a plugin in the build part of the pom, how comes some are running on each source modification and others not ?
    The reason is simple : m2eclipse runs by default the plugins in the process-resources phase. Furthermore, this is set up in the Preferences/Maven part of eclipse (but the settings affects all projects, which was a bit overkill for us)?

  • One can ask m2eclipse to display the projects’ maven version, through Preferences/General/Appearance/Label Decorations and then check « Maven Version Decorator ». Comes handy when having to update different versions of different plugins.

  • Last but not least, the pom editor « Dependency hierarchy » tab is in fact pretty useful :$
    Before I was looking at the « Maven Dependencies » folder to figure out what was there, but in fact this tab displays it nicely.
    Two lists are shown there : « Dependency Hierarchy » and « Resolved dependencies ». The first one allows to figure out what was rejected (and from where in the dependencies), the second one shows what is in.
    A search is available and run on both lists. So if you wonder about spring dependencies issues, just put spring in the search field, and you all artifact ids containing spring are highlighted.

Hope it helps !

Étiquettes : , ,
  1. août 21, 2009 à 6:36

    Currently i try to implement a eclipse-plugin which can provider « maven-informations » to the eclipse-template-system. It should be possible to define such a javadoc-header: « @since ${pomVersion} ». Yesterday i got the template-resolver running, now i’m try to reuse the m2eclipse to get the current version (i will not try to parse the pom.xml by myself ;))

  2. Joseph Pachod
    août 31, 2009 à 8:34

    Back from holidays and.. nice idea and implementation ! Hopefully it’ll go into m2eclipse 😀

  1. No trackbacks yet.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:


Vous commentez à l'aide de votre compte Déconnexion /  Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )


Connexion à %s

%d blogueurs aiment cette page :