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.

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