blob: d165944c1c78c299303d3e5f573415ee29b78d7c [file] [log] [blame]
Tatu Saloranta90c43522011-12-22 23:25:27 -08001<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">
2 <modelVersion>4.0.0</modelVersion>
3 <parent>
4 <groupId>org.sonatype.oss</groupId>
5 <artifactId>oss-parent</artifactId>
Tatu Saloranta209e0782012-03-26 19:05:51 -07006 <version>7</version>
Tatu Saloranta90c43522011-12-22 23:25:27 -08007 </parent>
8 <groupId>com.fasterxml.jackson.core</groupId>
9 <artifactId>jackson-databind</artifactId>
10 <name>jackson-databind</name>
Tatu Salorantae55a9352012-03-25 12:09:18 -070011 <version>2.0.1-SNAPSHOT</version>
Tatu Saloranta90c43522011-12-22 23:25:27 -080012 <packaging>bundle</packaging>
13 <description>General data-binding functionality for Jackson: works on core streaming API
14 </description>
15 <url>http://wiki.fasterxml.com/JacksonHome</url>
16 <scm>
17 <connection>scm:git:git@github.com:FasterXML/jackson-databind.git</connection>
18 <developerConnection>scm:git:git@github.com:FasterXML/jackson-databind.git</developerConnection>
19 <url>http://github.com/FasterXML/jackson-databind</url>
20 </scm>
21 <developers>
22 <developer>
23 <id>tatu</id>
24 <name>Tatu Saloranta</name>
25 <email>tatu@fasterxml.com</email>
26 </developer>
27 </developers>
28
29 <prerequisites>
30 <maven>2.2.1</maven>
31 </prerequisites>
32 <properties>
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34 </properties>
35
36 <!-- Licensing -->
37 <licenses>
38 <license>
39 <name>The Apache Software License, Version 2.0</name>
40 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
41 <distribution>repo</distribution>
42 </license>
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080043 <license>
44 <name>Lesser Gnu Public License (LGPL), Version 2.1</name>
45 <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
46 <distribution>repo</distribution>
47 </license>
Tatu Saloranta90c43522011-12-22 23:25:27 -080048 </licenses>
49 <organization>
50 <name>fasterxml.com</name>
51 <url>http://fasterxml.com</url>
52 </organization>
53
54 <dependencies>
55 <!-- Builds on core streaming API; also needs core annotations -->
56 <dependency>
57 <groupId>com.fasterxml.jackson.core</groupId>
Tatu Salorantadeaee9c2012-03-25 12:01:34 -070058 <artifactId>jackson-annotations</artifactId>
59 <version>2.0.0</version>
Tatu Saloranta90c43522011-12-22 23:25:27 -080060 </dependency>
61 <dependency>
62 <groupId>com.fasterxml.jackson.core</groupId>
Tatu Salorantadeaee9c2012-03-25 12:01:34 -070063 <artifactId>jackson-core</artifactId>
64 <version>2.0.0</version>
Tatu Saloranta90c43522011-12-22 23:25:27 -080065 </dependency>
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080066
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080067 <!-- and for testing, JUnit is needed, as well as quite a few
68 libs for which we use reflection for code, but direct dep for testing
69 -->
Tatu Saloranta90c43522011-12-22 23:25:27 -080070 <dependency>
71 <groupId>junit</groupId>
72 <artifactId>junit</artifactId>
73 <version>4.8.2</version>
74 <scope>test</scope>
75 </dependency>
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080076 <dependency>
77 <groupId>cglib</groupId>
78 <artifactId>cglib</artifactId>
79 <version>2.2.2</version>
80 <scope>test</scope>
81 </dependency>
82 <dependency>
83 <groupId>com.google.collections</groupId>
84 <artifactId>google-collections</artifactId>
85 <version>1.0</version>
86 <scope>test</scope>
87 </dependency>
88 <dependency>
89 <groupId>org.codehaus.groovy</groupId>
90 <artifactId>groovy</artifactId>
91 <version>1.7.9</version>
92 <scope>test</scope>
93 </dependency>
Tatu Saloranta252af512011-12-24 10:25:45 -080094 <dependency> <!-- from core we just test for repackaged cglib, not hibernate proper -->
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080095 <groupId>org.hibernate</groupId>
Tatu Saloranta252af512011-12-24 10:25:45 -080096 <artifactId>hibernate-cglib-repack</artifactId>
97 <version>2.1_3</version>
Tatu Saloranta6e21fbf2011-12-24 10:08:25 -080098 <scope>test</scope>
99 </dependency>
Tatu Saloranta90c43522011-12-22 23:25:27 -0800100 </dependencies>
101
102 <build>
Tatu Saloranta285de7a2011-12-28 20:38:35 -0800103 <!-- need to enable filtering to add version info -->
104 <resources>
105 <resource>
106 <directory>src/main/resources</directory>
107 <filtering>true</filtering>
108 </resource>
109 </resources>
Tatu Saloranta90c43522011-12-22 23:25:27 -0800110 <plugins>
111 <plugin>
112 <artifactId>maven-compiler-plugin</artifactId>
113 <version>2.3.2</version>
114 <configuration>
Tatu Salorantaf1c79d42012-04-17 07:57:41 -0700115 <source>1.5</source>
116 <target>1.5</target>
Tatu Saloranta90c43522011-12-22 23:25:27 -0800117 </configuration>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-release-plugin</artifactId>
122 <version>2.1</version>
123 <configuration>
124 <mavenExecutorId>forked-path</mavenExecutorId>
125 </configuration>
126 </plugin>
127 <plugin><!-- plug-in to attach source bundle in repo -->
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-source-plugin</artifactId>
130 <version>2.1.2</version>
131 <executions>
132 <execution>
133 <id>attach-sources</id>
134 <goals>
135 <goal>jar</goal>
136 </goals>
137 </execution>
138 </executions>
139 </plugin>
Tatu Salorantad063daa2012-02-24 16:09:04 -0800140 <plugin>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-surefire-plugin</artifactId>
143 <version>2.12</version>
144 <configuration>
145 <excludes>
146 <exclude>com/fasterxml/jackson/failing/*.java</exclude>
147 </excludes>
148 </configuration>
149 </plugin>
150 <plugin>
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-surefire-report-plugin</artifactId>
153 <version>2.12</version>
154 <executions>
155 <execution>
156 <phase>test</phase>
157 <goals>
158 <goal>report-only</goal>
159 </goals>
160 </execution>
161 </executions>
162 </plugin>
Tatu Saloranta65c83692011-12-24 18:15:07 -0800163
Tatu Saloranta90c43522011-12-22 23:25:27 -0800164 <plugin>
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-javadoc-plugin</artifactId>
Tatu Saloranta261f2142012-03-25 12:07:40 -0700167 <version>2.8.1</version>
Tatu Saloranta90c43522011-12-22 23:25:27 -0800168 <configuration>
169 <source>1.5</source>
170 <target>1.5</target>
171 <encoding>UTF-8</encoding>
172 <maxmemory>512m</maxmemory>
173 <links>
Tatu Saloranta1421af62012-03-09 21:46:44 -0800174 <link>http://docs.oracle.com/javase/6/docs/api/</link>
Tatu Saloranta90c43522011-12-22 23:25:27 -0800175 </links>
176 </configuration>
177 <executions>
178 <execution>
179 <id>attach-javadocs</id>
180 <phase>verify</phase>
181 <goals>
182 <goal>jar</goal>
183 </goals>
184 </execution>
185 </executions>
186 </plugin>
187
188 <!-- Plus, let's make jars OSGi bundles as well -->
189 <plugin>
190 <groupId>org.apache.felix</groupId>
191 <artifactId>maven-bundle-plugin</artifactId>
192 <version>2.3.6</version>
193 <extensions>true</extensions>
194 <configuration>
195 <instructions>
196 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
197 <Bundle-Vendor>fasterml.com</Bundle-Vendor>
198 <Import-Package>
Tatu Saloranta2f823442011-12-23 20:25:27 -0800199com.fasterxml.jackson.annotation,
Tatu Salorantae4f23bb2011-12-23 00:31:35 -0800200com.fasterxml.jackson.core,
Tatu Saloranta2f823442011-12-23 20:25:27 -0800201com.fasterxml.jackson.core.base,
Tatu Salorantae4f23bb2011-12-23 00:31:35 -0800202com.fasterxml.jackson.core.format,
Tatu Saloranta2f823442011-12-23 20:25:27 -0800203com.fasterxml.jackson.core.json,
204com.fasterxml.jackson.core.io,
205com.fasterxml.jackson.core.util,
206com.fasterxml.jackson.core.type,
207org.xml.sax,org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.ls,
208javax.xml.datatype, javax.xml.namespace, javax.xml.parsers
Tatu Saloranta90c43522011-12-22 23:25:27 -0800209</Import-Package>
210 <Private-Package>
211</Private-Package>
212 <Export-Package>
Tatu Saloranta2f823442011-12-23 20:25:27 -0800213com.fasterxml.jackson.databind,
214com.fasterxml.jackson.databind.annotation,
Tatudfed9242012-01-19 12:31:44 -0800215com.fasterxml.jackson.databind.cfg,
Tatu Saloranta2f823442011-12-23 20:25:27 -0800216com.fasterxml.jackson.databind.deser,
217com.fasterxml.jackson.databind.deser.impl,
218com.fasterxml.jackson.databind.deser.std,
219com.fasterxml.jackson.databind.exc,
220com.fasterxml.jackson.databind.ext,
221com.fasterxml.jackson.databind.introspect,
222com.fasterxml.jackson.databind.jsonschema,
223com.fasterxml.jackson.databind.jsontype,
224com.fasterxml.jackson.databind.jsontype.impl,
Tatu Saloranta512a05b2011-12-28 10:45:31 -0800225com.fasterxml.jackson.databind.module,
Tatu Saloranta2f823442011-12-23 20:25:27 -0800226com.fasterxml.jackson.databind.node,
227com.fasterxml.jackson.databind.ser,
228com.fasterxml.jackson.databind.ser.impl,
229com.fasterxml.jackson.databind.ser.std,
230com.fasterxml.jackson.databind.type,
231com.fasterxml.jackson.databind.util,
Tatu Saloranta90c43522011-12-22 23:25:27 -0800232</Export-Package>
233 </instructions>
234 </configuration>
235 </plugin>
236 </plugins>
237 </build>
Tatu Saloranta65c83692011-12-24 18:15:07 -0800238
239 <reporting>
240 <plugins>
241 <plugin>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-surefire-report-plugin</artifactId>
244 <version>2.11</version>
245 </plugin>
246 </plugins>
247 </reporting>
248
Tatu Saloranta90c43522011-12-22 23:25:27 -0800249 <profiles>
Tatu Saloranta9af59042012-02-19 00:03:55 -0800250 <profile>
251 <id>release</id>
252 <properties>
253 <maven.test.skip>true</maven.test.skip>
254 <skipTests>true</skipTests>
255 </properties>
256 </profile>
257
Tatu Saloranta90c43522011-12-22 23:25:27 -0800258 <profile>
259 <id>release-sign-artifacts</id>
260 <activation>
261 <property>
262 <name>performRelease</name>
263 <value>true</value>
264 </property>
265 </activation>
266 <build>
267 <plugins>
268 <plugin>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-gpg-plugin</artifactId>
271 <version>1.1</version>
272 <executions>
273 <execution>
274 <id>sign-artifacts</id>
275 <phase>verify</phase>
276 <goals>
277 <goal>sign</goal>
278 </goals>
279 </execution>
280 </executions>
281 </plugin>
282 </plugins>
283 </build>
284 </profile>
285 </profiles>
286 <!-- NOTE: repositories from parent POM -->
287
288</project>