Home | History | Annotate | Download | only in 1.4.33
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      3     <modelVersion>4.0.0</modelVersion>
      4 
      5     <parent>
      6         <artifactId>byte-buddy-parent</artifactId>
      7         <groupId>net.bytebuddy</groupId>
      8         <version>1.4.33</version>
      9     </parent>
     10 
     11     <artifactId>byte-buddy-agent</artifactId>
     12     <packaging>bundle</packaging>
     13 
     14     <properties>
     15         <bytebuddy.agent>net.bytebuddy.agent.Installer</bytebuddy.agent>
     16         <attach.package.sun>com.sun.tools.attach</attach.package.sun>
     17         <attach.package.ibm>com.ibm.tools.attach</attach.package.ibm>
     18     </properties>
     19 
     20     <name>Byte Buddy Java agent</name>
     21     <description>The Byte Buddy Java agent allows to access the JVM's HotSwap feature.</description>
     22 
     23     <dependencies>
     24         <dependency>
     25             <groupId>junit</groupId>
     26             <artifactId>junit</artifactId>
     27             <scope>test</scope>
     28         </dependency>
     29         <dependency>
     30             <groupId>org.mockito</groupId>
     31             <artifactId>mockito-core</artifactId>
     32             <scope>test</scope>
     33         </dependency>
     34     </dependencies>
     35 
     36     <build>
     37         <plugins>
     38             <!-- Define bundle plugin in order to allow for 'bundle' packaging. -->
     39             <plugin>
     40                 <groupId>org.apache.felix</groupId>
     41                 <artifactId>maven-bundle-plugin</artifactId>
     42                 <version>${version.plugin.bundle}</version>
     43                 <extensions>true</extensions>
     44             </plugin>
     45         </plugins>
     46     </build>
     47 
     48     <profiles>
     49         <profile>
     50             <id>extras</id>
     51             <activation>
     52                 <activeByDefault>false</activeByDefault>
     53             </activation>
     54             <build>
     55                 <plugins>
     56                     <!-- Specify OSGi packaging and agent manifest headers. -->
     57                     <plugin>
     58                         <groupId>org.apache.felix</groupId>
     59                         <artifactId>maven-bundle-plugin</artifactId>
     60                         <version>${version.plugin.bundle}</version>
     61                         <extensions>true</extensions>
     62                         <configuration>
     63                             <instructions>
     64                                 <Premain-Class>${bytebuddy.agent}</Premain-Class>
     65                                 <Agent-Class>${bytebuddy.agent}</Agent-Class>
     66                                 <Can-Redefine-Classes>true</Can-Redefine-Classes>
     67                                 <Can-Retransform-Classes>true</Can-Retransform-Classes>
     68                                 <Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
     69                                 <Import-Package>${attach.package.sun};resolution:="optional",${attach.package.ibm};resolution:="optional"</Import-Package>
     70                             </instructions>
     71                         </configuration>
     72                         <executions>
     73                             <execution>
     74                                 <goals>
     75                                     <goal>bundle</goal>
     76                                 </goals>
     77                             </execution>
     78                         </executions>
     79                     </plugin>
     80                 </plugins>
     81             </build>
     82         </profile>
     83     </profiles>
     84 
     85 </project>
     86