|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 2 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xmlns="http://maven.apache.org/POM/4.0.0" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 | <groupId>com.example</groupId> |
7 | | - <version>1.0-SNAPSHOT</version> |
8 | | - <artifactId>helloworld</artifactId> |
| 7 | + <artifactId>java-getting-started</artifactId> |
| 8 | + <version>1.0</version> |
| 9 | + |
| 10 | + <parent> |
| 11 | + <groupId>org.springframework.boot</groupId> |
| 12 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 13 | + <version>1.5.2.RELEASE</version> |
| 14 | + </parent> |
| 15 | + <name>spring-getting-started</name> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <java.version>1.8</java.version> |
| 19 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 20 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 21 | + <webjars-bootstrap.version>3.3.6</webjars-bootstrap.version> |
| 22 | + <webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version> |
| 23 | + <webjars-jquery.version>2.2.4</webjars-jquery.version> |
| 24 | + <thymeleaf.version>3.0.2.RELEASE</thymeleaf.version> |
| 25 | + </properties> |
| 26 | + |
9 | 27 | <dependencies> |
| 28 | + <!-- Spring and Spring Boot dependencies --> |
10 | 29 | <dependency> |
11 | | - <groupId>com.sparkjava</groupId> |
12 | | - <artifactId>spark-core</artifactId> |
13 | | - <version>2.2</version> |
| 30 | + <groupId>org.springframework.boot</groupId> |
| 31 | + <artifactId>spring-boot-starter-actuator</artifactId> |
14 | 32 | </dependency> |
15 | 33 | <dependency> |
16 | | - <groupId>com.sparkjava</groupId> |
17 | | - <artifactId>spark-template-freemarker</artifactId> |
18 | | - <version>2.0.0</version> |
| 34 | + <groupId>org.springframework.boot</groupId> |
| 35 | + <artifactId>spring-boot-starter-cache</artifactId> |
| 36 | + </dependency> |
| 37 | + <dependency> |
| 38 | + <groupId>org.springframework.boot</groupId> |
| 39 | + <artifactId>spring-boot-starter-web</artifactId> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>org.springframework.boot</groupId> |
| 43 | + <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 44 | + <exclusions> |
| 45 | + <exclusion> |
| 46 | + <groupId>nz.net.ultraq.thymeleaf</groupId> |
| 47 | + <artifactId>thymeleaf-layout-dialect</artifactId> |
| 48 | + </exclusion> |
| 49 | + </exclusions> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.springframework.boot</groupId> |
| 53 | + <artifactId>spring-boot-starter-test</artifactId> |
| 54 | + <scope>test</scope> |
19 | 55 | </dependency> |
20 | 56 | <dependency> |
21 | 57 | <groupId>org.postgresql</groupId> |
22 | 58 | <artifactId>postgresql</artifactId> |
23 | | - <version>9.4-1201-jdbc4</version> |
| 59 | + <version>9.4.1212</version> |
24 | 60 | </dependency> |
25 | 61 | <dependency> |
26 | 62 | <groupId>com.zaxxer</groupId> |
27 | 63 | <artifactId>HikariCP</artifactId> |
28 | 64 | <version>2.6.0</version> |
29 | 65 | </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>org.webjars</groupId> |
| 68 | + <artifactId>webjars-locator</artifactId> |
| 69 | + </dependency> |
| 70 | + <dependency> |
| 71 | + <groupId>org.webjars</groupId> |
| 72 | + <artifactId>jquery</artifactId> |
| 73 | + <version>${webjars-jquery.version}</version> |
| 74 | + </dependency> |
| 75 | + <dependency> |
| 76 | + <groupId>org.webjars</groupId> |
| 77 | + <artifactId>jquery-ui</artifactId> |
| 78 | + <version>${webjars-jquery-ui.version}</version> |
| 79 | + </dependency> |
| 80 | + <dependency> |
| 81 | + <groupId>org.webjars</groupId> |
| 82 | + <artifactId>bootstrap</artifactId> |
| 83 | + <version>${webjars-bootstrap.version}</version> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>org.springframework.boot</groupId> |
| 87 | + <artifactId>spring-boot-devtools</artifactId> |
| 88 | + <scope>runtime</scope> |
| 89 | + </dependency> |
30 | 90 | </dependencies> |
| 91 | + |
31 | 92 | <build> |
32 | 93 | <plugins> |
33 | 94 | <plugin> |
34 | | - <groupId>org.apache.maven.plugins</groupId> |
35 | | - <artifactId>maven-compiler-plugin</artifactId> |
36 | | - <version>2.5.1</version> |
37 | | - <configuration> |
38 | | - <source>1.8</source> |
39 | | - <target>1.8</target> |
40 | | - <optimize>true</optimize> |
41 | | - <debug>true</debug> |
42 | | - </configuration> |
43 | | - </plugin> |
44 | | - <plugin> |
45 | | - <artifactId>maven-assembly-plugin</artifactId> |
46 | | - <version>2.3</version> |
47 | | - <configuration> |
48 | | - <descriptorRefs> |
49 | | - <descriptorRef>jar-with-dependencies</descriptorRef> |
50 | | - </descriptorRefs> |
51 | | - <finalName>helloworld</finalName> |
52 | | - <appendAssemblyId>false</appendAssemblyId> |
53 | | - <archive> |
54 | | - <manifest> |
55 | | - <mainClass>Main</mainClass> |
56 | | - </manifest> |
57 | | - </archive> |
58 | | - </configuration> |
| 95 | + <groupId>org.springframework.boot</groupId> |
| 96 | + <artifactId>spring-boot-maven-plugin</artifactId> |
59 | 97 | <executions> |
60 | 98 | <execution> |
61 | | - <id>build-jar-with-dependencies</id> |
62 | | - <phase>package</phase> |
63 | 99 | <goals> |
64 | | - <goal>single</goal> |
| 100 | + <goal>build-info</goal> |
65 | 101 | </goals> |
| 102 | + <configuration> |
| 103 | + <additionalProperties> |
| 104 | + <encoding.source>${project.build.sourceEncoding}</encoding.source> |
| 105 | + <encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting> |
| 106 | + <java.source>${maven.compiler.source}</java.source> |
| 107 | + <java.target>${maven.compiler.target}</java.target> |
| 108 | + </additionalProperties> |
| 109 | + </configuration> |
66 | 110 | </execution> |
67 | 111 | </executions> |
68 | 112 | </plugin> |
69 | 113 | </plugins> |
70 | 114 | </build> |
| 115 | + |
71 | 116 | </project> |
0 commit comments