Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Hack m2e-core jar into a standard Eclipse install

Hello,

To test some developments in m2e-core, I was used to directly hack a .class into relevant jars. It seems that m2e jars are now signed. I tried removing the signature files, and the md5 from MANIFEST.MF, but m2e-core jar (i.e. the one I'm trying to hack) is not loading at all.

This process seems to work with Eclipse 2020-09 (and previous versions), but not anymore with Eclipse 2020-12.

I also tried replacing the jar in /plugins with a SNAPSHOT jar produced by a proper 'mvn clean verify' (which seems NOT to sign the jar), but without success:

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.m2e.core.ui [252]
  Unresolved requirement: Require-Bundle: org.eclipse.m2e.core; bundle-version="[1.16.0,2.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1779)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

The behavior is the same when I hacked a class, but kelt the signature files ( META-INF/*.RSA , META-INF/*.SF )

How can I easily test a small change over a class of m2e-core into a standard Eclipse install?

Thanks
--
Benoit Lacelle
+33 6 78 83 92 66

Back to the top