byte-buddy-agent-1.7.11.pom 4.8 KB

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