parent-2.1.0.pom 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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.1.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.10.1</version>
  101. <!-- ONLY NEEDED With jdk 1.7+ -->
  102. <configuration>
  103. <failOnError>false</failOnError>
  104. <additionalparam>-Xdoclint:none</additionalparam>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <id>attach-javadocs</id>
  109. <goals>
  110. <goal>jar</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. <scm>
  118. <!-- ON GIT HUB -->
  119. <connection>scm:git:https://github.com/netplex/json-smart-v2.git</connection>
  120. <developerConnection>scm:git:https://github.com/netplex/json-smart-v2.git</developerConnection>
  121. <url>https://github.com/netplex/json-smart-v2</url>
  122. </scm>
  123. <reporting>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-checkstyle-plugin</artifactId>
  128. <version>2.6</version>
  129. <configuration>
  130. <configLocation>config/sun_checks.xml</configLocation>
  131. </configuration>
  132. </plugin>
  133. </plugins>
  134. </reporting>
  135. <modules>
  136. <!-- <module>../commons</module> -->
  137. <!-- <module>../conf</module> -->
  138. <!-- <module>../csv</module> -->
  139. <!-- <module>../db</module> -->
  140. <!-- <module>../html</module> -->
  141. <module>../asm</module>
  142. <module>../json-smart</module>
  143. <!-- <module>../json-smart-mini</module> -->
  144. <!-- <module>../minibase</module> -->
  145. <!-- <module>../minibase-srv</module> -->
  146. <!-- <module>../minibase-gae</module> -->
  147. <!-- <module>../ovh</module> -->
  148. <!-- <module>../types</module> -->
  149. </modules>
  150. <distributionManagement>
  151. <!-- My project's Sonatype repository to be used by the release plugin -->
  152. <repository>
  153. <id>sonatype-nexus-staging</id>
  154. <name>Nexus Release Repository</name>
  155. <url>
  156. http://oss.sonatype.org/service/local/staging/deploy/maven2
  157. </url>
  158. </repository>
  159. <snapshotRepository>
  160. <id>sonatype-nexus-snapshots</id>
  161. <name>My Nexus Snapshots Repository</name>
  162. <url>
  163. https://oss.sonatype.org/content/repositories/snapshots
  164. </url>
  165. </snapshotRepository>
  166. </distributionManagement>
  167. <profiles>
  168. <profile>
  169. <id>release-sign-artifacts</id>
  170. <activation>
  171. <property>
  172. <!-- will be set by the release plugin upon performing mvn release:perform -->
  173. <name>performRelease</name>
  174. <value>true</value>
  175. </property>
  176. </activation>
  177. <properties>
  178. <gpg.keyname>2C8DF6EC</gpg.keyname>
  179. <!-- <gpg.keyname>Uriel Chemouni (dev) <uchemouni@gmail.com></gpg.keyname> -->
  180. <!-- GPG Key ID to use for signing -->
  181. </properties>
  182. <build>
  183. <plugins>
  184. <!-- Enable signing of the artifacts For gpg:sign-and-deploy-file it's
  185. necessary to have a <server> with the repositoryId provided or id="remote-repository"
  186. defined in settings.xml (it contains the repository's login, psw) Signing:
  187. mvn gpg:sign-and-deploy-file -DpomFile=target/myapp-1.0.pom -Dfile=target/myapp-1.0.jar
  188. -Durl=http://oss.sonatype.org/content/repositories/malyvelky/ -DrepositoryId=sonatype_oss
  189. Note normally it uses the defaul key but we can ovveride it by either setting
  190. the property gpg.keyname (done in this POM) or by providing -Dkeyname=66AE163A
  191. on the command line. OR directly w/ gpg (remove space in - -): gpg -u 66AE163A
  192. - -sign - -detach-sign -a target/dbunit-embeddedderby-parenttest.jar Note:
  193. "mvn gpg:sign" results in NPE with v 1.o-a.-4, use "mvn package gpg:sign"
  194. instead; see the issue MGPG-18 -->
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-gpg-plugin</artifactId>
  198. <!-- <version>1.0-alpha-4</version> -->
  199. <version>1.2</version>
  200. <executions>
  201. <execution>
  202. <id>sign-artifacts</id>
  203. <phase>verify</phase>
  204. <goals>
  205. <goal>sign</goal>
  206. </goals>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <!-- Publish also javadocs when releasing - required by Sonatype -->
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-javadoc-plugin</artifactId>
  214. <executions>
  215. <execution>
  216. <id>attach-javadocs</id>
  217. <goals>
  218. <goal>jar</goal>
  219. </goals>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <!-- Release Plugin (Update version in POM before/after release, create
  224. tag, deploy) to try: mvn release:prepare -DdryRun=true && mvn release:clean
  225. to perform: mvn release:prepare release:perform Read http://nexus.sonatype.org/oss-repository-hosting.html#3
  226. for instructions on releasing to this project's Sonatype repository -->
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-release-plugin</artifactId>
  230. <version>2.1</version>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. </profile>
  235. <profile>
  236. <id>include-sources</id>
  237. <build>
  238. <resources>
  239. <resource>
  240. <targetPath>/</targetPath>
  241. <filtering>true</filtering>
  242. <directory>src/main/java</directory>
  243. <includes>
  244. <include>**/*.java</include>
  245. </includes>
  246. </resource>
  247. </resources>
  248. </build>
  249. </profile>
  250. </profiles>
  251. <dependencyManagement>
  252. <dependencies>
  253. <dependency>
  254. <groupId>net.minidev</groupId>
  255. <artifactId>json-smart</artifactId>
  256. <version>${project.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>net.minidev</groupId>
  260. <artifactId>asm</artifactId>
  261. <version>1.0.2</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>net.minidev</groupId>
  265. <artifactId>json-smart-mini</artifactId>
  266. <version>${project.version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>junit</groupId>
  270. <artifactId>junit</artifactId>
  271. <version>3.8.2</version>
  272. </dependency>
  273. </dependencies>
  274. </dependencyManagement>
  275. </project>