pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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>cz.hsrs.maplog</groupId>
  4. <artifactId>DBService</artifactId>
  5. <packaging>war</packaging>
  6. <version>15</version>
  7. <name>dbservice Maven Webapp</name>
  8. <url>http://maven.apache.org</url>
  9. <build>
  10. <finalName>${project.artifactId}-${project.version}</finalName>
  11. <sourceDirectory>./src/main/java</sourceDirectory>
  12. <testSourceDirectory>./src/test/java</testSourceDirectory>
  13. <resources>
  14. <resource>
  15. <directory>./src/main/resources</directory>
  16. <filtering>true</filtering>
  17. </resource>
  18. </resources>
  19. <testResources>
  20. <testResource>
  21. <directory>./src/test/resources</directory>
  22. </testResource>
  23. </testResources>
  24. <plugins>
  25. <plugin>
  26. <groupId>org.codehaus.mojo</groupId>
  27. <artifactId>buildnumber-maven-plugin</artifactId>
  28. <version>1.3</version>
  29. <executions>
  30. <execution>
  31. <phase>validate</phase>
  32. <goals>
  33. <goal>create</goal>
  34. </goals>
  35. </execution>
  36. </executions>
  37. <configuration>
  38. <doCheck>false</doCheck>
  39. <doUpdate>false</doUpdate>
  40. </configuration>
  41. </plugin>
  42. <!-- HACK for testing -->
  43. <plugin>
  44. <groupId>org.eclipse.jetty</groupId>
  45. <artifactId>jetty-maven-plugin</artifactId>
  46. <version>9.4.44.v20210927</version>
  47. </plugin>
  48. <!-- HACK for testing -->
  49. <plugin>
  50. <groupId>org.apache.tomcat.maven</groupId>
  51. <artifactId>tomcat7-maven-plugin</artifactId>
  52. <version>2.2</version>
  53. <configuration>
  54. <url>http://foodie.lesprojekt.cz:8080/manager/text</url>
  55. <server>foodietomcat</server>
  56. <path>/MapLog</path>
  57. <!--<path>/MapLogLV</path>-->
  58. <!--<path>/MapLogIT</path>-->
  59. <!--<path>/MapLogOT</path>-->
  60. </configuration>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-war-plugin</artifactId>
  65. <version>2.0.2</version>
  66. <configuration>
  67. <!-- HACK for testing -->
  68. <skipTests>true</skipTests>
  69. <!-- HACK for testing -->
  70. <archive>
  71. <manifest>
  72. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  73. </manifest>
  74. <manifestEntries>
  75. <Implementation-Build>${buildNumber}</Implementation-Build>
  76. </manifestEntries>
  77. </archive>
  78. <warSourceExcludes>wwwlibs/**</warSourceExcludes>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <groupId>org.codehaus.mojo</groupId>
  83. <artifactId>cobertura-maven-plugin</artifactId>
  84. <version>2.4</version>
  85. <configuration>
  86. <instrumentation>
  87. <ignores>
  88. <ignore>com.example.boringcode.*</ignore>
  89. </ignores>
  90. <excludes>
  91. <exclude>com/example/dullcode/**/*.class</exclude>
  92. <exclude>com/example/**/*Test.class</exclude>
  93. </excludes>
  94. </instrumentation>
  95. </configuration>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>clean</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. <pluginManagement>
  106. <plugins>
  107. <!-- ======================================================= -->
  108. <!-- Compilation. -->
  109. <!-- ======================================================= -->
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-compiler-plugin</artifactId>
  113. <version>2.0.2</version>
  114. <configuration>
  115. <source>1.8</source> <!-- The -source argument for the Java compiler. -->
  116. <target>1.8</target> <!-- The -target argument for the Java compiler. -->
  117. <debug>true</debug> <!-- Whether to include debugging information. -->
  118. <encoding>UTF-8</encoding> <!-- The -encoding argument for the Java compiler. -->
  119. </configuration>
  120. </plugin>
  121. </plugins>
  122. </pluginManagement>
  123. </build>
  124. <dependencies>
  125. <!-- Tests -->
  126. <dependency>
  127. <groupId>junit</groupId>
  128. <artifactId>junit</artifactId>
  129. <version>4.5</version>
  130. <scope>test</scope>
  131. </dependency>
  132. <!-- JETTY -->
  133. <!--
  134. <dependency>
  135. <groupId>org.eclipse.jetty</groupId>
  136. <artifactId>jetty-server</artifactId>
  137. <version>${jetty.version}</version>
  138. <scope>provided</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.eclipse.jetty</groupId>
  142. <artifactId>jetty-util</artifactId>
  143. <version>${jetty.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.mortbay.jetty</groupId>
  147. <artifactId>jsp-2.1-jetty</artifactId>
  148. <version>6.1.26</version>
  149. </dependency>
  150. -->
  151. <dependency>
  152. <groupId>org.mortbay.jetty</groupId>
  153. <artifactId>jetty</artifactId>
  154. <version>${jetty.version}</version>
  155. <scope>provided</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.mortbay.jetty</groupId>
  159. <artifactId>jetty-servlet-tester</artifactId>
  160. <version>${jetty.version}</version>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.mortbay.jetty</groupId>
  165. <artifactId>jetty-util</artifactId>
  166. <version>${jetty.version}</version>
  167. <scope>provided</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.mortbay.jetty</groupId>
  171. <artifactId>jetty-management</artifactId>
  172. <version>${jetty.version}</version>
  173. <scope>provided</scope>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.mortbay.jetty</groupId>
  177. <artifactId>jsp-2.1-jetty</artifactId>
  178. <version>${jetty.version}</version>
  179. <scope>provided</scope>
  180. </dependency>
  181. <!-- JETTY -->
  182. <!-- Provided dependencies -->
  183. <dependency>
  184. <groupId>net.sf.jasperreports</groupId>
  185. <artifactId>jasperreports</artifactId>
  186. <version>4.5.0</version>
  187. <scope>provided</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>javax</groupId>
  191. <artifactId>javaee-api</artifactId>
  192. <version>7.0</version>
  193. <scope>provided</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.fasterxml.jackson.core</groupId>
  197. <artifactId>jackson-core</artifactId>
  198. <version>2.9.7</version>
  199. <!-- <version>2.11.1</version> -->
  200. </dependency>
  201. <dependency>
  202. <groupId>com.fasterxml.jackson.core</groupId>
  203. <artifactId>jackson-annotations</artifactId>
  204. <version>2.9.7</version>
  205. </dependency>
  206. <!-- JERSEY -->
  207. <dependency>
  208. <groupId>org.glassfish.jersey.containers</groupId>
  209. <artifactId>jersey-container-servlet</artifactId>
  210. <version>${jersey2.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.glassfish.jersey.core</groupId>
  214. <artifactId>jersey-client</artifactId>
  215. <version>${jersey2.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.glassfish.jersey.media</groupId>
  219. <artifactId>jersey-media-json-jackson</artifactId>
  220. <version>${jersey2.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.glassfish.jersey.media</groupId>
  224. <artifactId>jersey-media-multipart</artifactId>
  225. <version>${jersey2.version}</version>
  226. </dependency>
  227. <!-- JERSEY -->
  228. <!-- https://mvnrepository.com/artifact/org.jvnet.mimepull/mimepull -->
  229. <dependency>
  230. <groupId>org.jvnet.mimepull</groupId>
  231. <artifactId>mimepull</artifactId>
  232. <version>1.9.3</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>commons-io</groupId>
  236. <artifactId>commons-io</artifactId>
  237. <version>2.7</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>net.sf.json-lib</groupId>
  241. <artifactId>json-lib</artifactId>
  242. <version>2.4</version>
  243. <classifier>jdk15</classifier>
  244. </dependency>
  245. <dependency>
  246. <groupId>commons-collections</groupId>
  247. <artifactId>commons-collections</artifactId>
  248. <version>3.2.2</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.jfree</groupId>
  252. <artifactId>jfreechart</artifactId>
  253. <version>1.5.0</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.postgresql</groupId>
  257. <artifactId>postgresql</artifactId>
  258. <version>42.2.14</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>javax.xml.bind</groupId>
  262. <artifactId>jaxb-api</artifactId>
  263. <version>2.3.1</version>
  264. </dependency>
  265. </dependencies>
  266. <properties>
  267. <jetty.version>6.1.22</jetty.version>
  268. <!--<jetty.version>9.4.44.v20210927</jetty.version>-->
  269. <jersey2.version>2.23</jersey2.version>
  270. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  271. <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
  272. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  273. <timestamp>${maven.build.timestamp}</timestamp>
  274. <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
  275. </properties>
  276. <reporting>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.codehaus.mojo</groupId>
  280. <artifactId>cobertura-maven-plugin</artifactId>
  281. <version>2.4</version>
  282. </plugin>
  283. </plugins>
  284. </reporting>
  285. <scm>
  286. <connection>scm:git:git+ssh://git@git.ccss.cz/ccss/maplogagri</connection>
  287. <developerConnection>scm:git:git+ssh://git@git.ccss.cz/ccss/maplogagri</developerConnection>
  288. <url>http://somerepository.com/view.cvs/tags/DBService-1.3</url>
  289. </scm>
  290. <repositories>
  291. <repository>
  292. <id>com.mvnrepository</id>
  293. <name>mvnrepository</name>
  294. <url>http://mvnrepository.com</url>
  295. </repository>
  296. </repositories>
  297. </project>