pom.xml 7.6 KB
Newer Older
Z
zhangxin10 已提交
1 2 3
<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>
4 5 6 7 8
    <parent>
        <artifactId>skywalking-storage-center</artifactId>
        <groupId>com.a.eye</groupId>
        <version>2.0-2016</version>
    </parent>
Z
zhangxin10 已提交
9

10
    <artifactId>skywalking-storage</artifactId>
Z
zhangxin10 已提交
11 12 13 14 15 16 17
    <packaging>jar</packaging>

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

    <dependencies>
A
ascrutae 已提交
18 19 20 21 22 23 24 25 26 27
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-pool2</artifactId>
            <version>2.4.2</version>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>transport</artifactId>
            <version>5.0.1</version>
        </dependency>
28 29 30 31 32 33
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>1.17</version>
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
34

A
ascrutae 已提交
35 36 37 38 39
        <dependency>
            <groupId>com.a.eye</groupId>
            <artifactId>skywalking-util</artifactId>
            <version>${project.version}</version>
        </dependency>
Z
zhangxin10 已提交
40
    </dependencies>
41

Z
zhangxin10 已提交
42 43 44 45
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
46 47
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.0</version>
Z
zhangxin10 已提交
48
                <configuration>
49 50 51
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
Z
zhangxin10 已提交
52 53
                </configuration>
            </plugin>
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/install/config</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/resources</directory>
                                    <filtering>false</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-start-script</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/install/bin</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>bin</directory>
                                    <filtering>false</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <outputDirectory>${project.build.directory}/install/lib</outputDirectory>
                    <excludeTransitive>false</excludeTransitive>
                    <stripVersion>true</stripVersion>
                    <includeScope>runtime</includeScope>
                    <includeScope>compile</includeScope>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>*.properties</exclude>
                        <exclude>*.xml</exclude>
                    </excludes>
                    <outputDirectory>${project.build.directory}/install/lib</outputDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>compile</phase>
                        <configuration>
                            <target>
                                <mkdir dir="${project.build.directory}/install/bin"/>
                                <mkdir dir="${project.build.directory}/install/lib"/>
                                <mkdir dir="${project.build.directory}/install/logs"/>
                                <mkdir dir="${project.build.directory}/install/bin"/>
                                <mkdir dir="${project.build.directory}/install/data/index"/>
                                <echo message="unzip elastic"/>
                                <unzip src="${project.basedir}/lib/dataindex-es-5.0.1.zip"
                                       dest="${project.build.directory}/install/data/index"/>
                                <chmod dir="${project.build.directory}/install/data/index/bin" perm="ugo+rx"
141
                                       includes="*"/>
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>clean</id>
                        <phase>pre-clean</phase>
                        <configuration>
                            <target>
                                <delete dir="${project.build.directory}/install/data/index"/>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>tar</id>
                        <phase>package</phase>
                        <configuration>
                            <target>
                                <chmod dir="${project.build.directory}/install/bin" perm="ugo+rx"
166
                                       includes="*"/>
167 168 169 170 171 172 173 174 175 176
                                <tar destfile="${project.build.directory}/install.tar" basedir="${project.build.directory}/install">
                                </tar>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
Z
zhangxin10 已提交
177 178 179
        </plugins>
    </build>
</project>