Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Build p2 update site from Maven artifacts
  • From: "Fauth Dirk (CAP-SST/ESM1)" <Dirk.Fauth@xxxxxxxxxxxx>
  • Date: Fri, 4 Dec 2020 10:26:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=de.bosch.com; dmarc=pass action=none header.from=de.bosch.com; dkim=pass header.d=de.bosch.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sRP7uDsuF0sAjvrY4YCtI6VNqwel3gBlD5GQUV220Co=; b=GaZ+Hyo2rNfuygGEYHyp+ZAnAsdJQR7w3XRrukX/7PYAVOc5GINHDl5vZ4B9xw0dJkj9XJPNQtzuAArKplWGb9OlL/+qhcBUyLN1YHUQogcZjqAEybLZCn/krselBn98qjsvrA0MbZ3iHmmcytLoL7smbvAjPRNLNQpx7nq35b7Zcj+nMDv5akzyBxlO4gRwR34650FX2yeaCMBFiqA937jo3IqN1TEx0uDdDJmj9xrb8AT/jLSVXO/yz/6LndePcpGTNDcyT6XhM2srpOGVHcd+6InZaOJxVM5dcDTMQg+nKlYLxjLg7kOP2j292EArzptB4lT6q7AY36kovNtywQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P6paUCzJ2gV9EjPibxFrAa6CurAyV7qnzGY/vJGSyWg4DrWuY4Ih7UM6z01vSeS/Kz4hBYQYvILm0O/s4a8H2vPrIbx+SeXHs91WdwMm9Wp54xaci3oCh6k7vcJ5YMzbWeTt8lECm+S8oJBZVf0MYdt0Zq77mObRKTTk9jpC0j34ywDqjyzB6RjqePpSAH87Tk50I8L/tPwUt5VTuv2O8SzHT0jeRQ/wD7HuZ8kx9pSREljDRWAhf77lpeEmAlPWn3Z/G1vS2UJWhZl+q3AqLheds9mcuUyAsZD2o1xwEib4Yk2OG2fvkfxRHwcrYClTP5nysb0bqVzxeqJUjlqc6g==
  • Delivered-to: tycho-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tycho-dev>
  • List-help: <mailto:tycho-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-dev>, <mailto:tycho-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-dev>, <mailto:tycho-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdbKHpL7xoLRlKPSQOmlrhvwMW8B+AAA9ZoAAAEYytA=
  • Thread-topic: [tycho-dev] Build p2 update site from Maven artifacts

Hi Christoph,

Although this sounds nice for Eclipse projects, this is not what I was looking for. At least if I understand correctly.

The Tycho build actually does not even have a target definition. It only consumes the two bundles from Maven. I have defined the dependencies this way:

    <dependencies>
        <dependency>
            <groupId>org.eclipse.collections</groupId>
            <artifactId>eclipse-collections-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.collections</groupId>
            <artifactId>eclipse-collections</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.eclipse.collections</groupId>
            <artifactId>eclipse-collections-api</artifactId>
            <version>${project.version}</version>
	<classifier>sources</classifier>
        </dependency>
        <dependency>
            <groupId>org.eclipse.collections</groupId>
            <artifactId>eclipse-collections</artifactId>
            <version>${project.version}</version>
	<classifier>sources</classifier>
        </dependency>
    </dependencies>

Of course I would like to avoid the second definition for the sources dependency. But anyhow, something one could live with.

And I am not aware that you could add Maven dependencies to a Target Definition. Maybe I missed some features in the latest Tycho, but that would be totally new to me.

It is nothing critical, so there is time. I just want to help the project to create a p2 update site with less effort than it is now. And they are currently blocked in updating to the latest Tycho because they need to be able to build with Java 8 for some reasons. That is why I would like to separate the p2 repository build from the rest of their build structure.

Mit freundlichen Grüßen / Best regards

 Dirk Fauth

Cross Automotive Platforms - System, Software and Tools Engineering Engineering Software Methods and Tools1 (CAP-SST/ESM1)
Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY | www.bosch.com
Tel. +49 711 811-57819 | Telefax +49 711 811 | Dirk.Fauth@xxxxxxxxxxxx

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. Volkmar Denner, 
Prof. Dr. Stefan Asenkerschbaumer, Dr. Michael Bolle, Dr. Christian Fischer, Dr. Stefan Hartung,
Dr. Markus Heyn, Harald Kröger, Christoph Kübel, Rolf Najork, Uwe Raschke, Peter Tyroller

