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.

Jeff


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,

Andreas

[1] <https://bugs.eclipse.org/bugs/show_bug.cgi?id=349115>

--
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


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

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top