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.nano</groupId> 12 <artifactId>protobuf-javanano</artifactId> 13 <version>3.0.0-alpha-6</version> 14 <packaging>bundle</packaging> 15 <name>Protocol Buffer JavaNano 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>https://developers.google.com/protocol-buffers/</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>https://github.com/google/protobuf</url> 31 <connection> 32 scm:git:https://github.com/google/protobuf.git 33 </connection> 34 </scm> 35 <properties> 36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 37 </properties> 38 <dependencies> 39 <dependency> 40 <groupId>junit</groupId> 41 <artifactId>junit</artifactId> 42 <version>4.4</version> 43 <scope>test</scope> 44 </dependency> 45 <dependency> 46 <groupId>org.easymock</groupId> 47 <artifactId>easymock</artifactId> 48 <version>2.2</version> 49 <scope>test</scope> 50 </dependency> 51 <dependency> 52 <groupId>org.easymock</groupId> 53 <artifactId>easymockclassextension</artifactId> 54 <version>2.2.1</version> 55 <scope>test</scope> 56 </dependency> 57 </dependencies> 58 <build> 59 <plugins> 60 <plugin> 61 <artifactId>maven-compiler-plugin</artifactId> 62 <configuration> 63 <source>1.5</source> 64 <target>1.5</target> 65 </configuration> 66 </plugin> 67 <plugin> 68 <artifactId>maven-surefire-plugin</artifactId> 69 <configuration> 70 <includes> 71 <include>**/*Test.java</include> 72 </includes> 73 </configuration> 74 </plugin> 75 <plugin> 76 <artifactId>maven-antrun-plugin</artifactId> 77 <executions> 78 <execution> 79 <id>generate-test-sources</id> 80 <phase>generate-test-sources</phase> 81 <configuration> 82 <tasks> 83 <mkdir dir="target/generated-test-sources" /> 84 <exec executable="../src/protoc"> 85 <arg value="--javanano_out=generate_equals=true:target/generated-test-sources" /> 86 <arg value="--proto_path=src/test/java/com" /> 87 <arg value="src/test/java/com/google/protobuf/nano/unittest_nano.proto" /> 88 <arg value="src/test/java/com/google/protobuf/nano/unittest_simple_nano.proto" /> 89 <arg value="src/test/java/com/google/protobuf/nano/unittest_stringutf8_nano.proto" /> 90 <arg value="src/test/java/com/google/protobuf/nano/unittest_recursive_nano.proto" /> 91 <arg value="src/test/java/com/google/protobuf/nano/unittest_import_nano.proto" /> 92 <arg value="src/test/java/com/google/protobuf/nano/unittest_single_nano.proto" /> 93 <arg value="src/test/java/com/google/protobuf/nano/unittest_multiple_nano.proto" /> 94 <arg value="src/test/java/com/google/protobuf/nano/unittest_multiple_nameclash_nano.proto" /> 95 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_class_nano.proto" /> 96 <arg value="src/test/java/com/google/protobuf/nano/unittest_repeated_merge_nano.proto" /> 97 <arg value="src/test/java/com/google/protobuf/nano/map_test.proto" /> 98 </exec> 99 <exec executable="../src/protoc"> 100 <arg value="--javanano_out=store_unknown_fields=true,generate_equals=true,generate_clone=true:target/generated-test-sources" /> 101 <arg value="--proto_path=src/test/java/com" /> 102 <arg value="src/test/java/com/google/protobuf/nano/unittest_extension_nano.proto" /> 103 <arg value="src/test/java/com/google/protobuf/nano/unittest_extension_singular_nano.proto" /> 104 <arg value="src/test/java/com/google/protobuf/nano/unittest_extension_repeated_nano.proto" /> 105 </exec> 106 <exec executable="../src/protoc"> 107 <arg value="--javanano_out=store_unknown_fields=true,generate_clone=true:target/generated-test-sources" /> 108 <arg value="--proto_path=src/test/java/com" /> 109 <arg value="src/test/java/com/google/protobuf/nano/unittest_extension_packed_nano.proto" /> 110 </exec> 111 <exec executable="../src/protoc"> 112 <arg value="--javanano_out=store_unknown_fields=true:target/generated-test-sources" /> 113 <arg value="--proto_path=src/test/java/com" /> 114 <arg value="src/test/java/com/google/protobuf/unittest_unknown_enum_values_nano.proto" /> 115 </exec> 116 <exec executable="../src/protoc"> 117 <arg value="--javanano_out=java_nano_generate_has=true,generate_equals=true,generate_clone=true:target/generated-test-sources" /> 118 <arg value="--proto_path=src/test/java/com" /> 119 <arg value="src/test/java/com/google/protobuf/nano/unittest_has_nano.proto" /> 120 </exec> 121 <exec executable="../src/protoc"> 122 <arg value="--javanano_out=optional_field_style=accessors,generate_equals=true:target/generated-test-sources" /> 123 <arg value="--proto_path=src/test/java/com" /> 124 <arg value="src/test/java/com/google/protobuf/nano/unittest_accessors_nano.proto" /> 125 </exec> 126 <exec executable="../src/protoc"> 127 <arg value="--javanano_out=enum_style=java:target/generated-test-sources" /> 128 <arg value="--proto_path=src/test/java/com" /> 129 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_class_nano.proto" /> 130 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_class_multiple_nano.proto" /> 131 <arg value="src/test/java/com/google/protobuf/nano/unittest_repeated_packables_nano.proto" /> 132 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_validity_nano.proto" /> 133 </exec> 134 <exec executable="../src/protoc"> 135 <arg value="--javanano_out= 136 optional_field_style=accessors, 137 java_outer_classname=google/protobuf/nano/unittest_enum_validity_nano.proto|EnumValidityAccessors 138 :target/generated-test-sources" /> 139 <arg value="--proto_path=src/test/java/com" /> 140 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_validity_nano.proto" /> 141 </exec> 142 <exec executable="../src/protoc"> 143 <arg value="--javanano_out=optional_field_style=reftypes,generate_equals=true:target/generated-test-sources" /> 144 <arg value="--proto_path=src/test/java/com" /> 145 <arg value="src/test/java/com/google/protobuf/nano/unittest_reference_types_nano.proto" /> 146 </exec> 147 <exec executable="../src/protoc"> 148 <arg value="--javanano_out= 149 optional_field_style=reftypes_compat_mode, 150 generate_equals=true, 151 java_outer_classname=google/protobuf/nano/unittest_reference_types_nano.proto|NanoReferenceTypesCompat 152 :target/generated-test-sources" /> 153 <arg value="--proto_path=src/test/java/com" /> 154 <arg value="src/test/java/com/google/protobuf/nano/unittest_reference_types_nano.proto" /> 155 </exec> 156 <exec executable="../src/protoc"> 157 <arg value="--javanano_out=bytes_offset_length=true:target/generated-test-sources" /> 158 <arg value="--proto_path=src/test/java/com" /> 159 <arg value="src/test/google/protobuf/unittest_bytes_offset_length_nano.proto" /> 160 </exec> 161 </tasks> 162 <testSourceRoot>target/generated-test-sources</testSourceRoot> 163 </configuration> 164 <goals> 165 <goal>run</goal> 166 </goals> 167 </execution> 168 </executions> 169 </plugin> 170 <plugin> 171 <groupId>org.apache.felix</groupId> 172 <artifactId>maven-bundle-plugin</artifactId> 173 <extensions>true</extensions> 174 <configuration> 175 <instructions> 176 <Bundle-DocURL>https://developers.google.com/protocol-buffers/</Bundle-DocURL> 177 <Bundle-SymbolicName>com.google.protobuf</Bundle-SymbolicName> 178 <Export-Package>com.google.protobuf;version=3.0.0-alpha-5</Export-Package> 179 </instructions> 180 </configuration> 181 </plugin> 182 </plugins> 183 </build> 184 <profiles> 185 <profile> 186 <id>release</id> 187 <distributionManagement> 188 <snapshotRepository> 189 <id>sonatype-nexus-staging</id> 190 <url>https://oss.sonatype.org/content/repositories/snapshots</url> 191 </snapshotRepository> 192 <repository> 193 <id>sonatype-nexus-staging</id> 194 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 195 </repository> 196 </distributionManagement> 197 <build> 198 <plugins> 199 <plugin> 200 <groupId>org.apache.maven.plugins</groupId> 201 <artifactId>maven-source-plugin</artifactId> 202 <version>2.2.1</version> 203 <executions> 204 <execution> 205 <id>attach-sources</id> 206 <goals> 207 <goal>jar-no-fork</goal> 208 </goals> 209 </execution> 210 </executions> 211 </plugin> 212 <plugin> 213 <groupId>org.apache.maven.plugins</groupId> 214 <artifactId>maven-javadoc-plugin</artifactId> 215 <version>2.9.1</version> 216 <executions> 217 <execution> 218 <id>attach-javadocs</id> 219 <goals> 220 <goal>jar</goal> 221 </goals> 222 </execution> 223 </executions> 224 </plugin> 225 <plugin> 226 <groupId>org.apache.maven.plugins</groupId> 227 <artifactId>maven-gpg-plugin</artifactId> 228 <version>1.5</version> 229 <executions> 230 <execution> 231 <id>sign-artifacts</id> 232 <phase>verify</phase> 233 <goals> 234 <goal>sign</goal> 235 </goals> 236 </execution> 237 </executions> 238 </plugin> 239 <plugin> 240 <groupId>org.sonatype.plugins</groupId> 241 <artifactId>nexus-staging-maven-plugin</artifactId> 242 <version>1.6.3</version> 243 <extensions>true</extensions> 244 <configuration> 245 <serverId>sonatype-nexus-staging</serverId> 246 <nexusUrl>https://oss.sonatype.org/</nexusUrl> 247 <autoReleaseAfterClose>false</autoReleaseAfterClose> 248 </configuration> 249 </plugin> 250 </plugins> 251 </build> 252 </profile> 253 </profiles> 254</project> 255