pom.xml 11 KB

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