pom.xml 6.8 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>5.1.6</dbeaver-version>
13
        <dbeaver-product>DBeaver</dbeaver-product>
S
serge-rider 已提交
14
        <tycho-version>1.1.0</tycho-version>
S
serge-rider 已提交
15
        <tycho-versions-version>0.26.0</tycho-versions-version>
16
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
Serge Rider 已提交
17
        <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
S
serge-rider 已提交
18
        <eclipse-p2-repo.url>http://download.eclipse.org/releases/oxygen/</eclipse-p2-repo.url>
19
        <local-p2-repo.url>https://dbeaver.io/eclipse-repo</local-p2-repo.url>
20 21
        <key.storage.path>/etc/</key.storage.path>
        <tsa/>
22
    </properties>
J
jurgen 已提交
23

24
    <modules>
S
Serge Rider 已提交
25 26 27
        <module>bundles</module>
        <module>plugins</module>
        <module>features</module>
28
        <module>nls</module>
29

30
        <!-- Products -->
31
        <module>product/standalone</module>
32
        <module>product/repositories</module>
33

34 35
        <!-- Test -->
        <module>plugins/org.jkiss.dbeaver.test</module>
36
        <module>tests/org.jkiss.dbeaver.runtime.ide.core.tests</module>
37

38
    </modules>
J
jurgen 已提交
39

40 41 42 43 44 45 46 47 48 49 50 51
    <repositories>
        <repository>
            <id>eclipse-p2-repo</id>
            <url>${eclipse-p2-repo.url}</url>
            <layout>p2</layout>
        </repository>
        <repository>
            <id>local-contrib</id>
            <url>${local-p2-repo.url}</url>
            <layout>p2</layout>
        </repository>
    </repositories>
J
jurgen 已提交
52

53 54
    <build>
        <plugins>
J
jurgen 已提交
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
            <!-- 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</arch>
                        </environment>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86</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>
S
serge-rider 已提交
88
<!--
89 90 91
                        <environment>
                            <os>solaris</os>
                            <ws>gtk</ws>
S
Serge Rider 已提交
92
                            <arch>x86_64</arch>
93
                        </environment>
S
serge-rider 已提交
94
-->
95 96 97
                    </environments>
                </configuration>
            </plugin>
J
jurgen 已提交
98

99 100 101 102 103 104
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tycho-version}</version>
                <extensions>true</extensions>
            </plugin>
S
Serge Rider 已提交
105

S
serge-rider 已提交
106
<!--
S
serge-rider 已提交
107 108 109 110 111 112
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-versions-plugin</artifactId>
                <version>${tycho-versions-version}</version>
                <extensions>true</extensions>
            </plugin>
S
serge-rider 已提交
113
-->
S
serge-rider 已提交
114

115 116 117 118 119
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-compiler-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
S
serge-rider 已提交
120 121
                    <source>1.8</source>
                    <target>1.8</target>
S
Serge Rider 已提交
122
                    <compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
123 124
                </configuration>
            </plugin>
J
jurgen 已提交
125

S
Serge Rider 已提交
126 127 128 129 130 131 132 133 134 135
            <!-- Set Built-By info -->
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-packaging-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Built-By>jkiss.org</Built-By>
                            <Created-By>jkiss.org</Created-By>
S
Serge Rider 已提交
136
                            <Build-Time>${maven.build.timestamp}</Build-Time>
S
Serge Rider 已提交
137 138 139 140 141 142
                        </manifestEntries>
                        <addMavenDescriptor>false</addMavenDescriptor>
                    </archive>
                </configuration>
            </plugin>

S
serge-rider 已提交
143 144 145 146 147 148 149 150
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
151 152
        </plugins>
    </build>
S
serge-rider 已提交
153 154 155

    <profiles>
        <profile>
156
            <!-- Profile used to sign jars -->
S
serge-rider 已提交
157 158 159 160 161 162 163 164 165
            <id>sign-code</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jarsigner-plugin</artifactId>
166
                        <version>1.4</version>
S
serge-rider 已提交
167 168
                        <configuration>
                            <keystore>${key.storage.path}/jar-sign.keystore</keystore>
169 170
                            <tsa>${tsa}</tsa>
                            <tsacert>dbeaver</tsacert>
S
serge-rider 已提交
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
                            <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>

J
jurgen 已提交
189
</project>