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</groupId> 8 <artifactId>google</artifactId> 9 <version>1</version> 10 </parent> 11 <groupId>com.google.protobuf</groupId> 12 <artifactId>protobuf-java</artifactId> 13 <version>2.5.0-pre</version> 14 <packaging>bundle</packaging> 15 <name>Protocol Buffer Java API</name> 16 <description> 17 Protocol Buffers are a way of encoding structured data in an efficient yet 18 extensible format. 19 </description> 20 <inceptionYear>2008</inceptionYear> 21 <url>http://code.google.com/p/protobuf</url> 22 <licenses> 23 <license> 24 <name>New BSD license</name> 25 <url>http://www.opensource.org/licenses/bsd-license.php</url> 26 <distribution>repo</distribution> 27 </license> 28 </licenses> 29 <scm> 30 <url>http://code.google.com/p/protobuf/source/browse</url> 31 <connection> 32 scm:svn:http://protobuf.googlecode.com/svn/trunk/ 33 </connection> 34 </scm> 35 <dependencies> 36 <dependency> 37 <groupId>junit</groupId> 38 <artifactId>junit</artifactId> 39 <version>4.4</version> 40 <scope>test</scope> 41 </dependency> 42 <dependency> 43 <groupId>org.easymock</groupId> 44 <artifactId>easymock</artifactId> 45 <version>2.2</version> 46 <scope>test</scope> 47 </dependency> 48 <dependency> 49 <groupId>org.easymock</groupId> 50 <artifactId>easymockclassextension</artifactId> 51 <version>2.2.1</version> 52 <scope>test</scope> 53 </dependency> 54 </dependencies> 55 <build> 56 <plugins> 57 <plugin> 58 <artifactId>maven-compiler-plugin</artifactId> 59 <configuration> 60 <source>1.5</source> 61 <target>1.5</target> 62 </configuration> 63 </plugin> 64 <plugin> 65 <artifactId>maven-surefire-plugin</artifactId> 66 <configuration> 67 <includes> 68 <include>**/*Test.java</include> 69 </includes> 70 </configuration> 71 </plugin> 72 <plugin> 73 <artifactId>maven-antrun-plugin</artifactId> 74 <executions> 75 <execution> 76 <id>generate-sources</id> 77 <phase>generate-sources</phase> 78 <configuration> 79 <tasks> 80 <mkdir dir="target/generated-sources" /> 81 <exec executable="../src/protoc"> 82 <arg value="--java_out=target/generated-sources" /> 83 <arg value="--proto_path=../src" /> 84 <arg value="../src/google/protobuf/descriptor.proto" /> 85 </exec> 86 </tasks> 87 <sourceRoot>target/generated-sources</sourceRoot> 88 </configuration> 89 <goals> 90 <goal>run</goal> 91 </goals> 92 </execution> 93 <execution> 94 <id>generate-test-sources</id> 95 <phase>generate-test-sources</phase> 96 <configuration> 97 <tasks> 98 <mkdir dir="target/generated-test-sources" /> 99 <exec executable="../src/protoc"> 100 <arg value="--java_out=target/generated-test-sources" /> 101 <arg value="--proto_path=../src" /> 102 <arg value="--proto_path=src/test/java" /> 103 <arg value="../src/google/protobuf/unittest.proto" /> 104 <arg value="../src/google/protobuf/unittest_import.proto" /> 105 <arg value="../src/google/protobuf/unittest_import_public.proto" /> 106 <arg value="../src/google/protobuf/unittest_mset.proto" /> 107 <arg 108 value="src/test/java/com/google/protobuf/multiple_files_test.proto" /> 109 <arg value="src/test/java/com/google/protobuf/nested_builders_test.proto" /> 110 <arg value="src/test/java/com/google/protobuf/nested_extension.proto" /> 111 <arg value="src/test/java/com/google/protobuf/nested_extension_lite.proto" /> 112 <arg value="src/test/java/com/google/protobuf/non_nested_extension.proto" /> 113 <arg value="src/test/java/com/google/protobuf/non_nested_extension_lite.proto" /> 114 <arg value="src/test/java/com/google/protobuf/test_bad_identifiers.proto" /> 115 <arg 116 value="../src/google/protobuf/unittest_optimize_for.proto" /> 117 <arg 118 value="../src/google/protobuf/unittest_custom_options.proto" /> 119 <arg value="../src/google/protobuf/unittest_lite.proto" /> 120 <arg value="../src/google/protobuf/unittest_import_lite.proto" /> 121 <arg value="../src/google/protobuf/unittest_import_public_lite.proto" /> 122 <arg value="../src/google/protobuf/unittest_lite_imports_nonlite.proto" /> 123 <arg value="../src/google/protobuf/unittest_enormous_descriptor.proto" /> 124 <arg value="../src/google/protobuf/unittest_no_generic_services.proto" /> 125 </exec> 126 </tasks> 127 <testSourceRoot>target/generated-test-sources</testSourceRoot> 128 </configuration> 129 <goals> 130 <goal>run</goal> 131 </goals> 132 </execution> 133 </executions> 134 </plugin> 135 <plugin> 136 <groupId>org.apache.felix</groupId> 137 <artifactId>maven-bundle-plugin</artifactId> 138 <extensions>true</extensions> 139 <configuration> 140 <instructions> 141 <Export-Package>*</Export-Package> 142 </instructions> 143 </configuration> 144 </plugin> 145 </plugins> 146 </build> 147 <profiles> 148 <profile> 149 <id>lite</id> 150 <build> 151 <plugins> 152 <plugin> 153 <artifactId>maven-compiler-plugin</artifactId> 154 <configuration> 155 <includes> 156 <include>**/AbstractMessageLite.java</include> 157 <include>**/ByteString.java</include> 158 <include>**/CodedInputStream.java</include> 159 <include>**/CodedOutputStream.java</include> 160 <include>**/ExtensionRegistryLite.java</include> 161 <include>**/FieldSet.java</include> 162 <include>**/GeneratedMessageLite.java</include> 163 <include>**/Internal.java</include> 164 <include>**/InvalidProtocolBufferException.java</include> 165 <include>**/LazyStringArrayList.java</include> 166 <include>**/LazyStringList.java</include> 167 <include>**/MessageLite.java</include> 168 <include>**/MessageLiteOrBuilder.java</include> 169 <include>**/SmallSortedMap.java</include> 170 <include>**/UninitializedMessageException.java</include> 171 <include>**/UnmodifiableLazyStringList.java</include> 172 <include>**/WireFormat.java</include> 173 <include>**/Parser.java</include> 174 <include>**/AbstractParser.java</include> 175 <include>**/BoundedByteString.java</include> 176 <include>**/LiteralByteString.java</include> 177 <include>**/RopeByteString.java</include> 178 <include>**/Utf8.java</include> 179 <include>**/LazyField.java</include> 180 </includes> 181 <testIncludes> 182 <testInclude>**/LiteTest.java</testInclude> 183 <testInclude>**/*Lite.java</testInclude> 184 </testIncludes> 185 </configuration> 186 </plugin> 187 <plugin> 188 <artifactId>maven-surefire-plugin</artifactId> 189 <configuration> 190 <includes> 191 <include>**/LiteTest.java</include> 192 </includes> 193 </configuration> 194 </plugin> 195 <plugin> 196 <artifactId>maven-jar-plugin</artifactId> 197 <configuration> 198 <classifier>lite</classifier> 199 </configuration> 200 </plugin> 201 </plugins> 202 </build> 203 </profile> 204 </profiles> 205 </project> 206