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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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.22.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. <plugins>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-compiler-plugin</artifactId>
  133. <version>3.2</version>
  134. <configuration>
  135. <source>1.6</source>
  136. <target>1.6</target>
  137. <testSource>1.9</testSource>
  138. <testTarget>1.9</testTarget>
  139. <testCompilerArgument>-parameters</testCompilerArgument>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-surefire-plugin</artifactId>
  145. <version>2.18.1</version>
  146. <configuration>
  147. <includes>
  148. <include>javassist/JvstTest.java</include>
  149. </includes>
  150. <forkMode>once</forkMode>
  151. <workingDirectory>${project.build.directory}/runtest</workingDirectory>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-jar-plugin</artifactId>
  157. <version>2.6</version>
  158. <configuration>
  159. <archive>
  160. <manifest>
  161. <mainClass>javassist.CtClass</mainClass>
  162. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  163. </manifest>
  164. </archive>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <artifactId>maven-source-plugin</artifactId>
  169. <version>2.0.4</version>
  170. <executions>
  171. <execution>
  172. <id>attach-sources</id>
  173. <goals>
  174. <goal>jar</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. <inherited>true</inherited>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-javadoc-plugin</artifactId>
  183. <version>3.0.0-M1</version>
  184. <configuration>
  185. <attach>true</attach>
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.felix</groupId>
  190. <artifactId>maven-bundle-plugin</artifactId>
  191. <version>3.3.0</version>
  192. <executions>
  193. <execution>
  194. <id>bundle-manifest</id>
  195. <phase>process-classes</phase>
  196. <goals>
  197. <goal>manifest</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. <configuration>
  202. <supportedProjectTypes>
  203. <supportedProjectType>jar</supportedProjectType>
  204. <supportedProjectType>bundle</supportedProjectType>
  205. <supportedProjectType>war</supportedProjectType>
  206. </supportedProjectTypes>
  207. <instructions>
  208. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  209. <Bundle-Version>${project.version}</Bundle-Version>
  210. <Import-Package>!com.sun.jdi.*</Import-Package>
  211. <Export-Package>!com.sun.jdi.*,javassist.*;version="${project.version}"</Export-Package>
  212. </instructions>
  213. </configuration>
  214. <extensions>true</extensions>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. <profiles>
  219. <!-- profile for releasing to sonatype repo
  220. exercise with mvn -PcentralRelease
  221. -->
  222. <profile>
  223. <id>centralRelease</id>
  224. <!-- obviously we need to use the Sonatype staging repo for upload -->
  225. <distributionManagement>
  226. <repository>
  227. <id>sonatype-releases-repository</id>
  228. <name>Sonatype Releases Repository</name>
  229. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  230. </repository>
  231. </distributionManagement>
  232. <!-- we need to be able to sign the jars we install -->
  233. <build>
  234. <plugins>
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-gpg-plugin</artifactId>
  238. <configuration>
  239. <passphrase>${gpg.passphrase}</passphrase>
  240. <useAgent>${gpg.useAgent}</useAgent>
  241. </configuration>
  242. <executions>
  243. <execution>
  244. <id>sign-artifacts</id>
  245. <phase>verify</phase>
  246. <goals>
  247. <goal>sign</goal>
  248. </goals>
  249. </execution>
  250. </executions>
  251. </plugin>
  252. </plugins>
  253. </build>
  254. </profile>
  255. <!-- profiles to add tools jar containing com.sun.jdi code
  256. needed by sample code
  257. -->
  258. <profile>
  259. <id>default-tools</id>
  260. <activation>
  261. <jdk>[,1.8]</jdk>
  262. </activation>
  263. <dependencies>
  264. <dependency>
  265. <groupId>com.sun</groupId>
  266. <artifactId>tools</artifactId>
  267. <version>${java.version}</version>
  268. <scope>system</scope>
  269. <optional>true</optional>
  270. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  271. </dependency>
  272. </dependencies>
  273. </profile>
  274. <profile>
  275. <id>java9-tools</id>
  276. <activation>
  277. <jdk>[1.9,]</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/jrt-fs.jar</systemPath>
  287. </dependency>
  288. </dependencies>
  289. </profile>
  290. </profiles>
  291. <dependencies>
  292. <dependency>
  293. <groupId>junit</groupId>
  294. <artifactId>junit</artifactId>
  295. <version>4.12</version>
  296. <scope>test</scope>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.hamcrest</groupId>
  300. <artifactId>hamcrest-all</artifactId>
  301. <version>1.3</version>
  302. <scope>test</scope>
  303. </dependency>
  304. </dependencies>
  305. </project>