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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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.27.0-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>http://www.apache.org/licenses/</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. </archive>
  173. </configuration>
  174. </plugin>
  175. <plugin>
  176. <artifactId>maven-source-plugin</artifactId>
  177. <version>2.0.4</version>
  178. <executions>
  179. <execution>
  180. <id>attach-sources</id>
  181. <goals>
  182. <goal>jar</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. <inherited>true</inherited>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-javadoc-plugin</artifactId>
  191. <version>3.2.0</version>
  192. <configuration>
  193. <attach>true</attach>
  194. <excludePackageNames>javassist.compiler:javassist.convert:javassist.scopedpool:javassist.bytecode.stackmap</excludePackageNames>
  195. <bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.<br>
  196. Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
  197. <show>public</show>
  198. <nohelp>true</nohelp>
  199. <doclint>none</doclint>
  200. <source>8</source>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.felix</groupId>
  205. <artifactId>maven-bundle-plugin</artifactId>
  206. <version>3.3.0</version>
  207. <executions>
  208. <execution>
  209. <id>bundle-manifest</id>
  210. <phase>process-classes</phase>
  211. <goals>
  212. <goal>manifest</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. <configuration>
  217. <supportedProjectTypes>
  218. <supportedProjectType>jar</supportedProjectType>
  219. <supportedProjectType>bundle</supportedProjectType>
  220. <supportedProjectType>war</supportedProjectType>
  221. </supportedProjectTypes>
  222. <instructions>
  223. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  224. <Bundle-Version>${project.version}</Bundle-Version>
  225. <Import-Package>!com.sun.jdi.*</Import-Package>
  226. <Export-Package>!com.sun.jdi.*,javassist.*;version="${project.version}"</Export-Package>
  227. </instructions>
  228. </configuration>
  229. <extensions>true</extensions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. <profiles>
  234. <!-- profile for releasing to sonatype repo
  235. exercise with mvn -PcentralRelease
  236. -->
  237. <profile>
  238. <id>centralRelease</id>
  239. <!-- obviously we need to use the Sonatype staging repo for upload -->
  240. <distributionManagement>
  241. <repository>
  242. <id>sonatype-releases-repository</id>
  243. <name>Sonatype Releases Repository</name>
  244. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  245. </repository>
  246. </distributionManagement>
  247. <!-- we need to be able to sign the jars we install -->
  248. <build>
  249. <plugins>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-gpg-plugin</artifactId>
  253. <configuration>
  254. <passphrase>${gpg.passphrase}</passphrase>
  255. <useAgent>${gpg.useAgent}</useAgent>
  256. </configuration>
  257. <executions>
  258. <execution>
  259. <id>sign-artifacts</id>
  260. <phase>verify</phase>
  261. <goals>
  262. <goal>sign</goal>
  263. </goals>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. </plugins>
  268. </build>
  269. </profile>
  270. <!-- profiles to add tools jar containing com.sun.jdi code
  271. needed by sample code
  272. -->
  273. <profile>
  274. <id>default-tools</id>
  275. <activation>
  276. <jdk>[,1.8]</jdk>
  277. </activation>
  278. <dependencies>
  279. <dependency>
  280. <groupId>com.sun</groupId>
  281. <artifactId>tools</artifactId>
  282. <version>${java.version}</version>
  283. <scope>system</scope>
  284. <optional>true</optional>
  285. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  286. </dependency>
  287. </dependencies>
  288. </profile>
  289. <profile>
  290. <id>java9-tools</id>
  291. <activation>
  292. <jdk>[1.9,]</jdk>
  293. </activation>
  294. <dependencies>
  295. <dependency>
  296. <groupId>com.sun</groupId>
  297. <artifactId>tools</artifactId>
  298. <version>${java.version}</version>
  299. <scope>system</scope>
  300. <optional>true</optional>
  301. <systemPath>${java.home}/lib/jrt-fs.jar</systemPath>
  302. </dependency>
  303. </dependencies>
  304. </profile>
  305. </profiles>
  306. <dependencies>
  307. <dependency>
  308. <groupId>junit</groupId>
  309. <artifactId>junit</artifactId>
  310. <version>4.12</version>
  311. <scope>test</scope>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.hamcrest</groupId>
  315. <artifactId>hamcrest-all</artifactId>
  316. <version>1.3</version>
  317. <scope>test</scope>
  318. </dependency>
  319. </dependencies>
  320. </project>