You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <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/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>org.javassist</groupId>
  4. <artifactId>javassist</artifactId>
  5. <packaging>bundle</packaging>
  6. <description>
  7. Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation
  8. simple. It is a class library for editing bytecodes in Java.
  9. </description>
  10. <version>3.29.2-GA</version>
  11. <name>Javassist</name>
  12. <url>http://www.javassist.org/</url>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <organization>
  17. <name>Shigeru Chiba, www.javassist.org</name>
  18. </organization>
  19. <issueManagement>
  20. <system>JIRA</system>
  21. <url>https://jira.jboss.org/jira/browse/JASSIST/</url>
  22. </issueManagement>
  23. <licenses>
  24. <!-- this is the license under which javassist is usually distributed
  25. -->
  26. <license>
  27. <name>MPL 1.1</name>
  28. <url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
  29. </license>
  30. <!-- this is the license under which javassist is distributed when
  31. it is bundled with JBoss
  32. -->
  33. <license>
  34. <name>LGPL 2.1</name>
  35. <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
  36. </license>
  37. <!-- this is the license under which javassist can be distributed.
  38. -->
  39. <license>
  40. <name>Apache License 2.0</name>
  41. <url>https://www.apache.org/licenses/LICENSE-2.0</url>
  42. </license>
  43. </licenses>
  44. <scm>
  45. <connection>scm:git:git@github.com:jboss-javassist/javassist.git</connection>
  46. <developerConnection>scm:git:git@github.com:jboss-javassist/javassist.git</developerConnection>
  47. <url>scm:git:git@github.com:jboss-javassist/javassist.git</url>
  48. </scm>
  49. <developers>
  50. <developer>
  51. <id>chiba</id>
  52. <name>Shigeru Chiba</name>
  53. <email>chiba@javassist.org</email>
  54. <organization>The Javassist Project</organization>
  55. <organizationUrl>http://www.javassist.org/</organizationUrl>
  56. <roles>
  57. <role>project lead</role>
  58. </roles>
  59. <timezone>9</timezone>
  60. </developer>
  61. <developer>
  62. <id>adinn</id>
  63. <name>Andrew Dinn</name>
  64. <email>adinn@redhat.com</email>
  65. <organization>JBoss</organization>
  66. <organizationUrl>http://www.jboss.org/</organizationUrl>
  67. <roles>
  68. <role>contributing developer</role>
  69. </roles>
  70. <timezone>0</timezone>
  71. </developer>
  72. <developer>
  73. <id>kabir.khan@jboss.com</id>
  74. <name>Kabir Khan</name>
  75. <email>kabir.khan@jboss.com</email>
  76. <organization>JBoss</organization>
  77. <organizationUrl>http://www.jboss.org/</organizationUrl>
  78. <roles>
  79. <role>contributing developer</role>
  80. </roles>
  81. <timezone>0</timezone>
  82. </developer>
  83. <developer>
  84. <id>scottmarlow</id>
  85. <name>Scott Marlow</name>
  86. <email>smarlow@redhat.com</email>
  87. <organization>JBoss</organization>
  88. <organizationUrl>http://www.jboss.org/</organizationUrl>
  89. <roles>
  90. <role>contributing developer</role>
  91. </roles>
  92. <timezone>-5</timezone>
  93. </developer>
  94. </developers>
  95. <distributionManagement>
  96. <!--
  97. You need entries in your .m2/settings.xml like this:
  98. <servers>
  99. <server>
  100. <id>jboss-releases-repository</id>
  101. <username>your_jboss.org_username</username>
  102. <password>password</password>
  103. </server>
  104. <server>
  105. <id>jboss-snapshots-repository</id>
  106. <username>your_jboss.org_username</username>
  107. <password>password</password>
  108. </server>
  109. </servers>
  110. To deploy a snapshot, you need to run
  111. mvn deploy -Dversion=3.x.y-SNAPSHOT
  112. To deploy a release you need to change the version to 3.x.y-GA and run
  113. mvn deploy
  114. -->
  115. <repository>
  116. <id>jboss-releases-repository</id>
  117. <name>JBoss Releases Repository</name>
  118. <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
  119. </repository>
  120. <snapshotRepository>
  121. <id>jboss-snapshots-repository</id>
  122. <name>JBoss Snapshots Repository</name>
  123. <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
  124. </snapshotRepository>
  125. </distributionManagement>
  126. <build>
  127. <sourceDirectory>src/main/</sourceDirectory>
  128. <testSourceDirectory>src/test/</testSourceDirectory>
  129. <testResources>
  130. <testResource>
  131. <directory>src/test/resources</directory>
  132. </testResource>
  133. </testResources>
  134. <plugins>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-compiler-plugin</artifactId>
  138. <version>3.2</version>
  139. <configuration>
  140. <source>1.8</source>
  141. <target>1.8</target>
  142. <testSource>11</testSource>
  143. <testTarget>11</testTarget>
  144. <testCompilerArgument>-parameters</testCompilerArgument>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-surefire-plugin</artifactId>
  150. <version>2.18.1</version>
  151. <configuration>
  152. <includes>
  153. <include>javassist/JvstTest.java</include>
  154. </includes>
  155. <forkMode>once</forkMode>
  156. <additionalClasspathElements>
  157. <additionalClasspathElement>resources</additionalClasspathElement>
  158. </additionalClasspathElements>
  159. <workingDirectory>${project.build.directory}/runtest</workingDirectory>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-jar-plugin</artifactId>
  165. <version>2.6</version>
  166. <configuration>
  167. <archive>
  168. <manifest>
  169. <mainClass>javassist.CtClass</mainClass>
  170. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  171. </manifest>
  172. <manifestFile>src/main/META-INF/MANIFEST.MF</manifestFile>
  173. </archive>
  174. </configuration>
  175. </plugin>
  176. <plugin>
  177. <artifactId>maven-source-plugin</artifactId>
  178. <version>2.0.4</version>
  179. <executions>
  180. <execution>
  181. <id>attach-sources</id>
  182. <goals>
  183. <goal>jar</goal>
  184. </goals>
  185. </execution>
  186. </executions>
  187. <inherited>true</inherited>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-javadoc-plugin</artifactId>
  192. <version>3.2.0</version>
  193. <configuration>
  194. <attach>true</attach>
  195. <excludePackageNames>javassist.compiler:javassist.convert:javassist.scopedpool:javassist.bytecode.stackmap</excludePackageNames>
  196. <bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.<br>
  197. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
  198. <show>public</show>
  199. <nohelp>true</nohelp>
  200. <doclint>none</doclint>
  201. <source>8</source>
  202. </configuration>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.felix</groupId>
  206. <artifactId>maven-bundle-plugin</artifactId>
  207. <version>3.3.0</version>
  208. <executions>
  209. <execution>
  210. <id>bundle-manifest</id>
  211. <phase>process-classes</phase>
  212. <goals>
  213. <goal>manifest</goal>
  214. </goals>
  215. </execution>
  216. </executions>
  217. <configuration>
  218. <supportedProjectTypes>
  219. <supportedProjectType>jar</supportedProjectType>
  220. <supportedProjectType>bundle</supportedProjectType>
  221. <supportedProjectType>war</supportedProjectType>
  222. </supportedProjectTypes>
  223. <instructions>
  224. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  225. <Bundle-Version>${project.version}</Bundle-Version>
  226. <Import-Package>!com.sun.jdi.*</Import-Package>
  227. <Export-Package>!com.sun.jdi.*,javassist.*;version="${project.version}"</Export-Package>
  228. </instructions>
  229. </configuration>
  230. <extensions>true</extensions>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. <profiles>
  235. <!-- profile for releasing to sonatype repo
  236. exercise with mvn -PcentralRelease
  237. -->
  238. <profile>
  239. <id>centralRelease</id>
  240. <!-- obviously we need to use the Sonatype staging repo for upload -->
  241. <distributionManagement>
  242. <repository>
  243. <id>sonatype-releases-repository</id>
  244. <name>Sonatype Releases Repository</name>
  245. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  246. </repository>
  247. </distributionManagement>
  248. <!-- we need to be able to sign the jars we install -->
  249. <build>
  250. <plugins>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-gpg-plugin</artifactId>
  254. <configuration>
  255. <passphrase>${gpg.passphrase}</passphrase>
  256. <useAgent>${gpg.useAgent}</useAgent>
  257. </configuration>
  258. <executions>
  259. <execution>
  260. <id>sign-artifacts</id>
  261. <phase>verify</phase>
  262. <goals>
  263. <goal>sign</goal>
  264. </goals>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. </plugins>
  269. </build>
  270. </profile>
  271. <!-- profiles to add tools jar containing com.sun.jdi code
  272. needed by sample code
  273. -->
  274. <profile>
  275. <id>default-tools</id>
  276. <activation>
  277. <jdk>[,1.8]</jdk>
  278. </activation>
  279. <dependencies>
  280. <dependency>
  281. <groupId>com.sun</groupId>
  282. <artifactId>tools</artifactId>
  283. <version>${java.version}</version>
  284. <scope>system</scope>
  285. <optional>true</optional>
  286. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  287. </dependency>
  288. </dependencies>
  289. </profile>
  290. <profile>
  291. <id>java9-tools</id>
  292. <activation>
  293. <jdk>[1.9,]</jdk>
  294. </activation>
  295. <dependencies>
  296. <dependency>
  297. <groupId>com.sun</groupId>
  298. <artifactId>tools</artifactId>
  299. <version>${java.version}</version>
  300. <scope>system</scope>
  301. <optional>true</optional>
  302. <systemPath>${java.home}/lib/jrt-fs.jar</systemPath>
  303. </dependency>
  304. </dependencies>
  305. </profile>
  306. </profiles>
  307. <dependencies>
  308. <dependency>
  309. <groupId>junit</groupId>
  310. <artifactId>junit</artifactId>
  311. <version>[4.13.1,)</version>
  312. <scope>test</scope>
  313. </dependency>
  314. <dependency>
  315. <groupId>org.hamcrest</groupId>
  316. <artifactId>hamcrest-all</artifactId>
  317. <version>1.3</version>
  318. <scope>test</scope>
  319. </dependency>
  320. </dependencies>
  321. </project>