-----Ursprüngliche Nachricht-----
Von: tycho-dev-bounces@xxxxxxxxxxx <tycho-dev-bounces@xxxxxxxxxxx> Im Auftrag von Christoph Läubrich
Gesendet: Freitag, 4. Dezember 2020 10:47
An: tycho-dev@xxxxxxxxxxx
Betreff: Re: [tycho-dev] Build p2 update site from Maven artifacts

Hi Dirk,

Currently PDE requires some additional headers to really use source-jars as source bundles. So if you bundle the sources as well appropriately you can include them in tycho already.

Beside from that, automatically using maven-deps sources with tycho-source-plugin is currently under development.


If you don't mind to use snapshots/latest builds or you can wait for the 
next tycho + m2e release you can solve your use-case in an alternative way:

1) You can include your desired artifacts into the target file of your 
project and choose "include source" and don't mind about building an 
extra P2-Updatesite
2) Create a target for your updatesite build as above and wait until I 
have implemented the m2e-source-feature in tycho (hopefully next week) 
and proceed with deploying and all this additional stuff

That way you can even use artifacts that are not bundles at all, either 
using some default mapping or create a BND mapping description from 
within the target editor.

-- 
Mit freundlichen Grüßen

Christoph Läubrich

----------------------------------------------------
  Christoph Läubrich
  Freiberuflicher Diplom-Informatiker


Am 04.12.20 um 10:27 schrieb Fauth Dirk (CAP-SST/ESM1):
> Hi,
> 
> I would like to create a p2 update site from Maven artifacts. I added 
> the OSGi metadata via bnd-maven-plugin to the Eclipse Collections 
> artifacts a while ago, so also in Maven Central the artifacts are 
> available to be used in OSGi projects.
> 
> The current approach to build the p2 repository for Eclipse collections 
> is to use EBR, which actually takes the build results and merge them 
> into a single bundle that combines API and IMPL. And that also creates a 
> source bundle.
> 
> To make the process more straight forward and easier to maintain, I 
> wanted to use the original artifacts available via Maven and drop the 
> EBR process. For this I configured the build with 
> pomDependencies=consider. But then the tycho-source-feature-plugin fails 
> as it can’t resolve the sources for the plugins. From the documentation 
> it searches for bundles with a .source suffix. But in Maven the bundles 
> are names with a -sources suffix.
> 
> Is it somehow possible to configure the tycho-source-feature-plugin to 
> consider the sources from Maven?
> 
> Mit freundlichen Grüßen / Best regards
> 
> *Dirk Fauth*
> 
> Cross Automotive Platforms - System, Software and Tools Engineering 
> Engineering Software Methods and Tools1 (CAP-SST/ESM1)
> Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY | 
> http://www.bosch.com/ <http://www.bosch.com/>
> Tel. +49 711 811-57819 | Telefax +49 711 811 | Dirk.Fauth@xxxxxxxxxxxx 
> <mailto:Dirk.Fauth@xxxxxxxxxxxx>
> 
> Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
> Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. 
> Volkmar Denner,
> Prof. Dr. Stefan Asenkerschbaumer, Dr. Michael Bolle, Dr. Christian 
> Fischer, Dr. Stefan Hartung,
> Dr. Markus Heyn, Harald Kröger, Christoph Kübel, Rolf Najork, Uwe 
> Raschke, Peter Tyroller
> ​
> 
> 
> _______________________________________________
> tycho-dev mailing list
> tycho-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Ftycho-dev&amp;data=04%7C01%7Cdirk.fauth%40de.bosch.com%7Cfeed50be82674d5c82e608d898399a53%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637426720455377110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=VREFkpWgiBt597dogB3iV3nZexJX04AgzCmYPYWPrYo%3D&amp;reserved=0
> 
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Ftycho-dev&amp;data=04%7C01%7Cdirk.fauth%40de.bosch.com%7Cfeed50be82674d5c82e608d898399a53%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637426720455377110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=VREFkpWgiBt597dogB3iV3nZexJX04AgzCmYPYWPrYo%3D&amp;reserved=0

Back to the top