forked from FasterXML/jackson-parent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
217 lines (202 loc) · 7.79 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?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>27</version>
</parent>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-parent</artifactId>
<version>2.9-rc1-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>[email protected]</email>
</developer>
<developer>
<id>christophercurrie</id>
<name>Christopher Currie</name>
<email />
</developer>
<developer>
<id>prb</id>
<name>Paul Brown</name>
<email>[email protected]</email>
</developer>
</developers>
<contributors>
<contributor>
<name>Simone Tripodi</name>
<email>[email protected]</email>
</contributor>
</contributors>
<scm>
<connection>scm:git:[email protected]:FasterXML/jackson-parent.git</connection>
<developerConnection>scm:git:[email protected]:FasterXML/jackson-parent.git</developerConnection>
<url>http://github.com/FasterXML/jackson-parent</url>
<tag>HEAD</tag>
</scm>
<properties>
<version.jackson.annotations>2.9.0-SNAPSHOT</version.jackson.annotations>
<!-- 02-Oct-2015, tatu: Jackson 2.4 and above are Java 6 (earlier versions Java 5);
Jackson 2.7 and above Java 6 (with exception of `jackson-core`/`jackson-annotations` still Java 6)
-->
<javac.src.version>1.7</javac.src.version>
<javac.target.version>1.7</javac.target.version>
<javac.debuglevel>lines,source,vars</javac.debuglevel>
<!-- Versions for other dependencies -->
<version.junit>4.12</version.junit>
<!--
| 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>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${version.jackson.annotations}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- Jackson has stricter enforced requirements than parent pom -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-java</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.7,)</version>
<message>[ERROR] The currently supported version of Java is 1.7 or higher</message>
</requireJavaVersion>
<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>
</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>
<plugin>
<!-- Work around Eclipse incompatibility (http://code.google.com/p/maven-replacer-plugin/issues/detail?id=66) -->
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<versionRange>[${version.plugin.replacer},)</versionRange>
<goals>
<goal>replace</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>