[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Filtering target platform
|
Am 19.04.2020 um 20:17 schrieb Keppler Michael (ETAS/ESW-CI):
> https://wiki.eclipse.org/Tycho/Target_Platform#Filtering (example 3) says
>
> <removeAll/>
>
> instead of any version number restriction.
>
>
> Mit freundlichen Grüßen / Best regards
>
> Michael Keppler
>
> LTO Release Engineering (ETAS/ESW-CI)
> Tel. +49 711 3423-2429 | Fax +49 711 89661-0 | Michael.Keppler@xxxxxxxx
Hi,
this didn't help. I've added
<build>
<plugins>
<!-- Materialize Products -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
<includeAllDependencies>true</includeAllDependencies>
<!-- example 2: remove all providers of the package
javax.persistence -->
<filter>
<type>java-package</type>
<id>javax.persistence</id>
<removeAll />
</filter>
...
to my pom, but the javax.persistence_2.2.1.v201807122140.jar remains in
my product's plugins directory (and stays in config.ini). Are there
other hints to remove this?
Cheers,
Ralf.
>
>
> -----Ursprüngliche Nachricht-----
> Von: tycho-user-bounces@xxxxxxxxxxx <tycho-user-bounces@xxxxxxxxxxx> Im Auftrag von Ralf Heydenreich
> Gesendet: Donnerstag, 9. April 2020 00:45
> An: Tycho user list <tycho-user@xxxxxxxxxxx>
> Betreff: [tycho-user] Filtering target platform
>
> Hi all,
>
> I want to exclude the javax.persistence bundle from my materialized product. The bundle is replaced by a newer version named jakarta.persistence, which is also in the materialized product. I've tried the following with no success (this is from pom in my target plugin):
>
> [code]
>
>
> <!-- example 1: restrict version of a bundle -->
> <filter>
> <type>eclipse-plugin</type>
> <id>javax.persistence</id>
> <restrictTo>
> <versionRange>2.2.3</versionRange>
> </restrictTo>
> </filter>
>
> <!-- example 2: remove all providers of the package javax.persistence except the bundle jakarta.persistence -->
> <filter>
> <type>java-package</type>
> <id>javax.persistence</id>
> <restrictTo>
> <type>eclipse-plugin</type>
> <id>jakarta.persistence</id>
> </restrictTo>
> </filter>
>
> <filter>
> <!-- example: remove all providers of the package javax.persistence
> except the bundle javax.persistence, which implements jpa 2.0 -->
> <type>java-package</type>
> <id>javax.persistence</id>
> <restrictTo>
> <type>osgi-bundle</type>
> <id>jakarta.persistence</id>
> <versionRange>2.2.3</versionRange>
> </restrictTo>
> </filter> [/code]
>
> Can anyone explain me what is the right syntax so that javax.persistence is not in my materialized product? Thanks in advance.
>
>
> Regards,
>
> Ralf.
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user