Ok, let me try a few things and I’ll come back with some suggestions.
Greg
Greg,
Not really. My thought was put everything on the class path and wire it up manually. However, if the OSGi needs to be there, then as long as it runs only as a dependency and not a requirement for my program, I think that is fine.
I basically just want to use PTP completely outside of an OSGi environment, along with some other pieces in ICE II.
Jay
So you want to pull the OSGi framework in as a dependency?
Greg
Greg,
Yes, I want to use it headlessly. However, I want to do it from a non-OSGi project. I will have no way to pull the feature into my project (at least no Tycho-ish way).
The ideal way to do this would be to pull it in as a standard Maven dependency.
Jay
Jay Jay Billings Group Leader, Scientific Computing and Software Engineering, Neutron Scattering Division, and
Acting Group Leader, Research Software Engineering, Computer Science and Mathematics Division Oak Ridge National Laboratory Twitter Handle: @jayjaybillings
Jay,
I just want to clarify what you want to do, which is use the o.e.remote plugins headlessly. Is that correct? The simplest way to do this would be if I create a feature that includes only the non-UI components. Creating a fat jar or publishing to maven central, then using the p2-maven-plugin to OSGi-ify it, seems the long way to get around the problem.
Let me know... Greg
I've been trying to create fat jars for ICE and PTP, but I've had little success. I was able to get a single large zip of everything using the Maven shaded plugin and the Tycho repository plugin:
<groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-repository-plugin</artifactId> <version>${tycho-version}</version> <!-- <createArtifactRepository>false</createArtifactRepository>--> <includeAllDependencies>true</includeAllDependencies> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <!-- put your configurations here -->
I also tried the spring boot Maven plugin as Mattias Sohn suggested here
but that failed because I couldn't specify a main class. That is, it was trying to create an executable jar and I just want a library jar.
I tried to look at the p2-maven-plugin last night,
I fell asleep and didn't get very far, but I think this may do it. I remember some people using this a few years back.
Anyway, I'm just typing this up since Greg has agreed to look at this for PTP. I will play with it some more as well. Any other thoughts or suggestions are welcome too, of course!
Jay
_______________________________________________ ice-dev mailing list ice-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ice-dev
_______________________________________________ice-dev mailing listice-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/ice-dev
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ice-dev
-- Jay Jay Billings Twitter Handle: @jayjaybillings
_______________________________________________ ice-dev mailing list ice-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ice-dev
|