[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Use p2 resolver with packaging"jar"?
|
Feel free to open a new bug or comment on 364983. In any case, there is
no set date for this enhancement, so consider contributing a patch.
--
Regards,
Igor
On 12-02-24 8:15 AM, Stephan Herrmann wrote:
Hi Igor,
thanks for your answer,
-------------------
Do you need to inject OSGi/P2 dependencies in your jar project, i.e.
have the same effect as<dependency> pom.xml element,
no, the final jar does not depend on OSGi dependencies ...
or do you need to
execute Equinox application resolved from P2 repositories as part of
your project build, but the contents of Equinox application does not
depend on the project?
Exactly.
The code generator to be run at build time has p2 dependencies.
There's actually a standalone module so I don't *have* to use an
equinox launcher, but I might also do so, if that'll be easier.
The former is tracked as bug 364983 [1] and the latter is something
I
plan to do in tycho-eclipserun-plugin, but don't know yet if it
requires
tycho core api changes.
Sounds good! You don't yet have a bug where I could track this?
thanks,
Stephan
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=364983
--
Regards,
Igor
On 12-02-24 4:05 AM, Stephan Herrmann wrote:
Hi,
Using tycho 0.14.0 I can now successfully build a multi-project
Xtext-based
tool with several levels of code generation - building all on
Jenkins, great!
It's the next step where I'm now stuck:
The tool is intended to be used in non-OSGi projects. More
specifically,
I need to invoke (via the fornax plugin) some mwe2 workflow that
triggers
my code generator.
During tests of the code generator everything works just fine
using
packaging "eclipse-test-plugin".
However, in the "real" development projects with packaging "jar"
the
workflow runner doesn't work, because none of the p2 dependencies
are found. AFAICS this is due to the fact, that those p2
dependencies
(Xtext, emf.mwe2.* plus transitive dependencies) don't have poms.
Is it possible to enable just tycho's p2 resolver without
switching to
an OSGi specific packaging?
It would certainly be cool if this could be achieved just by some
tweaks
in my parent pom, but from my current understanding this is
unlikely.
So, alternatively:
What would it take to write a maven plugin that invokes tycho code
just for injecting dependencies to a project, perhaps even only
for
one goal ("generate-sources")?
Would that plugin also need to invoke the code generation, or
could
it just mediate between the two existing plugins?
thanks,
Stephan
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user