pom.xml 5.46 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
Johannes Edmeier committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<!--
  ~ Copyright 2014-2018 the original author or authors.
  ~
  ~ 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 19
<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/xsd/maven-4.0.0.xsd">
20
    <modelVersion>4.0.0</modelVersion>
21
    <artifactId>spring-boot-admin-server-ui</artifactId>
22 23
    <name>Spring Boot Admin Server UI</name>
    <description>Spring Boot Admin Server UI</description>
24
    <parent>
25 26
        <groupId>de.codecentric</groupId>
        <artifactId>spring-boot-admin-build</artifactId>
27
        <version>${revision}</version>
28
        <relativePath>../spring-boot-admin-build</relativePath>
29
    </parent>
Johannes Edmeier committed
30 31 32 33 34 35 36 37 38 39
    <dependencies>
        <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-server</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <optional>true</optional>
        </dependency>
Johannes Edmeier committed
40 41 42 43 44 45 46 47 48 49
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>
Johannes Edmeier committed
50
    </dependencies>
51
    <build>
52 53 54 55 56 57
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
Johannes Edmeier committed
58
                        <id>npm-install</id>
59 60 61 62 63
                        <phase>validate</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
Johannes Edmeier committed
64
                            <executable>npm</executable>
65 66 67 68 69 70
                            <arguments>
                                <argument>install</argument>
                            </arguments>
                        </configuration>
                    </execution>
                    <execution>
Johannes Edmeier committed
71
                        <id>npm-build</id>
72 73 74 75 76
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
Johannes Edmeier committed
77
                            <executable>npm</executable>
78 79 80 81
                            <arguments>
                                <argument>run</argument>
                                <argument>build</argument>
                            </arguments>
Johannes Edmeier committed
82 83 84
                            <environmentVariables>
                                <PROJECT_VERSION>${project.version}</PROJECT_VERSION>
                            </environmentVariables>
85 86 87
                        </configuration>
                    </execution>
                    <execution>
Johannes Edmeier committed
88
                        <id>npm-test</id>
89 90 91 92 93
                        <phase>test</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
Johannes Edmeier committed
94
                            <executable>npm</executable>
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
                            <arguments>
                                <argument>run</argument>
                                <argument>test</argument>
                            </arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <nonFilteredFileExtensions>
                        <nonFilteredFileExtension>woff</nonFilteredFileExtension>
                        <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
                        <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
                        <nonFilteredFileExtension>eot</nonFilteredFileExtension>
                        <nonFilteredFileExtension>swf</nonFilteredFileExtension>
                        <nonFilteredFileExtension>ico</nonFilteredFileExtension>
Johannes Edmeier committed
114
                        <nonFilteredFileExtension>png</nonFilteredFileExtension>
115 116 117 118 119
                    </nonFilteredFileExtensions>
                </configuration>
            </plugin>
        </plugins>
        <resources>
Johannes Edmeier committed
120 121 122
            <resource>
                <directory>src/main/resources</directory>
            </resource>
123 124 125
            <resource>
                <directory>target/dist</directory>
                <targetPath>META-INF/spring-boot-admin-server-ui</targetPath>
Johannes Edmeier committed
126
                <filtering>false</filtering>
127 128
            </resource>
        </resources>
129
    </build>
130
</project>