parent-2.0.pom 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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>net.minidev</groupId>
  5. <artifactId>parent</artifactId>
  6. <version>2.0</version>
  7. <name>Minidev super pom</name>
  8. <description>minidev common properties.</description>
  9. <packaging>pom</packaging>
  10. <url>http://www.minidev.net/</url>
  11. <parent>
  12. <groupId>org.sonatype.oss</groupId>
  13. <artifactId>oss-parent</artifactId>
  14. <version>7</version>
  15. </parent>
  16. <organization>
  17. <name>Chemouni Uriel</name>
  18. <url>http://www.minidev.net/</url>
  19. </organization>
  20. <developers>
  21. <developer>
  22. <id>uriel</id>
  23. <name>Uriel Chemouni</name>
  24. <email>uchemouni@gmail.com</email>
  25. <timezone>GMT+1</timezone>
  26. <roles>
  27. </roles>
  28. </developer>
  29. </developers>
  30. <licenses>
  31. <license>
  32. <name>The Apache Software License, Version 2.0</name>
  33. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  34. <distribution>repo</distribution>
  35. <comments>All files under Apache 2</comments>
  36. </license>
  37. </licenses>
  38. <properties>
  39. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  40. <maven.compiler.source>1.5</maven.compiler.source>
  41. <maven.compiler.target>1.5</maven.compiler.target>
  42. </properties>
  43. <build>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.apache.felix</groupId>
  47. <artifactId>maven-bundle-plugin</artifactId>
  48. <extensions>true</extensions>
  49. <version>2.3.7</version>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-source-plugin</artifactId>
  54. <version>2.1.2</version>
  55. <executions>
  56. <execution>
  57. <id>bind-sources</id>
  58. <goals>
  59. <goal>jar</goal>
  60. </goals>
  61. </execution>
  62. </executions>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <version>2.3.2</version>
  68. <configuration>
  69. <encoding>UTF-8</encoding>
  70. <source>1.6</source>
  71. <target>1.6</target>
  72. <excludes>
  73. <exclude>**/.svn/*</exclude>
  74. <exclude>**/.svn</exclude>
  75. </excludes>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-resources-plugin</artifactId>
  81. <version>2.5</version>
  82. <configuration>
  83. <encoding>UTF-8</encoding>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-jar-plugin</artifactId>
  89. <version>2.3.1</version>
  90. <configuration>
  91. <excludes>
  92. <exclude>**/.svn/*</exclude>
  93. <exclude>**/.svn</exclude>
  94. </excludes>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-javadoc-plugin</artifactId>
  100. <version>2.8</version>
  101. <!-- ONLY NEEDED With jdk 1.7+ -->
  102. <!--
  103. <configuration>
  104. <failOnError>false</failOnError>
  105. <additionalparam>-Xdoclint:none</additionalparam>
  106. </configuration>
  107. -->
  108. <executions>
  109. <execution>
  110. <id>attach-javadocs</id>
  111. <goals>
  112. <goal>jar</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. <scm>
  120. <!-- ON GIT HUB -->
  121. <connection>scm:git:https://github.com/netplex/json-smart-v2.git</connection>
  122. <developerConnection>scm:git:https://github.com/netplex/json-smart-v2.git</developerConnection>
  123. <url>https://github.com/netplex/json-smart-v2</url>
  124. </scm>
  125. <reporting>
  126. <plugins>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-checkstyle-plugin</artifactId>
  130. <version>2.6</version>
  131. <configuration>
  132. <configLocation>config/sun_checks.xml</configLocation>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. </reporting>
  137. <modules>
  138. <!-- <module>../commons</module> -->
  139. <!-- <module>../conf</module> -->
  140. <!-- <module>../csv</module> -->
  141. <!-- <module>../db</module> -->
  142. <!-- <module>../html</module> -->
  143. <module>../asm</module>
  144. <module>../json-smart</module>
  145. <!-- <module>../json-smart-mini</module> -->
  146. <!-- <module>../minibase</module> -->
  147. <!-- <module>../minibase-srv</module> -->
  148. <!-- <module>../minibase-gae</module> -->
  149. <!-- <module>../ovh</module> -->
  150. <!-- <module>../types</module> -->
  151. </modules>
  152. <distributionManagement>
  153. <!-- My project's Sonatype repository to be used by the release plugin -->
  154. <repository>
  155. <id>sonatype-nexus-staging</id>
  156. <name>Nexus Release Repository</name>
  157. <url>
  158. http://oss.sonatype.org/service/local/staging/deploy/maven2
  159. </url>
  160. </repository>
  161. <snapshotRepository>
  162. <id>sonatype-nexus-snapshots</id>
  163. <name>My Nexus Snapshots Repository</name>
  164. <url>
  165. https://oss.sonatype.org/content/repositories/snapshots
  166. </url>
  167. </snapshotRepository>
  168. </distributionManagement>
  169. <profiles>
  170. <profile>
  171. <id>release-sign-artifacts</id>
  172. <activation>
  173. <property>
  174. <!-- will be set by the release plugin upon performing mvn release:perform -->
  175. <name>performRelease</name>
  176. <value>true</value>
  177. </property>
  178. </activation>
  179. <properties>
  180. <gpg.keyname>2C8DF6EC</gpg.keyname>
  181. <!-- <gpg.keyname>Uriel Chemouni (dev) <uchemouni@gmail.com></gpg.keyname> -->
  182. <!-- GPG Key ID to use for signing -->
  183. </properties>
  184. <build>
  185. <plugins>
  186. <!-- Enable signing of the artifacts For gpg:sign-and-deploy-file it's
  187. necessary to have a <server> with the repositoryId provided or id="remote-repository"
  188. defined in settings.xml (it contains the repository's login, psw) Signing:
  189. mvn gpg:sign-and-deploy-file -DpomFile=target/myapp-1.0.pom -Dfile=target/myapp-1.0.jar
  190. -Durl=http://oss.sonatype.org/content/repositories/malyvelky/ -DrepositoryId=sonatype_oss
  191. Note normally it uses the defaul key but we can ovveride it by either setting
  192. the property gpg.keyname (done in this POM) or by providing -Dkeyname=66AE163A
  193. on the command line. OR directly w/ gpg (remove space in - -): gpg -u 66AE163A
  194. - -sign - -detach-sign -a target/dbunit-embeddedderby-parenttest.jar Note:
  195. "mvn gpg:sign" results in NPE with v 1.o-a.-4, use "mvn package gpg:sign"
  196. instead; see the issue MGPG-18 -->
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-gpg-plugin</artifactId>
  200. <!-- <version>1.0-alpha-4</version> -->
  201. <version>1.2</version>
  202. <executions>
  203. <execution>
  204. <id>sign-artifacts</id>
  205. <phase>verify</phase>
  206. <goals>
  207. <goal>sign</goal>
  208. </goals>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <!-- Publish also javadocs when releasing - required by Sonatype -->
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-javadoc-plugin</artifactId>
  216. <executions>
  217. <execution>
  218. <id>attach-javadocs</id>
  219. <goals>
  220. <goal>jar</goal>
  221. </goals>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <!-- Release Plugin (Update version in POM before/after release, create
  226. tag, deploy) to try: mvn release:prepare -DdryRun=true && mvn release:clean
  227. to perform: mvn release:prepare release:perform Read http://nexus.sonatype.org/oss-repository-hosting.html#3
  228. for instructions on releasing to this project's Sonatype repository -->
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-release-plugin</artifactId>
  232. <version>2.1</version>
  233. </plugin>
  234. </plugins>
  235. </build>
  236. </profile>
  237. <profile>
  238. <id>include-sources</id>
  239. <build>
  240. <resources>
  241. <resource>
  242. <targetPath>/</targetPath>
  243. <filtering>true</filtering>
  244. <directory>src/main/java</directory>
  245. <includes>
  246. <include>**/*.java</include>
  247. </includes>
  248. </resource>
  249. </resources>
  250. </build>
  251. </profile>
  252. </profiles>
  253. <dependencyManagement>
  254. <dependencies>
  255. <dependency>
  256. <groupId>net.minidev</groupId>
  257. <artifactId>json-smart</artifactId>
  258. <version>${project.version}</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>net.minidev</groupId>
  262. <artifactId>asm</artifactId>
  263. <version>1.0</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>net.minidev</groupId>
  267. <artifactId>json-smart-mini</artifactId>
  268. <version>${project.version}</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>junit</groupId>
  272. <artifactId>junit</artifactId>
  273. <version>3.8.2</version>
  274. </dependency>
  275. </dependencies>
  276. </dependencyManagement>
  277. </project>