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

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