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:="(&amp;(|(osgi.ee=J2SE)(osgi.ee=JavaSE))(version&gt;=${javac.target}))"
+            </Require-Capability>
+          </instructions>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
         <configuration>
