diff options
author | gk5885 <gk5885@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-08-04 19:11:39 +0000 |
---|---|---|
committer | gk5885 <gk5885@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-08-04 19:11:39 +0000 |
commit | ac4764e35507a994c38e399039fa126011cb1748 (patch) | |
tree | 13eb6de5a7619e4bbd10377243d37d578987bc98 /java/pom.xml | |
parent | 58ebb1ccf8d546da02ce0533d000b35ee7b70193 (diff) | |
download | protobuf-ac4764e35507a994c38e399039fa126011cb1748.tar.gz protobuf-ac4764e35507a994c38e399039fa126011cb1748.tar.bz2 protobuf-ac4764e35507a994c38e399039fa126011cb1748.zip |
Update the pom to support the 'lite' profile.
Diffstat (limited to 'java/pom.xml')
-rw-r--r-- | java/pom.xml | 68 |
1 files changed, 51 insertions, 17 deletions
diff --git a/java/pom.xml b/java/pom.xml index bf5d206f..b4465521 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -3,12 +3,11 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <!-- remove the reference to the parent until the google repo is synced with central --> - <!--<parent> + <parent> <groupId>com.google</groupId> <artifactId>google</artifactId> <version>1</version> - </parent>--> + </parent> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> <version>2.1.1-SNAPSHOT</version> @@ -33,20 +32,6 @@ scm:svn:http://protobuf.googlecode.com/svn/trunk/ </connection> </scm> - <!-- this is temporarily copied from the parent pom. remove this section when that is used --> - <distributionManagement> - <repository> - <id>google-maven-repository</id> - <name>Google Maven Repository</name> - <url>https://google-maven-repository.googlecode.com/svn/trunk/repository/</url> - </repository> - <snapshotRepository> - <id>google-maven-snapshot-repository</id> - <name>Google Maven Snapshot Repository</name> - <url>https://google-maven-repository.googlecode.com/svn/trunk/snapshot-repository/</url> - <uniqueVersion>true</uniqueVersion> - </snapshotRepository> - </distributionManagement> <dependencies> <dependency> <groupId>junit</groupId> @@ -139,4 +124,53 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>lite</id> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <executions> + <execution> + <id>lite-compile</id> + <phase>compile</phase> + <configuration> + <includes> + <include>**/AbstractMessageLite.java</include> + <include>**/ByteString.java</include> + <include>**/CodedInputStream.java</include> + <include>**/CodedOutputStream.java</include> + <include>**/ExtensionRegistryLite.java</include> + <include>**/FieldSet.java</include> + <include>**/GeneratedMessageLite.java</include> + <include>**/InvalidProtocolBufferException.java</include> + <include>**/Internal.java</include> + <include>**/MessageLite.java</include> + <include>**/UninitializedMessageException.java</include> + <include>**/WireFormat.java</include> + </includes> + </configuration> + </execution> + <execution> + <id>lite-test-compile</id> + <phase>test-compile</phase> + <configuration> + <includes> + <include>**/LiteTest.java</include> + </includes> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <classifier>lite</classifier> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |