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
|
Description: Add the missing configuration inherited from the parent poms (not in Debian)
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/pgjdbc/pom.xml
+++ b/pgjdbc/pom.xml
@@ -34,6 +34,20 @@
<jdbc.specification.version.nodot>42</jdbc.specification.version.nodot>
<skip.assembly>false</skip.assembly>
<checkstyle.version>8.5</checkstyle.version>
+
+ <!-- Properties from pgjdbc-versions 1.1.2 -->
+ <postgresql.driver.fullversion>PostgreSQL ${postgresql.jdbc.spec}</postgresql.driver.fullversion>
+ <postgresql.preprocessed.sources.directory>${project.build.directory}/gen-src</postgresql.preprocessed.sources.directory>
+ <postgresql.preprocessed.test.sources.directory>${project.build.directory}/gen-test-src</postgresql.preprocessed.test.sources.directory>
+ <unzip.jdk.ant.build.xml>${project.build.directory}/unzip-jdk-ant.xml</unzip.jdk.ant.build.xml>
+ <skip.unzip-jdk-src>true</skip.unzip-jdk-src>
+
+ <!-- Properties from pgjdbc-core-parent 1.1.2 -->
+ <template.default.pg.port>5432</template.default.pg.port>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <postgresql.jdbc.spec>JDBC${jdbc.specification.version}</postgresql.jdbc.spec>
+ <build.properties.relative.path>${basedir}/..</build.properties.relative.path>
+
</properties>
<dependencies>
@@ -249,6 +263,110 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ <configuration>
+ <files>
+ <file>${build.properties.relative.path}/build.properties</file>
+ <file>${build.properties.relative.path}/build.local.properties</file>
+ </files>
+ <quiet>true</quiet>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.igormaznitsa</groupId>
+ <artifactId>jcp</artifactId>
+ <executions>
+ <execution>
+ <id>preprocessSources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>preprocess</goal>
+ </goals>
+ <configuration>
+ <!-- generated-sources is not used, otherwise IDEA picks sources from both src and generated-sources,
+ and produces lots of "duplicate class" errors -->
+ <destination>${postgresql.preprocessed.sources.directory}</destination>
+ <compareDestination>true</compareDestination>
+ </configuration>
+ </execution>
+ <execution>
+ <id>preprocessTestSources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>preprocess</goal>
+ </goals>
+ <configuration>
+ <!-- generated-sources is not used, otherwise IDEA picks sources from both src and generated-sources,
+ and produces lots of "duplicate class" errors -->
+ <testDestination>${postgresql.preprocessed.test.sources.directory}</testDestination>
+ <compareDestination>true</compareDestination>
+ <useTestSources>true</useTestSources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ <manifestEntries>
+ <Main-Class>org.postgresql.util.PGJDBCMain</Main-Class>
+ <Specification-Title>JDBC</Specification-Title>
+ <Specification-Version>${jdbc.specification.version}</Specification-Version>
+ <Specification-Vendor>Oracle Corporation</Specification-Vendor>
+ </manifestEntries>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Export-Package>org.postgresql*; version=${parsedVersion.osgiVersion}</Export-Package>
+ <Import-Package>javax.sql, javax.transaction.xa, javax.naming, *;resolution:=optional
+ </Import-Package>
+ <Bundle-Activator>org.postgresql.osgi.PGBundleActivator</Bundle-Activator>
+ <Bundle-SymbolicName>org.postgresql.jdbc${jdbc.specification.version.nodot}
+ </Bundle-SymbolicName>
+ <Bundle-Name>PostgreSQL JDBC Driver JDBC${jdbc.specification.version.nodot}
+ </Bundle-Name>
+ <Bundle-Copyright>Copyright (c) 2003-2015, PostgreSQL Global Development Group
+ </Bundle-Copyright>
+ <Require-Capability>osgi.ee;filter:="(&(|(osgi.ee=J2SE)(osgi.ee=JavaSE))(version>=${javac.target}))"
+ </Require-Capability>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
|