Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Use p2 resolver with packaging "jar"?

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


Back to the top