This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
pom.xml
185 lines (178 loc) · 8.44 KB
/
pom.xml
1
2
3
4
5
6
7
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<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>
<parent>
<groupId>org.postgresql</groupId>
<artifactId>pgjdbc-core-prevjre</artifactId>
<version>1.1.5</version>
<relativePath /><!-- do not print maven warnings when pgjdbc-jre7 is checked out under pgjdbc -->
</parent>
<artifactId>postgresql</artifactId>
<packaging>bundle</packaging>
<name>PostgreSQL JDBC Driver - JDBC 4.1</name>
<version>42.2.13.jre7-SNAPSHOT</version>
<description>Java JDBC 4.1 (JRE 7+) driver for PostgreSQL database</description>
<properties>
<javac.target>1.7</javac.target>
<postgresql.enforce.jdk.version>[1.7,1.8)</postgresql.enforce.jdk.version>
<jdbc.specification.version>4.1</jdbc.specification.version>
<jdbc.specification.version.nodot>41</jdbc.specification.version.nodot>
<skip.assembly>false</skip.assembly>
<skip.unzip-jdk-src>false</skip.unzip-jdk-src>
</properties>
<dependencies>
<dependency>
<groupId>com.ongres.scram</groupId>
<artifactId>client</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>remove-future-jre-sources</id>
<configuration>
<filesets>
<fileset>
<directory>${postgresql.preprocessed.sources.directory}</directory>
<includes>
<include>**/jre8/</include>
<include>**/jdbc42/</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>remove-future-jre-test-sources</id>
<configuration>
<filesets>
<fileset>
<directory>${postgresql.preprocessed.test.sources.directory}</directory>
<includes>
<include>**/jre8/</include>
<include>**/jdbc42/</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>com.ongres.scram:client</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>com.github.waffle:waffle-jna</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.slf4j:jcl-over-slf4j</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>com/sun/jna/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>com.ongres</pattern>
<shadedPattern>org.postgresql.shaded.com.ongres</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- If inherited from parent pom, maven tries to add artifactId to URLs -->
<scm>
<url>https://github.com/pgjdbc/pgjdbc-jre7</url>
<connection>scm:git:https://github.com/pgjdbc/pgjdbc-jre7.git</connection>
<developerConnection>scm:git:[email protected]:pgjdbc/pgjdbc-jre7.git</developerConnection>
<tag>HEAD</tag>
</scm>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-unzipjdkant.xml</id>
<goals>
<goal>run</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<target>
<echo message="Generating ${unzip.jdk.ant.build.xml}" />
<!-- No one knows how to generate file with literal "${java.home}" content, so
we generate @{java.home}, and replace @ -> $ later.
${java.home} should be resolved by Ant, not Maven -->
<echoxml file="${unzip.jdk.ant.build.xml}">
<project>
<unzip src="@{java.home}/../src.zip" dest="@{project.build.directory}/jdk-src">
<patternset>
<!-- Only specific classes are extracted as there are lots of
"package sun.reflect does not exist" errors when compiling via
JDK7's javadoc -->
<include name="java/sql/**/*.java" />
<include name="javax/sql/**/*.java" />
<include name="javax/naming/**/*.java" />
<include name="java/io/InputStream.java" />
<include name="java/io/OutputStream.java" />
<include name="java/io/FilterInputStream.java" />
<include name="java/io/FilterOutputStream.java" />
</patternset>
</unzip>
</project>
</echoxml>
<replace file="${unzip.jdk.ant.build.xml}" token="@" value="$" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>