[jbosstools-dev] m2eclipse-mavenarchiver writes pom.xml/pom.properties too aggressively

Fred Bricon fbricon at redhat.com
Tue Jan 21 10:40:26 EST 2014


Guys,

thanks to Snjeza's patch that prevents unnecessary pom.* modifications, 
you can try m2eclipse-mavenarchiver 0.16.0 from the following p2 repo :

http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.16.0/N/0.16.0.201401211452/

Fred

Le 04/01/2014 19:21, Snjezana Peco a écrit :
> Hi,
>
> The AbstractMavenArchiverConfigurator.writePom method is called 
> whenever the Maven builder is called. The method writes 
> pom.xml/pom.properties archive files no matter if pom.xml has been 
> changed or not.
> M2e-wtp includes the Maven Archiver configurator into different 
> projects (war, ear, ejb, rar...)
> Since the Maven builder can often be called when there are a lot of 
> maven projects in the workspace (the wildfly distribution, for 
> instance), this issue will decrease performance.
> It will also unnecessarily call other builders (CDI, KB, Arquillian 
> ...). If those builders are created correctly, they won't do anything, 
> but performance will be decreased because the following useless 
> actions have been run:
>
> - Maven Archiver writes pom.xml/pom.properties
> - Eclipse runs other builders
> - builders search a resource delta
>
> The https://github.com/tesla/m2eclipse-mavenarchiver/pull/2 PR fixes 
> the issue by calling the writePom method only if pom.xml is changed or 
> if there isn't pom.xml in the output folder.
>
> I have created the PR against the 
> https://github.com/tesla/m2eclipse-mavenarchiver repository. Not sure 
> if it is a valid repository for the m2eclipse-mavenarchiver plugin.
>
> Snjeza
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
>



More information about the jbosstools-dev mailing list