Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Alternative to avoid deprecation warning from product-export goal in tycho-packaging-plugin
  • From: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
  • Date: Fri, 12 Mar 2021 19:02:34 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.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=l0D3CEPqIAUVIqMEeSNKYto946OwNK5WhUnH9UxLKsQ=; b=MqUfKZCPSyet/gtrXLCFK2/9OO9VOeb8bSn49SaUXFZUTSEGLn6rOyPh7aVk8yQK8yHOnDfZEvNSQ+LMF9S4wUmabG2JaXkXV0k4HwOWJjaJmjj7hFSYOkewTqpBl5fAs3aAPvJkA8K/vGlCzvKym8TGCRp3+sbrlH985ypICWrsQ4OJIqPB2FSWcULZ4U8ek/f5EiwBpSB1kJ+XlTRsKUFApfXWoErNG7wad9gcmdRbCXSkK69juASkim2en6KgKzGTJ4yBPEoGfr91EH5qrc796J3i8WGBxRi3SzRH2+Xp0SFoTXp1J/xX6DMugCckcv39C+pW2WuDf+rhFFQtBg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iA429LacJpa5msiZTHFxDIYlOlBvWoWKIehz97O6DNqdG4gfvt+7TlgmO8OlB71yrsU28TSFyocMbszObN3SCoJAbM9JKQvp0hABJV1OLV/N+dDWjsQgSrkwYANd0mCClGzGEL6ViCADDWvti5Pdm6f0RbstIuHhAZnQODRT7ZQ9d3Vx09/6QiLyAt1I+n3+DYPbJ2OxaAvsKmWXVCf378pTgaFl6pfL+y/Pqzhmf86uDEi1Xz6yBXwT5SvwPJ4RvNIRSl8Rhi+JZ5AxUvSyJ2TcIzehzWsNWhGrDffdGuHKQM73evm2KUIl3X4fsZv+pvoQMmaOwhQ9Vof3L7QLrQ==
  • Delivered-to: tycho-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tycho-user/>
  • List-help: <mailto:tycho-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdcWhWtOQ9/WB/cHRTyVQOKP7nXYDAAkBhEAABZpM7A=
  • Thread-topic: [tycho-user] Alternative to avoid deprecation warning from product-export goal in tycho-packaging-plugin

Hello Mickael,

Thanks for your reply.

I agree tycho should not invent an alternative way to assemble products. My question was if it is possible to achieve the same thing in a non-deprecated way, for example using tycho-p2-director-plugin...
I’ve tried to look though the tycho code and debug what is happening to try to figure out a way to configure the tycho-p2-director-plugin plugin in order to build a structure that can be run on more than 1 platform.
So far, I've seen no way to configure p2 director go generate more than one platform in the same structure as all calls to the p2 directory specify the environment and also uses separate directory as the root of the installation.

If I run the following on a Linux system, I can start the application just fine after the first p2 director call, but after that, I just get errors related to win32 stuff being loaded (using the CDT standalone debugger as an example here, although it's a full RCP...)

$ ./eclipse -application org.eclipse.equinox.p2.director -metadataRepository file:/tmp/org.eclipse.cdt/debug/org.eclipse.cdt.debug.application.product/target/repository/ -artifactRepository file:/tmp/org.eclipse.cdt/debug/org.eclipse.cdt.debug.application.product/target/repository/ -installIU org.eclipse.cdt.debug.application.product -destination /tmp/cdt-debugger -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -roaming -p2.os linux -p2.ws gtk -p2.arch x86_64
$ ./eclipse -application org.eclipse.equinox.p2.director -metadataRepository file:/tmp/org.eclipse.cdt/debug/org.eclipse.cdt.debug.application.product/target/repository/ -artifactRepository file:/tmp/org.eclipse.cdt/debug/org.eclipse.cdt.debug.application.product/target/repository/ -installIU org.eclipse.cdt.debug.application.product -destination /tmp/cdt-debugger/  -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -roaming -p2.os win32 -p2.ws win32 -p2.arch x86_64

I've also played with different profiles, but it does not appear to make a difference when trying to launch the resulting application.


The goal is to have a RPC application, without any GUI, that will be used to generate managed CDT projects based on some command line arguments.
The application directory needs to contain everything needed to run on 3 different platforms with the respective launchers.

I've seen the Vogella blog regarding doing OSGi services for headless applications, but I'm not sure what will happen with CDT if not using the old-style Eclipse extension point.

Has anyone done anything similar to what I need?

Kind regards,
Torbjörn



From: tycho-user <tycho-user-bounces@xxxxxxxxxxx> On Behalf Of Mickael Istria
Sent: den 12 mars 2021 08:59
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Alternative to avoid deprecation warning from product-export goal in tycho-packaging-plugin

Hello,

No, there is now way to avoid this deprecation warning, as this feature is really deprecated and not supported anymore as it's Tycho-specific stuff that misses many details of a proper product creation.
Creating products is the duty of p2 director, Tycho shouldn't try to build an alternative approach for that, which is used by materialize-products goal. If this approach is missing features, they need to be added to p2 director (by the way, look at the source more than at the doc as there are some hidden options), and then made available to Tycho materialize-product.

HTH

Back to the top