minidev-parent-2.2.pom 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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>minidev-parent</artifactId>
  6. <version>2.2</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. <organization>
  12. <name>Chemouni Uriel</name>
  13. <url>http://www.minidev.net/</url>
  14. </organization>
  15. <developers>
  16. <developer>
  17. <id>uriel</id>
  18. <name>Uriel Chemouni</name>
  19. <email>uchemouni@gmail.com</email>
  20. <timezone>GMT+1</timezone>
  21. <roles>
  22. </roles>
  23. </developer>
  24. </developers>
  25. <licenses>
  26. <license>
  27. <name>The Apache Software License, Version 2.0</name>
  28. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  29. <distribution>repo</distribution>
  30. <comments>All files under Apache 2</comments>
  31. </license>
  32. </licenses>
  33. <properties>
  34. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  35. <maven.compiler.source>1.5</maven.compiler.source>
  36. <maven.compiler.target>1.5</maven.compiler.target>
  37. </properties>
  38. <build>
  39. <plugins>
  40. <!--
  41. <plugin> updated on 29/07/2015
  42. <groupId>org.sonatype.plugins</groupId>
  43. <artifactId>nexus-staging-maven-plugin</artifactId>
  44. <version>1.6.3</version>
  45. <extensions>true</extensions>
  46. <configuration>
  47. <serverId>ossrh</serverId>
  48. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  49. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  50. </configuration>
  51. </plugin>
  52. -->
  53. <plugin> <!-- updated on 29/07/2015 -->
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-source-plugin</artifactId>
  56. <version>2.4</version>
  57. <executions>
  58. <execution>
  59. <id>bind-sources</id>
  60. <goals>
  61. <goal>jar-no-fork</goal>
  62. </goals>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-compiler-plugin</artifactId>
  69. <version>2.3.2</version>
  70. <configuration>
  71. <encoding>UTF-8</encoding>
  72. <source>1.6</source>
  73. <target>1.6</target>
  74. <excludes>
  75. <exclude>**/.svn/*</exclude>
  76. <exclude>**/.svn</exclude>
  77. </excludes>
  78. </configuration>
  79. </plugin>
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-resources-plugin</artifactId>
  83. <version>2.5</version>
  84. <configuration>
  85. <encoding>UTF-8</encoding>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-jar-plugin</artifactId>
  91. <version>2.3.1</version>
  92. <configuration>
  93. <excludes>
  94. <exclude>**/.svn/*</exclude>
  95. <exclude>**/.svn</exclude>
  96. </excludes>
  97. </configuration>
  98. </plugin>
  99. <plugin> <!-- updated on 29/07/2015 -->
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-javadoc-plugin</artifactId>
  102. <version>2.10.3</version>
  103. <!-- ONLY NEEDED With jdk 1.7+ -->
  104. <configuration>
  105. <failOnError>false</failOnError>
  106. <additionalparam>-Xdoclint:none</additionalparam>
  107. </configuration>
  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>../accessors-smart</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. <snapshotRepository>
  154. <id>ossrh</id>
  155. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  156. </snapshotRepository>
  157. <repository>
  158. <id>ossrh</id>
  159. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  160. </repository>
  161. <!--
  162. <snapshotRepository>
  163. <id>ossrh</id>
  164. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  165. </snapshotRepository>
  166. -->
  167. </distributionManagement>
  168. <profiles>
  169. <profile>
  170. <id>release-sign-artifacts</id>
  171. <activation>
  172. <property>
  173. <!-- will be set by the release plugin upon performing mvn release:perform -->
  174. <name>performRelease</name>
  175. <value>true</value>
  176. </property>
  177. </activation>
  178. <properties>
  179. <gpg.keyname>8E322ED0</gpg.keyname>
  180. <!-- 2C8DF6EC Loosed Key -->
  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> <!-- updated on 29/07/2015 -->
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-gpg-plugin</artifactId>
  200. <version>1.6</version>
  201. <executions>
  202. <execution>
  203. <id>sign-artifacts</id>
  204. <phase>verify</phase>
  205. <goals>
  206. <goal>sign</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. <!-- Publish also javadocs when releasing - required by Sonatype -->
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-javadoc-plugin</artifactId>
  215. <executions>
  216. <execution>
  217. <id>attach-javadocs</id>
  218. <goals>
  219. <goal>jar</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <!-- Release Plugin (Update version in POM before/after release, create
  225. tag, deploy) to try: mvn release:prepare -DdryRun=true && mvn release:clean
  226. to perform: mvn release:prepare release:perform Read http://nexus.sonatype.org/oss-repository-hosting.html#3
  227. for instructions on releasing to this project's Sonatype repository -->
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-release-plugin</artifactId>
  231. <version>2.5.2</version>
  232. <configuration>
  233. <mavenExecutorId>forked-path</mavenExecutorId>
  234. <arguments>-Psonatype-oss-release</arguments>
  235. <autoVersionSubmodules>false</autoVersionSubmodules>
  236. <useReleaseProfile>false</useReleaseProfile>
  237. <releaseProfiles>release</releaseProfiles>
  238. <goals>deploy</goals>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </profile>
  244. <profile>
  245. <id>include-sources</id>
  246. <build>
  247. <resources>
  248. <resource>
  249. <targetPath>/</targetPath>
  250. <filtering>true</filtering>
  251. <directory>src/main/java</directory>
  252. <includes>
  253. <include>**/*.java</include>
  254. </includes>
  255. </resource>
  256. </resources>
  257. </build>
  258. </profile>
  259. </profiles>
  260. <dependencyManagement>
  261. <dependencies>
  262. <dependency>
  263. <groupId>net.minidev</groupId>
  264. <artifactId>json-smart</artifactId>
  265. <version>${project.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>net.minidev</groupId>
  269. <artifactId>accessors-smart</artifactId>
  270. <version>1.1</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>net.minidev</groupId>
  274. <artifactId>json-smart-mini</artifactId>
  275. <version>${project.version}</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>junit</groupId>
  279. <artifactId>junit</artifactId>
  280. <version>3.8.2</version>
  281. </dependency>
  282. </dependencies>
  283. </dependencyManagement>
  284. </project>