pom.xml 3.52 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  ~ Copyright 2014-2018 the original author or authors.
4 5 6 7 8 9 10 11 12 13 14 15 16 17
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

18
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
    <modelVersion>4.0.0</modelVersion>
21 22
    <artifactId>spring-boot-admin-samples</artifactId>
    <packaging>pom</packaging>
23 24
    <name>Spring Boot Admin Samples</name>
    <description>Spring Boot Admin Samples</description>
25 26
    <parent>
        <groupId>de.codecentric</groupId>
27
        <artifactId>spring-boot-admin-build</artifactId>
28
        <version>${revision}</version>
29
        <relativePath>../spring-boot-admin-build</relativePath>
30 31
    </parent>
    <modules>
32 33
        <module>spring-boot-admin-sample-servlet</module>
        <module>spring-boot-admin-sample-reactive</module>
34 35 36
        <module>spring-boot-admin-sample-war</module>
        <module>spring-boot-admin-sample-hazelcast</module>
    </modules>
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    <build>
        <!-- Turn on filtering by default for application properties -->
        <resources>
            <resource>
                <directory>${basedir}/src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/application*.yml</include>
                    <include>**/application*.yaml</include>
                    <include>**/application*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>${basedir}/src/main/resources</directory>
                <excludes>
                    <exclude>**/application*.yml</exclude>
                    <exclude>**/application*.yaml</exclude>
                    <exclude>**/application*.properties</exclude>
                </excludes>
            </resource>
        </resources>
58 59 60 61 62 63 64 65 66 67 68 69 70 71
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>${maven-war-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <version>${spring-boot.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
72
    </build>
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
    <profiles>
        <profile>
            <id>include-cloud</id>
            <activation>
                <property>
                    <name>!excludeSpringCloud</name>
                </property>
            </activation>
            <modules>
                <module>spring-boot-admin-sample-eureka</module>
                <module>spring-boot-admin-sample-consul</module>
                <module>spring-boot-admin-sample-zookeeper</module>
            </modules>
        </profile>
    </profiles>
88
</project>