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 10KB

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