[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-dev] Hack m2e-core jar into a standard Eclipse install
|
Hmm, I'm on the latest master and I still get the same error.
Hi,
Seems like your local version in your working copy is older than the latest baseline version. I this base line version comes from release. This seems to be a enforcer validation i think. Try disabling enforcer rules or check the tycho page for cli flags.
I suggest to try building the latest master. It should work.
Best regards,
Gayan
So I tried to modify the dependency that was causing my previous error and now I get this error;
[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:1.6.0:compare-version-with-baselines (check-no-version-regression) on project org.eclipse.m2e.core: Version have moved backwards for (org.eclipse.m2e.core/1.16.0.20200605-0817). Baseline has 1.17.1.20201207-1012) with delta: 0.-1.-1 -> [Help 1]
Not sure exactly how to get past this one.
Thanks a lot for the quick feedback Gregory. It looks much cleaner than editing jars, I guess the documentation should be enriched with this procedure once fixed.
For developers in a hurry, it seems possible to edit the .jar content, but the jar name has to remain the same as the original one (no clue why/how this constrains is applied). It looks weird to me that the modified jar loads even if the signature is then invalid.
So the m2e-core sources are easy to build locally. In the root of the repo there is a `buildall.sh` script that works. So after you make your changes, run the buildall.sh script and there will be a local update site created as a zip file located here:
You can point your eclipse install to this new updatesite zip file to do an update.
However, when I tried to run the buildall.sh script just now, I get this error:
So it seems there is a bug on master once the lemminx dependency was added. Maybe one of the committers can help clean that up.
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
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
--
Greg Amerson
Liferay Developer Tools
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
--
Benoit Lacelle
+33 6 78 83 92 66
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
--
Greg Amerson
Liferay Developer Tools
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev
--
Greg Amerson
Liferay Developer Tools