parent-1.3.2.pom 7.7 KB

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