Home | History | Annotate | Download | only in 1.6.5
      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.6.5</version>
      9     </parent>
     10 
     11     <artifactId>byte-buddy-agent</artifactId>
     12     <packaging>jar</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         <version.unixsocket>2.0.4</version.unixsocket>
     19     </properties>
     20 
     21     <name>Byte Buddy Java agent</name>
     22     <description>The Byte Buddy Java agent allows to access the JVM's HotSwap feature.</description>
     23 
     24     <!--
     25       The Unix socket dependency can be excluded safely. Byte Buddy will safely discover the
     26       non-availability and not use the corresponding virtual machine implementation. The
     27       implementation requires Java 7+ and is deactivated on Java 6 VMs.
     28     -->
     29 
     30     <dependencies>
     31         <dependency>
     32             <groupId>com.kohlschutter.junixsocket</groupId>
     33             <artifactId>junixsocket-native-common</artifactId>
     34             <version>${version.unixsocket}</version>
     35             <scope>provided</scope>
     36         </dependency>
     37         <dependency>
     38             <groupId>junit</groupId>
     39             <artifactId>junit</artifactId>
     40             <scope>test</scope>
     41         </dependency>
     42         <dependency>
     43             <groupId>org.mockito</groupId>
     44             <artifactId>mockito-core</artifactId>
     45             <scope>test</scope>
     46         </dependency>
     47     </dependencies>
     48 
     49     <profiles>
     50         <profile>
     51             <id>extras</id>
     52             <activation>
     53                 <activeByDefault>false</activeByDefault>
     54             </activation>
     55             <build>
     56                 <plugins>
     57                     <!-- Create manifest file which is required for creating an OSGi bundle. -->
     58                     <plugin>
     59                         <groupId>org.apache.maven.plugins</groupId>
     60                         <artifactId>maven-jar-plugin</artifactId>
     61                         <version>${version.plugin.jar}</version>
     62                         <configuration>
     63                             <archive>
     64                                 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
     65                             </archive>
     66                         </configuration>
     67                     </plugin>
     68                     <!-- Specify OSGi packaging and agent manifest headers. -->
     69                     <plugin>
     70                         <groupId>org.apache.felix</groupId>
     71                         <artifactId>maven-bundle-plugin</artifactId>
     72                         <version>${version.plugin.bundle}</version>
     73                         <executions>
     74                             <execution>
     75                                 <phase>process-classes</phase>
     76                                 <goals>
     77                                     <goal>manifest</goal>
     78                                 </goals>
     79                             </execution>
     80                         </executions>
     81                         <configuration>
     82                             <instructions>
     83                                 <Premain-Class>${bytebuddy.agent}</Premain-Class>
     84                                 <Agent-Class>${bytebuddy.agent}</Agent-Class>
     85                                 <Can-Redefine-Classes>true</Can-Redefine-Classes>
     86                                 <Can-Retransform-Classes>true</Can-Retransform-Classes>
     87                                 <Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
     88                                 <Import-Package>
     89                                     ${attach.package.sun};resolution:="optional",
     90                                     ${attach.package.ibm};resolution:="optional"
     91                                 </Import-Package>
     92                                 <Export-Package>
     93                                     net.bytebuddy.agent
     94                                 </Export-Package>
     95                             </instructions>
     96                         </configuration>
     97                     </plugin>
     98                 </plugins>
     99             </build>
    100         </profile>
    101     </profiles>
    102 
    103 </project>
    104