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.

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