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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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.18.1-Beta1</version>
  11. <name>Javassist</name>
  12. <url>http://www.javassist.org/</url>
  13. <issueManagement>
  14. <system>JIRA</system>
  15. <url>https://jira.jboss.org/jira/browse/JASSIST/</url>
  16. </issueManagement>
  17. <licenses>
  18. <!-- this is the license under which javassist is usually distributed
  19. -->
  20. <license>
  21. <name>MPL 1.1</name>
  22. <url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
  23. </license>
  24. <!-- this is the license under which javassist is distributed when
  25. it is bundled with JBoss
  26. -->
  27. <license>
  28. <name>LGPL 2.1</name>
  29. <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
  30. </license>
  31. <!-- this is the license under which javassist can be distributed.
  32. -->
  33. <license>
  34. <name>Apache License 2.0</name>
  35. <url>http://www.apache.org/licenses/</url>
  36. </license>
  37. </licenses>
  38. <scm>
  39. <connection>scm:git:git@github.com:jboss-javassist/javassist.git</connection>
  40. <developerConnection>scm:git:git@github.com:jboss-javassist/javassist.git</developerConnection>
  41. <url>scm:git:git@github.com:jboss-javassist/javassist.git</url>
  42. </scm>
  43. <developers>
  44. <developer>
  45. <id>chiba</id>
  46. <name>Shigeru Chiba</name>
  47. <email>chiba@javassist.org</email>
  48. <organization>The Javassist Project</organization>
  49. <organizationUrl>http://www.javassist.org/</organizationUrl>
  50. <roles>
  51. <role>project lead</role>
  52. </roles>
  53. <timezone>9</timezone>
  54. </developer>
  55. <developer>
  56. <id>adinn</id>
  57. <name>Andrew Dinn</name>
  58. <email>adinn@redhat.com</email>
  59. <organization>JBoss</organization>
  60. <organizationUrl>http://www.jboss.org/</organizationUrl>
  61. <roles>
  62. <role>contributing developer</role>
  63. </roles>
  64. <timezone>0</timezone>
  65. </developer>
  66. <developer>
  67. <id>kabir.khan@jboss.com</id>
  68. <name>Kabir Khan</name>
  69. <email>kabir.khan@jboss.com</email>
  70. <organization>JBoss</organization>
  71. <organizationUrl>http://www.jboss.org/</organizationUrl>
  72. <roles>
  73. <role>contributing developer</role>
  74. </roles>
  75. <timezone>0</timezone>
  76. </developer>
  77. </developers>
  78. <distributionManagement>
  79. <!--
  80. You need entries in your .m2/settings.xml like this:
  81. <servers>
  82. <server>
  83. <id>jboss-releases-repository</id>
  84. <username>your_jboss.org_username</username>
  85. <password>password</password>
  86. </server>
  87. <server>
  88. <id>jboss-snapshots-repository</id>
  89. <username>your_jboss.org_username</username>
  90. <password>password</password>
  91. </server>
  92. </servers>
  93. To deploy a snapshot, you need to run
  94. mvn deploy -Dversion=3.x.y-SNAPSHOT
  95. To deploy a release you need to change the version to 3.x.y.GA and run
  96. mvn deploy
  97. -->
  98. <repository>
  99. <id>jboss-releases-repository</id>
  100. <name>JBoss Releases Repository</name>
  101. <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
  102. </repository>
  103. <snapshotRepository>
  104. <id>jboss-snapshots-repository</id>
  105. <name>JBoss Snapshots Repository</name>
  106. <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
  107. </snapshotRepository>
  108. </distributionManagement>
  109. <build>
  110. <sourceDirectory>src/main/</sourceDirectory>
  111. <testSourceDirectory>src/test/</testSourceDirectory>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-compiler-plugin</artifactId>
  116. <configuration>
  117. <source>1.6</source>
  118. <target>1.6</target>
  119. <testSource>1.7</testSource>
  120. <testTarget>1.7</testTarget>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-surefire-plugin</artifactId>
  126. <version>2.12</version>
  127. <configuration>
  128. <includes>
  129. <include>javassist/JvstTest.java</include>
  130. </includes>
  131. <forkMode>once</forkMode>
  132. <workingDirectory>runtest</workingDirectory>
  133. </configuration>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-jar-plugin</artifactId>
  138. <configuration>
  139. <archive>
  140. <manifestFile>${project.build.sourceDirectory}/META-INF/MANIFEST.MF</manifestFile>
  141. </archive>
  142. </configuration>
  143. </plugin>
  144. <plugin>
  145. <artifactId>maven-source-plugin</artifactId>
  146. <version>2.0.3</version>
  147. <executions>
  148. <execution>
  149. <id>attach-sources</id>
  150. <goals>
  151. <goal>jar</goal>
  152. </goals>
  153. </execution>
  154. </executions>
  155. <inherited>true</inherited>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-javadoc-plugin</artifactId>
  160. <version>2.7</version>
  161. <configuration>
  162. <attach>true</attach>
  163. </configuration>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.felix</groupId>
  167. <artifactId>maven-bundle-plugin</artifactId>
  168. <version>2.1.0</version>
  169. <executions>
  170. <execution>
  171. <id>bundle-manifest</id>
  172. <phase>process-classes</phase>
  173. <goals>
  174. <goal>manifest</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. <configuration>
  179. <supportedProjectTypes>
  180. <supportedProjectType>jar</supportedProjectType>
  181. <supportedProjectType>bundle</supportedProjectType>
  182. <supportedProjectType>war</supportedProjectType>
  183. </supportedProjectTypes>
  184. <instructions>
  185. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  186. <Bundle-Version>${project.version}</Bundle-Version>
  187. <Import-Package>!com.sun.jdi.*</Import-Package>
  188. <Export-Package>!com.sun.jdi.*,javassist.*;version="${project.version}"</Export-Package>
  189. </instructions>
  190. </configuration>
  191. <extensions>true</extensions>
  192. </plugin>
  193. </plugins>
  194. </build>
  195. <profiles>
  196. <!-- profile for releasing to sonatype repo
  197. exercise with mvn -PcentralRelease
  198. -->
  199. <profile>
  200. <id>centralRelease</id>
  201. <!-- obviously we need to use the Sonatype staging repo for upload -->
  202. <distributionManagement>
  203. <repository>
  204. <id>sonatype-releases-repository</id>
  205. <name>Sonatype Releases Repository</name>
  206. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  207. </repository>
  208. </distributionManagement>
  209. <!-- we need to be able to sign the jars we install -->
  210. <build>
  211. <plugins>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-gpg-plugin</artifactId>
  215. <configuration>
  216. <passphrase>${gpg.passphrase}</passphrase>
  217. <useAgent>${gpg.useAgent}</useAgent>
  218. </configuration>
  219. <executions>
  220. <execution>
  221. <id>sign-artifacts</id>
  222. <phase>verify</phase>
  223. <goals>
  224. <goal>sign</goal>
  225. </goals>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. </profile>
  232. <!-- profiles to add tools jar containing com.sun.jdi code
  233. needed by sample code
  234. -->
  235. <profile>
  236. <id>default-tools</id>
  237. <activation>
  238. <os>
  239. <family>!mac</family>
  240. </os>
  241. </activation>
  242. <dependencies>
  243. <dependency>
  244. <groupId>com.sun</groupId>
  245. <artifactId>tools</artifactId>
  246. <version>${java.version}</version>
  247. <scope>system</scope>
  248. <optional>true</optional>
  249. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  250. </dependency>
  251. </dependencies>
  252. </profile>
  253. <profile>
  254. <id>mac-tools</id>
  255. <activation>
  256. <os>
  257. <family>mac</family>
  258. </os>
  259. </activation>
  260. <dependencies>
  261. <dependency>
  262. <groupId>com.sun</groupId>
  263. <artifactId>tools</artifactId>
  264. <version>${java.version}</version>
  265. <scope>system</scope>
  266. <optional>true</optional>
  267. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  268. </dependency>
  269. </dependencies>
  270. </profile>
  271. </profiles>
  272. <dependencies>
  273. <dependency>
  274. <groupId>junit</groupId>
  275. <artifactId>junit</artifactId>
  276. <version>3.8.1</version>
  277. <scope>test</scope>
  278. </dependency>
  279. </dependencies>
  280. </project>