pom.xml 14 KB

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