pom.xml 8.1 KB
Newer Older
H
hanahmily 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You 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.
  ~
  -->

20 21
<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">
H
hanahmily 已提交
22 23 24
    <parent>
        <artifactId>apm</artifactId>
        <groupId>org.apache.skywalking</groupId>
wu-sheng's avatar
wu-sheng 已提交
25
        <version>8.7.0-SNAPSHOT</version>
H
hanahmily 已提交
26 27 28 29 30
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>apm-webapp</artifactId>
    <packaging>jar</packaging>
31

H
hanahmily 已提交
32
    <properties>
33
        <java.version>1.8</java.version>
H
hanahmily 已提交
34
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35
        <spring.boot.version>2.4.8</spring.boot.version>
H
hanahmily 已提交
36
        <log4j.version>2.6.2</log4j.version>
37 38
        <gson.version>2.8.2</gson.version>
        <apache-httpclient.version>4.5.3</apache-httpclient.version>
39
        <spring-cloud-dependencies.version>2020.0.3</spring-cloud-dependencies.version>
40
        <frontend-maven-plugin.version>1.11.0</frontend-maven-plugin.version>
41
        <logback-classic.version>1.2.3</logback-classic.version>
G
Gao Hongtao 已提交
42 43
        <jackson-version>2.12.2</jackson-version>
        <yaml.version>1.28</yaml.version>
44

H
hanahmily 已提交
45
        <ui.path>${project.parent.basedir}/skywalking-ui</ui.path>
H
hanahmily 已提交
46 47 48 49 50 51 52
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
53
                <version>${spring-cloud-dependencies.version}</version>
H
hanahmily 已提交
54 55 56 57 58 59 60 61
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
62 63
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
H
hanahmily 已提交
64
        </dependency>
65 66 67 68 69 70

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
        </dependency>

H
hanahmily 已提交
71 72 73 74
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
            <version>${spring.boot.version}</version>
75 76 77 78 79 80 81 82 83 84 85 86
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- https://www.cvedetails.com/cve/CVE-2019-17267/ -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson-version}</version>
H
hanahmily 已提交
87 88 89 90
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
91
            <version>${gson.version}</version>
H
hanahmily 已提交
92 93 94 95
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
96
            <version>${apache-httpclient.version}</version>
H
hanahmily 已提交
97
        </dependency>
98 99 100 101 102
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback-classic.version}</version>
        </dependency>
G
Gao Hongtao 已提交
103 104 105 106 107
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>${yaml.version}</version>
        </dependency>
108 109 110 111 112 113
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <version>${spring.boot.version}</version>
            <scope>test</scope>
        </dependency>
114
        <!-- Add for JDK9+ -->
115
        <dependency>
116 117 118 119
            <groupId>com.sun.activation</groupId>
            <artifactId>javax.activation</artifactId>
            <version>1.2.0</version>
            <scope>provided</scope>
120
        </dependency>
H
hanahmily 已提交
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    </dependencies>

    <build>
        <finalName>skywalking-webapp</finalName>
        <resources>

        </resources>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${compiler.version}</source>
                    <target>${compiler.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
140
                <version>${frontend-maven-plugin.version}</version>
H
hanahmily 已提交
141 142
                <configuration>
                    <workingDirectory>${ui.path}</workingDirectory>
143
                    <nodeVersion>v8.17.0</nodeVersion>
H
hanahmily 已提交
144 145 146 147 148 149 150 151 152 153 154 155 156 157
                </configuration>
                <executions>
                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
158
                            <arguments>install --registry=https://registry.npmjs.org/</arguments>
H
hanahmily 已提交
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm run build</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>run build</arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <outputDirectory>${project.build.directory}</outputDirectory>
                    <resources>
                        <resource>
                            <targetPath>${basedir}/target/classes/public</targetPath>
                            <directory>${ui.path}/dist</directory>
                        </resource>
                        <resource>
                            <targetPath>${basedir}/target/classes</targetPath>
                            <directory>src/main/resources</directory>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring.boot.version}</version>
                <executions>
                    <execution>
                        <goals>
196 197 198
                            <goal>
                                repackage
                            </goal>
H
hanahmily 已提交
199 200 201 202 203 204
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
205
</project>