pom.xml 9.2 KB
Newer Older
J
jurgen 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jkiss.dbeaver</groupId>
    <artifactId>dbeaver</artifactId>
8
    <version>1.0.0-SNAPSHOT</version>
9
    <packaging>pom</packaging>
J
jurgen 已提交
10

11
    <properties>
S
serge-rider 已提交
12
        <dbeaver-version>7.1.3</dbeaver-version>
13
        <dbeaver-product>DBeaver</dbeaver-product>
S
serge-rider 已提交
14
        <tycho-version>1.7.0</tycho-version>
15
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
Serge Rider 已提交
16
        <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
S
serge-rider 已提交
17

18 19
        <!-- DBeaver Maven dependencies (see product/localRepository for details) -->
        <local-p2-repo.url>https://dbeaver.io/eclipse-repo</local-p2-repo.url>
S
serge-rider 已提交
20 21
        <!-- Eclipse release 2020-03. 2020-06 is too buggy. -->
        <eclipse-p2-repo.url>https://download.eclipse.org/releases/2020-03/</eclipse-p2-repo.url>
S
serge-rider 已提交
22

23 24 25
        <!-- Orbit. From Photon because we need com.ibm.icu.base -->
        <!-- <orbit-p2-repo.url>http://download.eclipse.org/tools/orbit/downloads/drops/R20180330011457/repository</orbit-p2-repo.url> -->

26 27
        <key.storage.path>/etc/</key.storage.path>
        <tsa/>
28
    </properties>
J
jurgen 已提交
29

30
    <modules>
S
Serge Rider 已提交
31 32 33
        <module>bundles</module>
        <module>plugins</module>
        <module>features</module>
34
    </modules>
J
jurgen 已提交
35

36 37
    <repositories>
        <repository>
S
serge-rider 已提交
38 39
            <id>local-contrib</id>
            <url>${local-p2-repo.url}</url>
40 41
            <layout>p2</layout>
        </repository>
42
        <repository>
S
serge-rider 已提交
43 44
            <id>eclipse-p2-repo</id>
            <url>${eclipse-p2-repo.url}</url>
45 46
            <layout>p2</layout>
        </repository>
47
    </repositories>
J
jurgen 已提交
48

49
    <build>
50 51
        <sourceDirectory>${project.basedir}/src</sourceDirectory>
        <testSourceDirectory>${project.basedir}/tests</testSourceDirectory>
52
        <plugins>
J
jurgen 已提交
53

S
Serge Rider 已提交
54 55 56 57 58 59 60 61 62 63

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <resources>
                    </resources>
                </configuration>
            </plugin>
S
Serge Rider 已提交
64

65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
            <!-- Tycho build -->
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <environments>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>macosx</os>
                            <ws>cocoa</ws>
                            <arch>x86_64</arch>
                        </environment>
                    </environments>
S
serge-rider 已提交
88

89
                </configuration>
S
serge-rider 已提交
90

91
            </plugin>
J
jurgen 已提交
92

93 94 95 96 97 98
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tycho-version}</version>
                <extensions>true</extensions>
            </plugin>
S
Serge Rider 已提交
99

100 101 102 103 104
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-compiler-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
105
                    <useProjectSettings>false</useProjectSettings>
S
serge-rider 已提交
106 107
                    <source>1.8</source>
                    <target>1.8</target>
S
Serge Rider 已提交
108
                    <compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
109 110
                </configuration>
            </plugin>
J
jurgen 已提交
111

S
Serge Rider 已提交
112 113 114 115 116 117 118 119
            <!-- Set Built-By info -->
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-packaging-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <archive>
                        <manifestEntries>
120 121
                            <Built-By>dbeaver.io</Built-By>
                            <Created-By>dbeaver.io</Created-By>
S
Serge Rider 已提交
122
                            <Build-Time>${maven.build.timestamp}</Build-Time>
S
Serge Rider 已提交
123 124 125 126 127 128
                        </manifestEntries>
                        <addMavenDescriptor>false</addMavenDescriptor>
                    </archive>
                </configuration>
            </plugin>

S
serge-rider 已提交
129 130
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
S
Serge Rider 已提交
131
                <version>2.5.1</version>
S
serge-rider 已提交
132 133 134 135
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
S
Serge Rider 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149
                <executions>
                    <execution>
                        <id>compiletests</id>
                        <phase>test-compile</phase>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Tests run -->

            <plugin>
S
Serge Rider 已提交
150 151 152
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.5</version>
S
Serge Rider 已提交
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
                <executions>
                    <execution>
                        <id>test</id>
                        <phase>test</phase>
                        <configuration>
                            <includes>
                                <include>**/*Test.java</include>
                            </includes>
                        </configuration>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

169
        </plugins>
S
Serge Rider 已提交
170

171
    </build>
S
serge-rider 已提交
172

S
Serge Rider 已提交
173 174 175 176 177
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
S
Serge Rider 已提交
178
                <version>2.5</version>
S
Serge Rider 已提交
179 180 181 182
            </plugin>
        </plugins>
    </reporting>

S
serge-rider 已提交
183
    <profiles>
S
serge-rider 已提交
184
        <!-- desktop build: includes UI components and products -->
S
Serge Rider 已提交
185
        <profile>
S
serge-rider 已提交
186 187 188 189 190 191 192 193 194 195 196
            <id>desktop</id>
            <activation><property><name>!headless-platform</name></property></activation>
            <modules>
                <!-- Tests -->
                <module>test</module>

                <!-- Products -->
                <module>product/appstore</module>
                <module>product/standalone</module>
                <module>product/repositories</module>
            </modules>
S
Serge Rider 已提交
197 198
        </profile>

S
Serge Rider 已提交
199
        <!-- Profile for jars sign -->
S
serge-rider 已提交
200 201 202 203 204 205 206 207 208 209
        <profile>
            <id>sign-code</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jarsigner-plugin</artifactId>
210
                        <version>1.4</version>
S
serge-rider 已提交
211 212
                        <configuration>
                            <keystore>${key.storage.path}/jar-sign.keystore</keystore>
213 214
                            <tsa>${tsa}</tsa>
                            <tsacert>dbeaver</tsacert>
S
serge-rider 已提交
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
                            <storepass>dbeaver</storepass>
                            <alias>dbeaver</alias>
                            <keypass>dbeaver</keypass>
                        </configuration>
                        <executions>
                            <execution>
                                <id>sign</id>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

S
Serge Rider 已提交
233 234
    <!-- unit tests -->

235 236 237 238 239 240 241 242 243 244 245 246 247
    <dependencies>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.10.19</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
S
serge-rider 已提交
248
<!--
249 250 251 252 253 254 255 256 257 258 259 260
        <dependency>
          <groupId>org.powermock</groupId>
          <artifactId>powermock-api-mockito</artifactId>
          <version>1.6.6</version>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.powermock</groupId>
          <artifactId>powermock-module-junit4</artifactId>
          <version>1.6.6</version>
          <scope>test</scope>
        </dependency>
S
serge-rider 已提交
261
-->
262 263
    </dependencies>

J
jurgen 已提交
264
</project>