-
Notifications
You must be signed in to change notification settings - Fork 21
/
pom.xml
169 lines (155 loc) · 6.37 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
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fasterxml</groupId>
<artifactId>oss-parent</artifactId>
<version>56</version>
</parent>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-parent</artifactId>
<version>2.16.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Jackson parent poms</name>
<description>Parent pom for all Jackson components</description>
<url>http://github.com/FasterXML/</url>
<organization>
<name>FasterXML</name>
<url>http://fasterxml.com/</url>
</organization>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>cowtowncoder</id>
<name>Tatu Saloranta</name>
<email>tatu@fasterxml.com</email>
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:FasterXML/jackson-parent.git</connection>
<developerConnection>scm:git:git@github.com:FasterXML/jackson-parent.git</developerConnection>
<url>http://github.com/FasterXML/jackson-parent</url>
<tag>HEAD</tag>
</scm>
<properties>
<!-- 02-Oct-2015, tatu: Jackson 2.4 and above are Java 6 (earlier versions Java 5);
Jackson 2.7 and above Java 7 (with exception of `jackson-core`/`jackson-annotations` still Java 6),
-->
<!-- 09-Jan-2021, tatu: Jackson 2.13 finally raises baseline to Java 8, with continuing
exception fo `jackson-core`/`jackson-annotations` as Java 6 -->
<javac.src.version>1.8</javac.src.version>
<javac.target.version>1.8</javac.target.version>
<maven.compiler.source>${javac.src.version}</maven.compiler.source>
<maven.compiler.target>${javac.target.version}</maven.compiler.target>
<javac.debuglevel>lines,source,vars</javac.debuglevel>
<!--
| For automatically generating PackageVersion.java. Your child pom.xml must define
| packageVersion.dir and packageVersion.package, and must set the phase of the
| process-packageVersion execution of maven-replacer-plugin to 'generate-sources'.
-->
<packageVersion.template.input>${basedir}/src/main/java/${packageVersion.dir}/PackageVersion.java.in</packageVersion.template.input>
<packageVersion.template.output>${generatedSourcesDir}/${packageVersion.dir}/PackageVersion.java</packageVersion.template.output>
<project.build.outputTimestamp>2023-11-15T19:21:12Z</project.build.outputTimestamp>
</properties>
<!-- 17-Sep-2021, tatu: Used to have junit prior to Jackson 2.13, removed due to
[jackson-bom#43] issue
-->
<!-- Alas, need to include snapshot reference since otherwise can not find
snapshot of parent... -->
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<!-- Jackson has stricter enforced requirements than parent pom -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.6,)</version>
<message>[ERROR] The currently supported version of Maven is 3.6 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>
</executions>
</plugin>
<!-- use of replacer plug-in specific to Jackson -->
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>${version.plugin.replacer}</version>
<executions>
<execution>
<id>process-packageVersion</id>
<goals>
<goal>replace</goal>
</goals>
<!--
| We explicitly omit 'phase' here so child poms can opt in to
| generating their PackageVersion.java file.
|
| If your child pom wants a PackageVersion.java file, define
| the 'packageVersion.dir' and 'packageVersion.package' properties
| and include the commented-out section in your child pom's plugin
| for this execution ID.
<phase>generate-sources</phase>
-->
</execution>
</executions>
<configuration>
<file>${packageVersion.template.input}</file>
<outputFile>${packageVersion.template.output}</outputFile>
<replacements>
<replacement>
<token>@package@</token>
<value>${packageVersion.package}</value>
</replacement>
<replacement>
<token>@projectversion@</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>@projectgroupid@</token>
<value>${project.groupId}</value>
</replacement>
<replacement>
<token>@projectartifactid@</token>
<value>${project.artifactId}</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>