github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example_osv_java_servlet/pom.xml (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 <groupId>org.springframework.samples</groupId> 6 <artifactId>spring-petclinic</artifactId> 7 <version>4.2.5-SNAPSHOT</version> 8 9 <name>petclinic</name> 10 <packaging>war</packaging> 11 12 <properties> 13 14 <!-- Generic properties --> 15 <java.version>1.7</java.version> 16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 17 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 18 19 <!-- Spring --> 20 <spring-io-platform.version>2.0.3.RELEASE</spring-io-platform.version> 21 <spring-data-jdbc.version>1.1.0.RELEASE</spring-data-jdbc.version> 22 23 24 <!-- Java EE / Java SE dependencies --> 25 <tomcat.version>7.0.59</tomcat.version> 26 27 <!-- Test --> 28 <assertj.version>2.2.0</assertj.version> 29 30 <!-- Dates --> 31 <jodatime-hibernate.version>1.3</jodatime-hibernate.version> 32 <jodatime-jsptags.version>1.1.1</jodatime-jsptags.version> 33 <jadira-usertype-core.version>3.2.0.GA</jadira-usertype-core.version> 34 35 <!-- Others --> 36 <mysql-driver.version>5.1.36</mysql-driver.version> 37 38 <!-- Web dependencies --> 39 <dandelion.version>1.1.1</dandelion.version> 40 <dandelion.datatables.version>1.1.0</dandelion.datatables.version> 41 42 <cobertura.version>2.7</cobertura.version> 43 44 </properties> 45 46 <dependencyManagement> 47 <!-- Import the maven Spring IO Platform Bill Of Materials (BOM) --> 48 <dependencies> 49 <dependency> 50 <groupId>io.spring.platform</groupId> 51 <artifactId>platform-bom</artifactId> 52 <version>${spring-io-platform.version}</version> 53 <type>pom</type> 54 <scope>import</scope> 55 </dependency> 56 </dependencies> 57 </dependencyManagement> 58 59 <dependencies> 60 <dependency> 61 <groupId>org.jadira.usertype</groupId> 62 <artifactId>usertype.core</artifactId> 63 <version>${jadira-usertype-core.version}</version> 64 </dependency> 65 <dependency> 66 <groupId>org.apache.tomcat</groupId> 67 <artifactId>tomcat-servlet-api</artifactId> 68 <version>${tomcat.version}</version> 69 <scope>provided</scope> 70 </dependency> 71 <dependency> 72 <groupId>javax.servlet.jsp</groupId> 73 <artifactId>javax.servlet.jsp-api</artifactId> 74 <scope>provided</scope> 75 </dependency> 76 <dependency> 77 <groupId>org.apache.tomcat</groupId> 78 <artifactId>tomcat-jasper-el</artifactId> 79 <version>${tomcat.version}</version> 80 <scope>provided</scope> 81 </dependency> 82 83 <dependency> 84 <groupId>javax.servlet.jsp.jstl</groupId> 85 <artifactId>javax.servlet.jsp.jstl-api</artifactId> 86 </dependency> 87 <dependency> 88 <groupId>org.apache.taglibs</groupId> 89 <artifactId>taglibs-standard-jstlel</artifactId> 90 </dependency> 91 <!-- JSon --> 92 <dependency> 93 <groupId>com.jayway.jsonpath</groupId> 94 <artifactId>json-path</artifactId> 95 <scope>test</scope> 96 </dependency> 97 <!-- SPRING, SPRING, SPRINGITY SPRING --> 98 <dependency> 99 <groupId>org.springframework.boot</groupId> 100 <artifactId>spring-boot-starter</artifactId> 101 </dependency> 102 <dependency> 103 <groupId>org.springframework.boot</groupId> 104 <artifactId>spring-boot-starter-data-jpa</artifactId> 105 </dependency> 106 107 <dependency> 108 <groupId>org.springframework.data</groupId> 109 <artifactId>spring-data-jdbc-core</artifactId> 110 <version>${spring-data-jdbc.version}</version> 111 <exclusions> 112 <exclusion> 113 <groupId>org.springframework</groupId> 114 <artifactId>*</artifactId> 115 </exclusion> 116 <!-- because Spring Data usually comes with a slightly older version of Spring --> 117 </exclusions> 118 </dependency> 119 120 <dependency> 121 <groupId>org.springframework</groupId> 122 <artifactId>spring-jdbc</artifactId> 123 </dependency> 124 <dependency> 125 <groupId>org.springframework</groupId> 126 <artifactId>spring-webmvc</artifactId> 127 </dependency> 128 <!-- used for EhCacheCacheManager --> 129 <dependency> 130 <groupId>org.springframework</groupId> 131 <artifactId>spring-context-support</artifactId> 132 </dependency> 133 <dependency> 134 <groupId>org.springframework</groupId> 135 <artifactId>spring-oxm</artifactId> 136 </dependency> 137 138 <dependency> 139 <groupId>org.aspectj</groupId> 140 <artifactId>aspectjrt</artifactId> 141 </dependency> 142 <dependency> 143 <groupId>org.aspectj</groupId> 144 <artifactId>aspectjweaver</artifactId> 145 <scope>runtime</scope> 146 </dependency> 147 148 <!-- Database connection pool 149 See here for more details on commons-dbcp versus tomcat-jdbc: 150 http://blog.ippon.fr/2013/03/13/improving-the-performance-of-the-spring-petclinic-sample-application-part-3-of-5/ 151 --> 152 <dependency> 153 <groupId>org.apache.tomcat</groupId> 154 <artifactId>tomcat-jdbc</artifactId> 155 <scope>runtime</scope> 156 </dependency> 157 158 <!-- Logging with SLF4J & LogBack --> 159 <dependency> 160 <groupId>org.slf4j</groupId> 161 <artifactId>slf4j-api</artifactId> 162 </dependency> 163 <dependency> 164 <groupId>ch.qos.logback</groupId> 165 <artifactId>logback-classic</artifactId> 166 <scope>runtime</scope> 167 </dependency> 168 169 <!-- Date and Time --> 170 <dependency> 171 <groupId>joda-time</groupId> 172 <artifactId>joda-time</artifactId> 173 </dependency> 174 <dependency> 175 <groupId>joda-time</groupId> 176 <artifactId>joda-time-hibernate</artifactId> 177 <version>${jodatime-hibernate.version}</version> 178 </dependency> 179 <dependency> 180 <groupId>joda-time</groupId> 181 <artifactId>joda-time-jsptags</artifactId> 182 <version>${jodatime-jsptags.version}</version> 183 </dependency> 184 185 <!-- Databases - Uses HSQL by default --> 186 <dependency> 187 <groupId>org.hsqldb</groupId> 188 <artifactId>hsqldb</artifactId> 189 <scope>runtime</scope> 190 </dependency> 191 192 <!-- For MySql only --> 193 <!--dependency> 194 <groupId>mysql</groupId> 195 <artifactId>mysql-connector-java</artifactId> 196 <version>${mysql-driver.version}</version> 197 </dependency--> 198 199 <!-- HIBERNATE --> 200 <dependency> 201 <groupId>org.hibernate</groupId> 202 <artifactId>hibernate-entitymanager</artifactId> 203 </dependency> 204 <dependency> 205 <groupId>org.hibernate</groupId> 206 <artifactId>hibernate-validator</artifactId> 207 </dependency> 208 209 <dependency> 210 <groupId>org.hibernate</groupId> 211 <artifactId>hibernate-ehcache</artifactId> 212 </dependency> 213 <dependency> 214 <groupId>net.sf.ehcache</groupId> 215 <artifactId>ehcache</artifactId> 216 <exclusions> 217 <exclusion> 218 <groupId>commons-logging</groupId> 219 <artifactId>commons-logging</artifactId> 220 </exclusion> 221 </exclusions> 222 </dependency> 223 224 <!-- Test Artifacts --> 225 <dependency> 226 <groupId>org.springframework</groupId> 227 <artifactId>spring-test</artifactId> 228 <scope>test</scope> 229 </dependency> 230 <dependency> 231 <groupId>junit</groupId> 232 <artifactId>junit</artifactId> 233 <scope>test</scope> 234 </dependency> 235 <dependency> 236 <groupId>org.assertj</groupId> 237 <artifactId>assertj-core</artifactId> 238 <version>${assertj.version}</version> 239 <scope>test</scope> 240 </dependency> 241 <dependency> 242 <groupId>org.mockito</groupId> 243 <artifactId>mockito-core</artifactId> 244 <scope>test</scope> 245 </dependency> 246 <dependency> 247 <groupId>org.hamcrest</groupId> 248 <artifactId>hamcrest-all</artifactId> 249 <scope>test</scope> 250 </dependency> 251 252 <!-- Dandelion --> 253 <dependency> 254 <groupId>com.github.dandelion</groupId> 255 <artifactId>dandelion-jsp</artifactId> 256 <version>${dandelion.version}</version> 257 </dependency> 258 <dependency> 259 <groupId>com.github.dandelion</groupId> 260 <artifactId>datatables-jsp</artifactId> 261 <version>${dandelion.datatables.version}</version> 262 </dependency> 263 <dependency> 264 <groupId>com.github.dandelion</groupId> 265 <artifactId>datatables-export-itext</artifactId> 266 <version>${dandelion.datatables.version}</version> 267 </dependency> 268 <!-- temporary fix: below dependency should not be necessary as it is a transitive dependency. 269 For some reason we can't build the app unless it is a first level dependency --> 270 <dependency> 271 <groupId>com.googlecode.json-simple</groupId> 272 <artifactId>json-simple</artifactId> 273 </dependency> 274 </dependencies> 275 276 <!-- Maven plugin versions are mentioned in order to guarantee the build reproducibility in the long term --> 277 <build> 278 <defaultGoal>install</defaultGoal> 279 <testResources> 280 <testResource> 281 <!-- declared explicitly so Spring config files can be placed next to their corresponding JUnit test class --> 282 <directory>${project.basedir}/src/test/java</directory> 283 </testResource> 284 <testResource> 285 <directory>${project.basedir}/src/test/resources</directory> 286 </testResource> 287 </testResources> 288 <plugins> 289 <plugin> 290 <groupId>org.apache.maven.plugins</groupId> 291 <artifactId>maven-compiler-plugin</artifactId> 292 <version>3.0</version> 293 <configuration> 294 <compilerArguments> 295 <Xlint/> 296 </compilerArguments> 297 <verbose>true</verbose> 298 <source>${java.version}</source> 299 <target>${java.version}</target> 300 <showWarnings>true</showWarnings> 301 </configuration> 302 </plugin> 303 <plugin> 304 <groupId>org.apache.maven.plugins</groupId> 305 <artifactId>maven-surefire-plugin</artifactId> 306 <version>2.13</version> 307 <configuration> 308 <includes> 309 <include>**/*Tests.java</include> 310 </includes> 311 </configuration> 312 </plugin> 313 <plugin> 314 <groupId>org.apache.maven.plugins</groupId> 315 <artifactId>maven-war-plugin</artifactId> 316 <version>2.3</version> 317 <configuration> 318 <warName>petclinic</warName> 319 </configuration> 320 </plugin> 321 <plugin> 322 <groupId>org.apache.maven.plugins</groupId> 323 <artifactId>maven-eclipse-plugin</artifactId> 324 <version>2.9</version> 325 <configuration> 326 <downloadSources>true</downloadSources> 327 <downloadJavadocs>true</downloadJavadocs> 328 <wtpversion>2.0</wtpversion> 329 <sourceIncludes> 330 <sourceInclude>**/*.*</sourceInclude> 331 </sourceIncludes> 332 <additionalBuildcommands> 333 <buildCommand> 334 <name>org.springframework.ide.eclipse.core.springbuilder</name> 335 </buildCommand> 336 <buildCommand> 337 <name>org.eclipse.m2e.core.maven2Builder</name> 338 </buildCommand> 339 </additionalBuildcommands> 340 <additionalProjectnatures> 341 <projectnature>org.eclipse.jdt.core.javanature</projectnature> 342 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> 343 <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature> 344 </additionalProjectnatures> 345 </configuration> 346 </plugin> 347 <plugin> 348 <groupId>org.apache.maven.plugins</groupId> 349 <artifactId>maven-assembly-plugin</artifactId> 350 <version>2.4</version> 351 <configuration> 352 <descriptorRefs> 353 <descriptorRef>jar-with-dependencies</descriptorRef> 354 </descriptorRefs> 355 </configuration> 356 </plugin> 357 <plugin> 358 <groupId>org.apache.tomcat.maven</groupId> 359 <artifactId>tomcat7-maven-plugin</artifactId> 360 <version>2.2</version> 361 <configuration> 362 <server>tomcat-development-server</server> 363 <port>9966</port> 364 <path>/petclinic</path> 365 </configuration> 366 </plugin> 367 <plugin> 368 <groupId>org.codehaus.mojo</groupId> 369 <artifactId>cobertura-maven-plugin</artifactId> 370 <version>${cobertura.version}</version> 371 <configuration> 372 <check/> 373 </configuration> 374 <executions> 375 <execution> 376 <goals> 377 <goal>clean</goal> 378 <goal>check</goal> 379 </goals> 380 </execution> 381 </executions> 382 </plugin> 383 </plugins> 384 </build> 385 <reporting> 386 <plugins> 387 388 <!-- integrate maven-cobertura-plugin to project site --> 389 <plugin> 390 <groupId>org.codehaus.mojo</groupId> 391 <artifactId>cobertura-maven-plugin</artifactId> 392 <version>${cobertura.version}</version> 393 <configuration> 394 <formats> 395 <format>html</format> 396 </formats> 397 <check/> 398 </configuration> 399 </plugin> 400 </plugins> 401 </reporting> 402 <profiles> 403 <profile> 404 <id>bower-install</id> 405 <build> 406 <plugins> 407 <plugin> 408 <groupId>org.codehaus.mojo</groupId> 409 <artifactId>exec-maven-plugin</artifactId> 410 <version>1.4.0</version> 411 <executions> 412 <execution> 413 <phase>generate-sources</phase> 414 <goals> 415 <goal>exec</goal> 416 </goals> 417 </execution> 418 </executions> 419 <configuration> 420 <executable>bower</executable> 421 <arguments> 422 <argument>install</argument> 423 </arguments> 424 <workingDirectory>${basedir}</workingDirectory> 425 </configuration> 426 </plugin> 427 </plugins> 428 </build> 429 </profile> 430 <profile> 431 <id>less-install</id> 432 <build> 433 <plugins> 434 <plugin> 435 <groupId>org.lesscss</groupId> 436 <artifactId>lesscss-maven-plugin</artifactId> 437 <version>1.7.0.1.1</version> 438 <configuration> 439 <sourceDirectory>${project.basedir}/src/main/webapp/resources/less</sourceDirectory> 440 <outputDirectory>${project.basedir}/src/main/webapp/resources/css</outputDirectory> 441 <compress>true</compress> 442 <includes> 443 <include>petclinic.less</include> 444 </includes> 445 </configuration> 446 <executions> 447 <execution> 448 <goals> 449 <goal>compile</goal> 450 </goals> 451 </execution> 452 </executions> 453 </plugin> 454 </plugins> 455 </build> 456 </profile> 457 </profiles> 458 459 <url>demopetclinic</url> 460 </project>