pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. <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.mortbay.jetty</groupId>
  45. <artifactId>maven-jetty-plugin</artifactId>
  46. <version>6.1.22</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. <dependency>
  134. <groupId>org.mortbay.jetty</groupId>
  135. <artifactId>jetty</artifactId>
  136. <version>${jetty.version}</version>
  137. <scope>provided</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.mortbay.jetty</groupId>
  141. <artifactId>jetty-servlet-tester</artifactId>
  142. <version>${jetty.version}</version>
  143. <scope>test</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.mortbay.jetty</groupId>
  147. <artifactId>jetty-util</artifactId>
  148. <version>${jetty.version}</version>
  149. <scope>provided</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.mortbay.jetty</groupId>
  153. <artifactId>jetty-management</artifactId>
  154. <version>${jetty.version}</version>
  155. <scope>provided</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.mortbay.jetty</groupId>
  159. <artifactId>jsp-2.1-jetty</artifactId>
  160. <version>${jetty.version}</version>
  161. <scope>provided</scope>
  162. </dependency>
  163. <!-- JETTY -->
  164. <!-- Provided dependencies -->
  165. <dependency>
  166. <groupId>net.sf.jasperreports</groupId>
  167. <artifactId>jasperreports</artifactId>
  168. <version>4.5.0</version>
  169. <scope>provided</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>javax</groupId>
  173. <artifactId>javaee-api</artifactId>
  174. <version>7.0</version>
  175. <scope>provided</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>com.fasterxml.jackson.core</groupId>
  179. <artifactId>jackson-core</artifactId>
  180. <version>2.9.7</version>
  181. <!-- <version>2.11.1</version> -->
  182. </dependency>
  183. <dependency>
  184. <groupId>com.fasterxml.jackson.core</groupId>
  185. <artifactId>jackson-annotations</artifactId>
  186. <version>2.9.7</version>
  187. </dependency>
  188. <!-- JERSEY -->
  189. <dependency>
  190. <groupId>org.glassfish.jersey.containers</groupId>
  191. <artifactId>jersey-container-servlet</artifactId>
  192. <version>${jersey2.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.glassfish.jersey.core</groupId>
  196. <artifactId>jersey-client</artifactId>
  197. <version>${jersey2.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.glassfish.jersey.media</groupId>
  201. <artifactId>jersey-media-json-jackson</artifactId>
  202. <version>${jersey2.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.glassfish.jersey.media</groupId>
  206. <artifactId>jersey-media-multipart</artifactId>
  207. <version>${jersey2.version}</version>
  208. </dependency>
  209. <!-- JERSEY -->
  210. <!-- https://mvnrepository.com/artifact/org.jvnet.mimepull/mimepull -->
  211. <dependency>
  212. <groupId>org.jvnet.mimepull</groupId>
  213. <artifactId>mimepull</artifactId>
  214. <version>1.9.3</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>commons-io</groupId>
  218. <artifactId>commons-io</artifactId>
  219. <version>2.7</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>net.sf.json-lib</groupId>
  223. <artifactId>json-lib</artifactId>
  224. <version>2.4</version>
  225. <classifier>jdk15</classifier>
  226. </dependency>
  227. <dependency>
  228. <groupId>commons-collections</groupId>
  229. <artifactId>commons-collections</artifactId>
  230. <version>3.2.2</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.jfree</groupId>
  234. <artifactId>jfreechart</artifactId>
  235. <version>1.5.0</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.postgresql</groupId>
  239. <artifactId>postgresql</artifactId>
  240. <version>42.2.14</version>
  241. </dependency>
  242. </dependencies>
  243. <properties>
  244. <jetty.version>6.1.22</jetty.version>
  245. <jersey2.version>2.23</jersey2.version>
  246. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  247. <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
  248. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  249. <timestamp>${maven.build.timestamp}</timestamp>
  250. <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
  251. </properties>
  252. <reporting>
  253. <plugins>
  254. <plugin>
  255. <groupId>org.codehaus.mojo</groupId>
  256. <artifactId>cobertura-maven-plugin</artifactId>
  257. <version>2.4</version>
  258. </plugin>
  259. </plugins>
  260. </reporting>
  261. <scm>
  262. <connection>scm:git:git+ssh://git@git.ccss.cz/ccss/maplogagri</connection>
  263. <developerConnection>scm:git:git+ssh://git@git.ccss.cz/ccss/maplogagri</developerConnection>
  264. <url>http://somerepository.com/view.cvs/tags/DBService-1.3</url>
  265. </scm>
  266. <repositories>
  267. <repository>
  268. <id>com.mvnrepository</id>
  269. <name>mvnrepository</name>
  270. <url>http://mvnrepository.com</url>
  271. </repository>
  272. </repositories>
  273. </project>