|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | <groupId>org.baeldung</groupId> |
6 | 6 | <artifactId>spring-boot-bootstrap</artifactId> |
|
14 | 14 | <version>0.0.1-SNAPSHOT</version> |
15 | 15 | <relativePath>../parent-boot-2</relativePath> |
16 | 16 | </parent> |
| 17 | + <dependencyManagement> |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>org.springframework.cloud</groupId> |
| 21 | + <artifactId>spring-cloud-dependencies</artifactId> |
| 22 | + <version>Finchley.SR1</version> |
| 23 | + <type>pom</type> |
| 24 | + <scope>import</scope> |
| 25 | + </dependency> |
| 26 | + </dependencies> |
| 27 | + </dependencyManagement> |
17 | 28 |
|
18 | 29 | <dependencies> |
19 | 30 | <dependency> |
|
28 | 39 | <groupId>org.springframework.boot</groupId> |
29 | 40 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
30 | 41 | </dependency> |
| 42 | + <dependency> |
| 43 | + <groupId>org.springframework.cloud</groupId> |
| 44 | + <artifactId>spring-cloud-starter</artifactId> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>org.springframework.boot</groupId> |
| 48 | + <artifactId>spring-boot-starter-cloud-connectors</artifactId> |
| 49 | + </dependency> |
31 | 50 | <dependency> |
32 | 51 | <groupId>com.h2database</groupId> |
33 | 52 | <artifactId>h2</artifactId> |
34 | 53 | </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>mysql</groupId> |
| 56 | + <artifactId>mysql-connector-java</artifactId> |
| 57 | + </dependency> |
35 | 58 | <dependency> |
36 | 59 | <groupId>org.springframework.boot</groupId> |
37 | 60 | <artifactId>spring-boot-starter-security</artifactId> |
|
55 | 78 | </dependencies> |
56 | 79 |
|
57 | 80 | <profiles> |
| 81 | + <profile> |
| 82 | + <id>cloudfoundry</id> |
| 83 | + <dependencies> |
| 84 | + <dependency> |
| 85 | + <groupId>org.springframework.cloud</groupId> |
| 86 | + <artifactId>spring-cloud-starter</artifactId> |
| 87 | + </dependency> |
| 88 | + <dependency> |
| 89 | + <groupId>org.springframework.boot</groupId> |
| 90 | + <artifactId>spring-boot-starter-cloud-connectors</artifactId> |
| 91 | + </dependency> |
| 92 | + </dependencies> |
| 93 | + <build> |
| 94 | + <resources> |
| 95 | + <resource> |
| 96 | + <directory>src/main/resources</directory> |
| 97 | + <excludes> |
| 98 | + <exclude>**/logback.xml</exclude> |
| 99 | + </excludes> |
| 100 | + </resource> |
| 101 | + </resources> |
| 102 | + <plugins> |
| 103 | + <plugin> |
| 104 | + <groupId>org.springframework.boot</groupId> |
| 105 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 106 | + <configuration> |
| 107 | + <finalName>${project.name}-cf</finalName> |
| 108 | + </configuration> |
| 109 | + </plugin> |
| 110 | + <plugin> |
| 111 | + <groupId>org.apache.maven.plugins</groupId> |
| 112 | + <artifactId>maven-compiler-plugin</artifactId> |
| 113 | + <configuration> |
| 114 | + <excludes> |
| 115 | + <exclude>**/cloud/config/*.java</exclude> |
| 116 | + </excludes> |
| 117 | + </configuration> |
| 118 | + </plugin> |
| 119 | + </plugins> |
| 120 | + </build> |
| 121 | + </profile> |
58 | 122 | <profile> |
59 | 123 | <id>autoconfiguration</id> |
60 | 124 | <build> |
|
112 | 176 | </build> |
113 | 177 | </profile> |
114 | 178 | </profiles> |
115 | | - |
| 179 | + <build> |
| 180 | + <plugins> |
| 181 | + <plugin> |
| 182 | + <groupId>org.apache.maven.plugins</groupId> |
| 183 | + <artifactId>maven-compiler-plugin</artifactId> |
| 184 | + <configuration> |
| 185 | + <excludes> |
| 186 | + <exclude>**/cloud/*.java</exclude> |
| 187 | + </excludes> |
| 188 | + </configuration> |
| 189 | + </plugin> |
| 190 | + </plugins> |
| 191 | + </build> |
116 | 192 | <properties> |
117 | 193 | <servlet.version>4.0.0</servlet.version> |
118 | 194 | </properties> |
|
0 commit comments