pom.xml 8.5 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.
  ~
  -->

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

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

H
hanahmily 已提交
31
    <properties>
32
        <java.version>1.8</java.version>
H
hanahmily 已提交
33
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34
        <spring.boot.version>2.6.6</spring.boot.version>
wu-sheng's avatar
wu-sheng 已提交
35
        <gson.version>2.9.0</gson.version>
36
        <apache-httpclient.version>4.5.13</apache-httpclient.version>
37
        <spring-cloud-dependencies.version>2021.0.2</spring-cloud-dependencies.version>
38
        <frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
39
        <logback-classic.version>1.2.11</logback-classic.version>
wu-sheng's avatar
wu-sheng 已提交
40
        <jackson-version>2.13.2.2</jackson-version>
G
Gao Hongtao 已提交
41
        <yaml.version>1.28</yaml.version>
42
        <netty.version>4.1.77.Final</netty.version>
43

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

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
52
                <version>${spring-cloud-dependencies.version}</version>
H
hanahmily 已提交
53 54 55
                <type>pom</type>
                <scope>import</scope>
            </dependency>
56 57 58 59 60 61 62
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-bom</artifactId>
                <version>${netty.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
H
hanahmily 已提交
63 64 65 66 67
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
68 69
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
H
hanahmily 已提交
70
        </dependency>
71 72 73 74 75 76

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

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

    <build>
        <finalName>skywalking-webapp</finalName>
        <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>
147
                <version>${frontend-maven-plugin.version}</version>
H
hanahmily 已提交
148 149
                <configuration>
                    <workingDirectory>${ui.path}</workingDirectory>
150
                    <nodeVersion>v16.14.0</nodeVersion>
H
hanahmily 已提交
151 152 153 154 155 156 157 158 159 160 161 162 163 164
                </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>
165
                            <arguments>install --registry=https://registry.npmjs.org/</arguments>
H
hanahmily 已提交
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 196 197 198 199 200 201 202
                        </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>
203 204 205
                            <goal>
                                repackage
                            </goal>
H
hanahmily 已提交
206 207 208 209 210 211
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
212
</project>