[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
[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.