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 9.5KB

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