Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] WAR-packaged project depending on JAR from p2 repo?

You can imagine that the POM is generated dynamically from the bundle (if it's been produced by Tycho) or from the Maven coordinates given to the Maven repo layout.


On Fri, Nov 22, 2013 at 1:28 PM, Andreas Sewe <andreas.sewe@xxxxxxxxxxxxxx> wrote:
Hi Jeff,

> If you take a regular POM (JAR,WAR,...) and add Tycho extensions plus
> add a p2 repo to Maven repositories, then it should be able to resolve
> one of the dependencies against this repo.

yes, that's what I tried.

> But I looked at the code of the P2 layout maven repository and it seems
> it is not implemented so it's like the p2 layout is a fake Maven
> repository just here to allow configuration of P2 repositories for Tycho
> in the Maven way.

even if the p2 layout were implemented in the "proper" way, I wonder how
Tycho would be able to produce a pom.xml for a JAR in a p2 repo? Now,
for JARs build with Tycho, this should be doable thanks to
META-INF/maven/${groupId}/${artifactId}/pom.xml, but in the general
case that would be really hard.

Alternatively, I looks like bug [1] being fixed might solve this in a
different way.

Best wishes,


[1] <>

Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
tycho-user mailing list


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

Back to the top