Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pom.xml 14KB

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