Hello,
for my project purposes, I need to ad a jar into the test-deps/repository/plugins/ directory, so that it can be resolved once I perform the maven build and the dependency itself is detected by the Eclipse Workspace.
The problem is that I am not able to update the following files:
- artifacts.xml
- content.xml
I can only manually update artifacts.xml because it's simple.
I've read the documentation and bumped into this command line from p2 documentation here:
eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
-metadataRepository file:/<some location>/repository
-artifactRepository file:/<some location>/repository
-source /<location with a plugin and feature directory>
-configs gtk.linux.x86
-compress
-publishArtifacts
I also tried this one, but the result is still the same:
java -jar <eclipseDirectory>/plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
-metadataRepository file:/<yourLocalRepo>
-artifactRepository file:/<yourLocalRepo>
-source <location with a sub-directory named plugin and/or features >
-publishArtifacts
References: stackoverflow.
Iget the following error:
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Could you please help me to solve this?