pom.xml 10.4 KB
Newer Older
1
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 3 4 5 6
  ~     ___                  _   ____  ____
  ~    / _ \ _   _  ___  ___| |_|  _ \| __ )
  ~   | | | | | | |/ _ \/ __| __| | | |  _ \
  ~   | |_| | |_| |  __/\__ \ |_| |_| | |_) |
  ~    \__\_\\__,_|\___||___/\__|____/|____/
V
Vlad 已提交
7
  ~
8 9
  ~  Copyright (c) 2014-2019 Appsicle
  ~  Copyright (c) 2019-2020 QuestDB
V
Vlad 已提交
10
  ~
11 12 13
  ~  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
V
Vlad 已提交
14
  ~
15
  ~  http://www.apache.org/licenses/LICENSE-2.0
16
  ~
17 18 19 20 21
  ~  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.
22
  ~
23
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
V
Vlad 已提交
24 25 26 27

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
V
Vlad Ilyushchenko 已提交
28
    <name>QuestDB Core</name>
29
    <description>QuestDB is High Performance Time Series Database</description>
V
Vlad 已提交
30

31 32 33 34
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

V
Vlad Ilyushchenko 已提交
35
    <version>4.2.1-SNAPSHOT</version>
V
Vlad Ilyushchenko 已提交
36
    <groupId>org.questdb</groupId>
37
    <artifactId>core</artifactId>
V
Vlad 已提交
38
    <packaging>jar</packaging>
39

V
Vlad 已提交
40

41
    <url>https://www.questdb.io/</url>
V
Vlad 已提交
42 43
    <licenses>
        <license>
44 45
            <name>Apache 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
V
Vlad 已提交
46 47 48 49 50 51
            <distribution>repo</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
52 53
            <name>QuestDB Team</name>
            <email>hello@questdb.io</email>
V
Vlad 已提交
54 55 56 57
        </developer>
    </developers>

    <scm>
58
        <url>scm:git:https://github.com/questdb/questdb.git</url>
V
Vlad 已提交
59 60 61 62 63 64 65
    </scm>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
66
                <version>3.6.1</version>
V
Vlad 已提交
67
                <configuration>
68 69 70 71
                    <!-- these args suppress warning about using internal java APIs -->
                    <compilerArgument>-XDignore.symbol.file</compilerArgument>
                    <fork>true</fork>
                    <!-- end -->
72 73
                    <source>1.8</source>
                    <target>1.8</target>
V
Vlad 已提交
74 75
                </configuration>
            </plugin>
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
            <plugin>
              <groupId>com.github.eirslett</groupId>
              <artifactId>frontend-maven-plugin</artifactId>
              <version>1.9.1</version>

              <executions>
                <execution>
                  <id>install node and npm</id>
                  <goals>
                    <goal>install-node-and-npm</goal>
                  </goals>
                  <phase>generate-resources</phase>
                </execution>

                <execution>
                  <id>npm install</id>
                  <goals>
                    <goal>npm</goal>
                  </goals>
                  <phase>generate-resources</phase>
                  <configuration>
                    <arguments>install --no-fund</arguments>
                  </configuration>
                </execution>

                <execution>
                  <id>npm run build</id>
                  <goals>
                    <goal>npm</goal>
                  </goals>
                  <phase>generate-resources</phase>
                  <configuration>
                    <arguments>run build</arguments>
                  </configuration>
                </execution>
              </executions>

              <configuration>
                <nodeVersion>v12.16.2</nodeVersion>
                <workingDirectory>../ui</workingDirectory>
              </configuration>
            </plugin>
V
Vlad 已提交
118 119 120
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
121
                <version>3.0.1</version>
V
Vlad 已提交
122 123 124 125 126 127 128
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
V
Vlad Ilyushchenko 已提交
129 130 131
                <configuration>
                    <archive>
                        <manifest>
132
                            <mainClass>io.questdb.ServerMain</mainClass>
V
Vlad Ilyushchenko 已提交
133 134 135 136
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
V
Vlad 已提交
137
            </plugin>
138
            <plugin>
V
Vlad Ilyushchenko 已提交
139
                <groupId>org.apache.maven.plugins</groupId>
140
                <artifactId>maven-assembly-plugin</artifactId>
141
                <version>3.0.0</version>
142
                <configuration>
143
                    <tarLongFileMode>posix</tarLongFileMode>
144 145 146 147 148 149
                    <descriptors>
                        <descriptor>src/main/assembly/assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
150
                        <id>create-jar</id>
151 152 153 154
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/assembly.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                    <execution>
                        <id>create-binary</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/binaries.xml</descriptor>
                            </descriptors>
V
Vlad Ilyushchenko 已提交
171
                            <finalName>questdb-${project.version}</finalName>
172
                        </configuration>
173 174 175
                    </execution>
                </executions>
            </plugin>
176 177 178
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
179
                <version>2.19</version>
180
                <configuration>
181
                    <argLine>-Xmx512m</argLine>
182 183
                </configuration>
            </plugin>
V
Vlad 已提交
184 185 186
        </plugins>
    </build>

V
Vlad 已提交
187 188 189 190 191 192 193 194 195 196 197 198 199 200
    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>release</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
201
                        <version>3.0.1</version>
V
Vlad 已提交
202 203 204 205 206 207 208 209 210 211 212 213
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
214
                        <version>2.10.4</version>
V
Vlad 已提交
215 216 217 218 219 220 221 222 223 224 225 226
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
V
Vlad Ilyushchenko 已提交
227
                        <version>1.6</version>
V
Vlad 已提交
228 229 230 231 232 233 234 235 236
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
237
                        <configuration>
V
Vlad Ilyushchenko 已提交
238
                            <executable>gpg</executable>
239
                        </configuration>
V
Vlad 已提交
240
                    </plugin>
241 242 243 244 245 246 247 248 249 250 251 252
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <version>2.7</version>
                        <configuration>
                            <formats>
                                <format>html</format>
                                <format>xml</format>
                            </formats>
                            <check/>
                        </configuration>
                    </plugin>
V
Vlad 已提交
253 254 255 256 257
                </plugins>
            </build>
        </profile>
    </profiles>

V
Vlad 已提交
258 259 260 261 262
    <dependencies>
        <!-- test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
263
            <version>4.12</version>
V
Vlad 已提交
264 265 266
            <scope>test</scope>
        </dependency>

267
        <dependency>
V
Vlad Ilyushchenko 已提交
268
            <groupId>org.jetbrains</groupId>
269
            <artifactId>annotations</artifactId>
V
Vlad Ilyushchenko 已提交
270
            <version>17.0.0</version>
271
            <scope>provided</scope>
272 273
        </dependency>

274 275 276 277 278 279
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>42.2.5</version>
            <scope>test</scope>
        </dependency>
V
Vlad 已提交
280 281
    </dependencies>
</project>