pom.xml 6.3 KB
Newer Older
Z
zhangxin10 已提交
1 2 3 4 5 6
<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">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.ai.cloud</groupId>
    <artifactId>skywalking-server</artifactId>
7
    <version>1.0b</version>
Z
zhangxin10 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    <packaging>jar</packaging>

    <name>skywalking-server</name>
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.4.1</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
34 35 36 37 38
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
            <version>4.0.33.Final</version>
        </dependency>
Z
zhangxin10 已提交
39 40 41 42 43
        <dependency>
            <groupId>org.apache.hbase</groupId>
            <artifactId>hbase-client</artifactId>
            <version>1.1.2</version>
        </dependency>
44 45 46
        <dependency>
            <groupId>com.ai.cloud</groupId>
            <artifactId>skywalking-protocol</artifactId>
47
            <version>1.0b</version>
48
        </dependency>
49 50 51 52 53 54 55 56 57 58
        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>2.8.0</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2</version>
        </dependency>
Z
zhangxin10 已提交
59 60 61 62 63 64 65 66 67 68
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
69
                        <phase>package</phase>
Z
zhangxin10 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/installer/config</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/resources</directory>
                                    <filtering>false</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-start-script</id>
85
                        <phase>package</phase>
Z
zhangxin10 已提交
86 87 88 89
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
Z
zhangxin10 已提交
90
                            <outputDirectory>${project.build.directory}/installer/bin</outputDirectory>
Z
zhangxin10 已提交
91 92
                            <resources>
                                <resource>
Z
zhangxin10 已提交
93
                                    <directory>bin</directory>
Z
zhangxin10 已提交
94 95 96 97 98 99 100 101 102 103 104 105
                                    <filtering>false</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
106
                        <phase>package</phase>
Z
zhangxin10 已提交
107 108 109 110 111 112
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
Z
zhangxin10 已提交
113
                    <outputDirectory>${project.build.directory}/installer/lib</outputDirectory>
Z
zhangxin10 已提交
114 115 116 117
                    <excludeTransitive>false</excludeTransitive>
                    <stripVersion>true</stripVersion>
                </configuration>
            </plugin>
Z
zhangxin10 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>*.properties</exclude>
                        <exclude>*.xml</exclude>
                    </excludes>
                    <finalName>sky-walking-server</finalName>
                    <outputDirectory>${project.build.directory}/installer/lib</outputDirectory>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>package</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <mkdir dir="${project.build.directory}/installer/data/buffer"/>
                                <mkdir dir="${project.build.directory}/installer/data/offset"/>
                                <mkdir dir="${project.build.directory}/installer/log"/>
                                <mkdir dir="${project.build.directory}/installer/bin"/>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
Z
zhangxin10 已提交
149 150 151 152 153 154 155 156
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
Z
zhangxin10 已提交
157 158 159
        </plugins>
    </build>
</project>