[jackson-core] 04/19: Install jackson-base-2.9.4.pom which is required by other jackson projects.

Markus Koschany apo at moszumanska.debian.org
Thu Jan 25 22:29:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository jackson-core.

commit a11aff2495be80c0817eb06a49a5a7b3a13224b3
Author: Markus Koschany <apo at debian.org>
Date:   Thu Jan 25 18:01:32 2018 +0100

    Install jackson-base-2.9.4.pom which is required by other jackson projects.
---
 debian/jackson-base-2.9.4.pom | 159 ++++++++++++++++++++++++++++++++++++++++++
 debian/rules                  |   3 +-
 2 files changed, 161 insertions(+), 1 deletion(-)

diff --git a/debian/jackson-base-2.9.4.pom b/debian/jackson-base-2.9.4.pom
new file mode 100644
index 0000000..35022cb
--- /dev/null
+++ b/debian/jackson-base-2.9.4.pom
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>com.fasterxml.jackson</groupId>
+    <artifactId>jackson-bom</artifactId>
+    <version>2.9.4</version>
+  </parent>
+  <artifactId>jackson-base</artifactId>
+  <packaging>pom</packaging>
+  <description>Parent pom for components of Jackson dataprocessor: includes base settings as well
+as consistent set of dependencies across components. NOTE: NOT to be used by components outside
+of Jackson: application code should only rely on `jackson-bom`
+  </description>
+  <properties>
+    <!-- by default, assume Automatic Module Name can use same package as one
+         that contains `PackageVersion` class: works for all extension modules
+        (but some core components require override)
+      -->
+    <jdk.module.name>${packageVersion.package}</jdk.module.name>
+
+    <!-- 27-Sep-2017, tatu: Until update of parent poms (at least), need to
+           ensure newer versions of certain plugins
+      -->
+    <version.plugin.javadoc>3.0.0-M1</version.plugin.javadoc>
+
+  </properties>
+
+  <dependencies>
+    <dependency> <!-- all components use junit for testing -->
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+
+        <!-- Verify existence of certain settings
+          -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>3.0.0-M1</version>
+          <executions>
+            <execution>
+              <id>enforce-java</id>
+              <phase>validate</phase>
+              <goals>
+		<goal>enforce</goal>
+              </goals>
+              <configuration>
+              <rules>
+                <requireMavenVersion>
+                  <version>[3.0,)</version>
+                  <message>[ERROR] The currently supported version of Maven is 3.0 or higher</message>
+                </requireMavenVersion>
+                <requirePluginVersions>
+                  <banLatest>true</banLatest>
+                  <banRelease>true</banRelease>
+                  <banSnapshots>true</banSnapshots>
+                  <phases>clean,deploy,site</phases>
+                  <message>[ERROR] Best Practice is to always define plugin versions!</message>
+                </requirePluginVersions>
+	      </rules>
+	      </configuration>
+	    </execution>
+            <execution>
+              <id>enforce-properties</id>
+              <phase>validate</phase>
+
+<!-- important! Do NOT enable here since parent does not define, build would fail
+    BUT: alas means child has specify settings for phase AND goals like so:
+              <phase>validate</phase>
+              <goals>
+		<goal>enforce</goal>
+              </goals>
+-->
+              <configuration>
+		<rules>
+                  <!-- Needed both for Replacer plug-in AND for Automatic Module Name -->
+                  <requireProperty>
+                    <property>packageVersion.package</property>
+                  </requireProperty>
+                  <requireProperty>
+                    <property>packageVersion.dir</property>
+                  </requireProperty>
+		</rules>
+              </configuration>
+            </execution>
+          </executions>
+	</plugin>
+
+        <!-- Augment settings of OSGi bundles created -->
+	<plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <configuration>
+            <instructions combine.children="merge">
+              <Automatic-Module-Name>${jdk.module.name}</Automatic-Module-Name>
+            </instructions>
+          </configuration>
+	</plugin>
+
+	<plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>${version.plugin.javadoc}</version>
+          <configuration>
+<!-- Disable Java 8 javadoc warnings -->
+            <additionalparam>-Xdoclint:none</additionalparam>
+<!-- ... if on Java 8 -->
+<!-- otherwise just: -->
+            <failOnError>false</failOnError>
+            <links>
+              <link>http://docs.oracle.com/javase/8/docs/api/</link>
+            </links>
+          </configuration>
+	</plugin>
+        <!-- Set up replacer but do not invoke (it's pom, after all) -->
+	<plugin>
+          <groupId>com.google.code.maven-replacer-plugin</groupId>
+          <artifactId>replacer</artifactId>
+          <executions>
+            <execution>
+              <id>process-packageVersion</id>
+              <phase>generate-sources</phase>
+            </execution>
+          </executions>
+	</plugin>
+
+	<!-- 08-Aug-2017, tatu: Need newer version of cobertura wrt Java 8+ -->
+	<plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>cobertura-maven-plugin</artifactId>
+          <version>2.7</version>
+	</plugin>
+      </plugins>
+    </pluginManagement>
+
+    <!-- And one more odd thing... we actually MUST disable checks just for this
+         pom (but not on something that extends i)
+      -->
+    <plugins>
+      <plugin>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-properties</id>
+            <phase>none</phase>
+          </execution>
+        </executions>
+      </plugin>
+   </plugins>
+
+  </build>
+</project>
diff --git a/debian/rules b/debian/rules
index a30b4cf..9142aca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,8 @@ override_dh_auto_install:
 	# Install the parent poms (used by the other jackson packages)
 	mh_installpom -plibjackson2-core-java --keep-elements=build debian/oss-parent-31.pom
 	mh_installpom -plibjackson2-core-java --keep-elements=build debian/jackson-parent-2.9.1.pom
-	mh_installpom -plibjackson2-core-java --keep-elements=build debian/jackson-bom-2.9.1.pom
+	mh_installpom -plibjackson2-core-java --keep-elements=build debian/jackson-bom-2.9.4.pom
+	mh_installpom -plibjackson2-core-java --keep-elements=build debian/jackson-base-2.9.4.pom
 
 override_dh_auto_clean:
 	rm -f $(VERSION_FILE)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-core.git



More information about the pkg-java-commits mailing list