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.2.0</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>3-Clause BSD License</name> 25 <url>https://opensource.org/licenses/BSD-3-Clause</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=java_nano_generate_has=true,generate_equals=true,generate_clone=true:target/generated-test-sources" /> 113 <arg value="--proto_path=src/test/java/com" /> 114 <arg value="src/test/java/com/google/protobuf/nano/unittest_has_nano.proto" /> 115 </exec> 116 <exec executable="../src/protoc"> 117 <arg value="--javanano_out=optional_field_style=accessors,generate_equals=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_accessors_nano.proto" /> 120 </exec> 121 <exec executable="../src/protoc"> 122 <arg value="--javanano_out=enum_style=java:target/generated-test-sources" /> 123 <arg value="--proto_path=src/test/java/com" /> 124 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_class_nano.proto" /> 125 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_class_multiple_nano.proto" /> 126 <arg value="src/test/java/com/google/protobuf/nano/unittest_repeated_packables_nano.proto" /> 127 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_validity_nano.proto" /> 128 </exec> 129 <exec executable="../src/protoc"> 130 <arg value="--javanano_out= 131 optional_field_style=accessors, 132 java_outer_classname=google/protobuf/nano/unittest_enum_validity_nano.proto|EnumValidityAccessors 133 :target/generated-test-sources" /> 134 <arg value="--proto_path=src/test/java/com" /> 135 <arg value="src/test/java/com/google/protobuf/nano/unittest_enum_validity_nano.proto" /> 136 </exec> 137 <exec executable="../src/protoc"> 138 <arg value="--javanano_out=optional_field_style=reftypes,generate_equals=true:target/generated-test-sources" /> 139 <arg value="--proto_path=src/test/java/com" /> 140 <arg value="src/test/java/com/google/protobuf/nano/unittest_reference_types_nano.proto" /> 141 </exec> 142 <exec executable="../src/protoc"> 143 <arg value="--javanano_out= 144 optional_field_style=reftypes_compat_mode, 145 generate_equals=true, 146 java_outer_classname=google/protobuf/nano/unittest_reference_types_nano.proto|NanoReferenceTypesCompat 147 :target/generated-test-sources" /> 148 <arg value="--proto_path=src/test/java/com" /> 149 <arg value="src/test/java/com/google/protobuf/nano/unittest_reference_types_nano.proto" /> 150 </exec> 151 </tasks> 152 <testSourceRoot>target/generated-test-sources</testSourceRoot> 153 </configuration> 154 <goals> 155 <goal>run</goal> 156 </goals> 157 </execution> 158 </executions> 159 </plugin> 160 <plugin> 161 <groupId>org.apache.felix</groupId> 162 <artifactId>maven-bundle-plugin</artifactId> 163 <extensions>true</extensions> 164 <configuration> 165 <instructions> 166 <Bundle-DocURL>https://developers.google.com/protocol-buffers/</Bundle-DocURL> 167 <Bundle-SymbolicName>com.google.protobuf.nano</Bundle-SymbolicName> 168 <Export-Package>com.google.protobuf.nano;version=3.0.0-alpha-7</Export-Package> 169 </instructions> 170 </configuration> 171 </plugin> 172 </plugins> 173 </build> 174 <profiles> 175 <profile> 176 <id>release</id> 177 <distributionManagement> 178 <snapshotRepository> 179 <id>sonatype-nexus-staging</id> 180 <url>https://oss.sonatype.org/content/repositories/snapshots</url> 181 </snapshotRepository> 182 <repository> 183 <id>sonatype-nexus-staging</id> 184 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> 185 </repository> 186 </distributionManagement> 187 <build> 188 <plugins> 189 <plugin> 190 <groupId>org.apache.maven.plugins</groupId> 191 <artifactId>maven-source-plugin</artifactId> 192 <version>2.2.1</version> 193 <executions> 194 <execution> 195 <id>attach-sources</id> 196 <goals> 197 <goal>jar-no-fork</goal> 198 </goals> 199 </execution> 200 </executions> 201 </plugin> 202 <plugin> 203 <groupId>org.apache.maven.plugins</groupId> 204 <artifactId>maven-javadoc-plugin</artifactId> 205 <version>2.9.1</version> 206 <executions> 207 <execution> 208 <id>attach-javadocs</id> 209 <goals> 210 <goal>jar</goal> 211 </goals> 212 </execution> 213 </executions> 214 </plugin> 215 <plugin> 216 <groupId>org.apache.maven.plugins</groupId> 217 <artifactId>maven-gpg-plugin</artifactId> 218 <version>1.5</version> 219 <executions> 220 <execution> 221 <id>sign-artifacts</id> 222 <phase>verify</phase> 223 <goals> 224 <goal>sign</goal> 225 </goals> 226 </execution> 227 </executions> 228 </plugin> 229 <plugin> 230 <groupId>org.sonatype.plugins</groupId> 231 <artifactId>nexus-staging-maven-plugin</artifactId> 232 <version>1.6.3</version> 233 <extensions>true</extensions> 234 <configuration> 235 <serverId>sonatype-nexus-staging</serverId> 236 <nexusUrl>https://oss.sonatype.org/</nexusUrl> 237 <autoReleaseAfterClose>false</autoReleaseAfterClose> 238 </configuration> 239 </plugin> 240 </plugins> 241 </build> 242 </profile> 243 </profiles> 244</project> 245