Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] How to add maven extensions in M2Eclipse

Thanks, Igor.

Actually I could add one extension by hacking M2Eclipse. I added a jar file into org.maven.ide.eclipse.maven_embedder_0.12.1.201206282159\libs and added an entry to Bundle-Classpath in org.maven.ide.eclipse.maven_embedder_0.12.1.201206282159\META-INF\MANIFEST.MF.  But this is a deprecated way.

Finally I implemented my functionality by implementing an extension point 'org.maven.ide.eclipse.mavencomponentContributor'. I binded a new MavenExecutionRequestPopulator which set an execution listener to the maven execution requst so that I could track the duration of maven build in M2Eclipse.

Thanks,
Chandler
________________________________________
From: m2e-users-bounces@xxxxxxxxxxx [m2e-users-bounces@xxxxxxxxxxx] on behalf of Zhang, Xueqian [xueqzhang@xxxxxxxx]
Sent: Friday, August 03, 2012 2:39 PM
To: m2e-users@xxxxxxxxxxx
Subject: [m2e-users] How to add maven extensions in M2Eclipse

Hi there,

I have a maven extension, which works if I put it under <M2_HOME>/lib/ext . I developed a similar extension as https://github.com/etesla/tesla-profiler
However, how can I make it work in M2Eclipse? It seems I can add my jar file to Bundle-Classpath in  /home/chandler/Juno/plugins/org.eclipse.m2e.maven.runtime_1.1.0.20120529-1956/META-INF/MANIFEST.MF. But this is ugly. Is there an elegant way to do this?

Thanks,
Chandler
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top