diff options
author | gk5885 <gk5885@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-08-04 23:43:27 +0000 |
---|---|---|
committer | gk5885 <gk5885@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-08-04 23:43:27 +0000 |
commit | 5ea590d5ba0bd02e66d95b20a64ef8aee5b68ed9 (patch) | |
tree | ef5c2aa0d3ba9d12e1c50bf4ccca7ce409aefb8a | |
parent | 5bf536169edf456f78ac8cecaf1575e0b7e73585 (diff) | |
download | protobuf-5ea590d5ba0bd02e66d95b20a64ef8aee5b68ed9.tar.gz protobuf-5ea590d5ba0bd02e66d95b20a64ef8aee5b68ed9.tar.bz2 protobuf-5ea590d5ba0bd02e66d95b20a64ef8aee5b68ed9.zip |
add lite profile docs in the README
-rw-r--r-- | java/README.txt | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/java/README.txt b/java/README.txt index 050bbfe7..58ace031 100644 --- a/java/README.txt +++ b/java/README.txt @@ -7,7 +7,7 @@ Installation - With Maven ========================= The Protocol Buffers build is managed using Maven. If you would -rather build without Maven, see the next section. +rather build without Maven, see below. 1) Install Apache Maven if you don't have it: @@ -39,6 +39,28 @@ rather build without Maven, see the next section. $ mvn package The .jar will be placed in the "target" directory. + +Installation - 'Lite' Version - With Maven +========================= + +Building the 'lite' version of the Java Protocol Buffers library is +the same as building the full version, except that all commands are +run using the 'lite' profile. (see +http://maven.apache.org/guides/introduction/introduction-to-profiles.html) + +E.g. to install the lite version of the jar, you would run: + + $ mvn install -P lite + +The resulting artifact has the 'lite' classifier. To reference it +for dependency resolution, you would specify it as: + + <dependency> + <groupId>com.google.protobuf</groupId> + <artifactId>protobuf-java</artifactId> + <version>${version}</version> + <classifier>lite</classifier> + </dependency> Installation - Without Maven ============================ |