• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5  <modelVersion>4.0.0</modelVersion>
6  <parent>
7    <groupId>com.google.protobuf</groupId>
8    <artifactId>protobuf-parent</artifactId>
9    <version>3.0.0-beta-3</version>
10  </parent>
11
12  <artifactId>protobuf-lite</artifactId>
13  <packaging>bundle</packaging>
14
15  <name>Protocol Buffers [Lite]</name>
16  <description>A trimmed-down version of the Protocol Buffers library.</description>
17
18  <dependencies>
19    <dependency>
20      <groupId>junit</groupId>
21      <artifactId>junit</artifactId>
22    </dependency>
23    <dependency>
24      <groupId>org.easymock</groupId>
25      <artifactId>easymock</artifactId>
26    </dependency>
27    <dependency>
28      <groupId>org.easymock</groupId>
29      <artifactId>easymockclassextension</artifactId>
30    </dependency>
31  </dependencies>
32
33  <properties>
34    <core.root>../core</core.root>
35    <test.proto.dir>${core.root}/src/test/proto</test.proto.dir>
36  </properties>
37
38  <build>
39    <sourceDirectory>${core.root}/src/main/java</sourceDirectory>
40    <testSourceDirectory>${core.root}/src/test/java</testSourceDirectory>
41
42    <plugins>
43      <!-- Use Antrun plugin to generate sources with protoc -->
44      <plugin>
45        <artifactId>maven-antrun-plugin</artifactId>
46        <executions>
47          <!-- Generate core protos -->
48          <execution>
49            <id>generate-sources</id>
50            <phase>generate-sources</phase>
51            <configuration>
52              <target>
53                <ant antfile="generate-sources-build.xml"/>
54              </target>
55            </configuration>
56            <goals>
57              <goal>run</goal>
58            </goals>
59          </execution>
60
61          <!-- Generate the test protos -->
62          <execution>
63            <id>generate-test-sources</id>
64            <phase>generate-test-sources</phase>
65            <configuration>
66              <target>
67                <ant antfile="generate-test-sources-build.xml"/>
68              </target>
69            </configuration>
70            <goals>
71              <goal>run</goal>
72            </goals>
73          </execution>
74        </executions>
75      </plugin>
76
77      <!-- Only compile a subset of the files -->
78      <plugin>
79        <artifactId>maven-compiler-plugin</artifactId>
80        <configuration>
81          <generatedSourcesDirectory>${generated.sources.lite.dir}</generatedSourcesDirectory>
82          <generatedTestSourcesDirectory>${generated.testsources.lite.dir}</generatedTestSourcesDirectory>
83          <includes>
84            <include>**/AbstractMessageLite.java</include>
85            <include>**/AbstractParser.java</include>
86            <include>**/AbstractProtobufList.java</include>
87            <include>**/BooleanArrayList.java</include>
88            <include>**/ByteString.java</include>
89            <include>**/CodedInputStream.java</include>
90            <include>**/CodedOutputStream.java</include>
91            <include>**/DoubleArrayList.java</include>
92            <include>**/ExtensionLite.java</include>
93            <include>**/ExtensionRegistryLite.java</include>
94            <include>**/FieldSet.java</include>
95            <include>**/FloatArrayList.java</include>
96            <include>**/GeneratedMessageLite.java</include>
97            <include>**/IntArrayList.java</include>
98            <include>**/Internal.java</include>
99            <include>**/InvalidProtocolBufferException.java</include>
100            <include>**/LazyFieldLite.java</include>
101            <include>**/LazyStringArrayList.java</include>
102            <include>**/LazyStringList.java</include>
103            <include>**/LongArrayList.java</include>
104            <include>**/MapEntryLite.java</include>
105            <include>**/MapFieldLite.java</include>
106            <include>**/MessageLite.java</include>
107            <include>**/MessageLiteOrBuilder.java</include>
108            <include>**/MessageLiteToString.java</include>
109            <include>**/MutabilityOracle.java</include>
110            <include>**/NioByteString.java</include>
111            <include>**/Parser.java</include>
112            <include>**/ProtobufArrayList.java</include>
113            <include>**/ProtocolStringList.java</include>
114            <include>**/RopeByteString.java</include>
115            <include>**/SmallSortedMap.java</include>
116            <include>**/TextFormatEscaper.java</include>
117            <include>**/UninitializedMessageException.java</include>
118            <include>**/UnknownFieldSetLite.java</include>
119            <include>**/UnmodifiableLazyStringList.java</include>
120            <include>**/UnsafeByteOperations.java</include>
121            <include>**/Utf8.java</include>
122            <include>**/WireFormat.java</include>
123          </includes>
124          <testIncludes>
125            <testInclude>**/*Lite.java</testInclude>
126            <testInclude>**/BooleanArrayListTest.java</testInclude>
127            <testInclude>**/DoubleArrayListTest.java</testInclude>
128            <testInclude>**/FloatArrayListTest.java</testInclude>
129            <testInclude>**/IntArrayListTest.java</testInclude>
130            <testInclude>**/LazyMessageLiteTest.java</testInclude>
131            <testInclude>**/LiteTest.java</testInclude>
132            <testInclude>**/LongArrayListTest.java</testInclude>
133            <testInclude>**/NioByteStringTest.java</testInclude>
134            <testInclude>**/ProtobufArrayListTest.java</testInclude>
135            <testInclude>**/UnknownFieldSetLiteTest.java</testInclude>
136          </testIncludes>
137        </configuration>
138      </plugin>
139
140      <!-- OSGI bundle configuration -->
141      <plugin>
142        <groupId>org.apache.felix</groupId>
143        <artifactId>maven-bundle-plugin</artifactId>
144        <extensions>true</extensions>
145        <configuration>
146          <instructions>
147            <Bundle-DocURL>https://developers.google.com/protocol-buffers/</Bundle-DocURL>
148            <Bundle-SymbolicName>com.google.protobuf</Bundle-SymbolicName>
149            <Export-Package>com.google.${project.artifactId};version=${project.version}</Export-Package>
150          </instructions>
151        </configuration>
152      </plugin>
153    </plugins>
154  </build>
155
156</project>
157