Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Filtering target platform

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


-----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

Back to the top