This repository has been archived by the owner on Jan 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
pom.xml
115 lines (107 loc) · 4.28 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
<?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-parent</artifactId>
<version>2.7</version>
</parent>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-protobuf</artifactId>
<name>Jackson-dataformat-protobuf</name>
<version>2.7.10-SNAPSHOT</version>
<packaging>bundle</packaging>
<description>Support for reading and writing protobuf-encoded data via Jackson
abstractions.
</description>
<url>http://wiki.fasterxml.com/JacksonExtensionProtobuf</url>
<scm>
<connection>scm:git:[email protected]:FasterXML/jackson-dataformat-protobuf.git</connection>
<developerConnection>scm:git:[email protected]:FasterXML/jackson-dataformat-protobuf.git</developerConnection>
<url>http://github.com/FasterXML/jackson-dataformat-protobuf</url>
<tag>HEAD</tag>
</scm>
<properties>
<jackson.version.core>2.7.9</jackson.version.core>
<packageVersion.dir>com/fasterxml/jackson/dataformat/protobuf</packageVersion.dir>
<packageVersion.package>${project.groupId}.protobuf</packageVersion.package>
<!-- Default OSGi import is fine, export _should_ be, but due to shading play it safe -->
<osgi.export>${project.groupId}.protobuf.*; version=${project.version}</osgi.export>
<osgi.private>com.squareup.protoparser.*</osgi.private>
</properties>
<dependencies>
<!-- Extends Jackson core; uses protostuff libs for parsing, generation -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version.core}</version>
</dependency>
<!-- Hmmh. Need databind for schema generation, convenience ProtobufMapper.
However: dependency should be possible to include as 'provided', to
make it possible to exclude for use cases where ObjectMapper and databind
are not strictly needed.
-->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version.core}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>protoparser</artifactId>
<version>4.0.0</version>
</dependency>
<!-- and for testing, JUnit is needed; as well as annotations -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<id>process-packageVersion</id>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
<plugin>
<!-- We will shade proto-parser, to simplify deployment, avoid version conflicts -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<!-- the bundle plugin already did the pulling-in, all we need is the renaming! -->
<!--
<include>com.squareup:protoparser</include>
-->
<include>null:null</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.squareup</pattern>
<shadedPattern>com.fasterxml.jackson.dataformat.protobuf.protoparser</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>