How to install Maven, Ant, and Protoc in Windows
1. Install ant and maven
(1) first download the ant and maven installation packages.
Apache-ant-1.9.4-bin.zip
Apache-maven-3.2.5-bin.zip
(2) Configure Environment Variables
Add Environment Variables
ANT_HOME = E: \ sion Sion-software \ apache-ant-1.9.4-bin \ apache-ant-1.9.4
MAVEN_HOME = E: \ sion Sion-software \ apache-maven \ apache-maven-3.2.5
Path = % ANT_HOME % \ bin; % MAVEN_HOME % \ bin
(3) check whether the verification is successful
Ant-version
Mvn-version
Ii. Install protoc
1 first download protobuf-2.5.0.tar.gz and protoc-2.5.0-win32.zip two packages. Decompress the files to their respective directories.
2.copy protoc.exe from protoc-2.5.0-win32to c: \ windows \ system32.
3.copy the protoc.exe file to the decompressed XXX \ protobuf-2.5.0 \ src directory.
4. Go to the XXX \ protobuf-2.5.0 \ java directory
Execute the maven package command to edit the package generation protobuf-java-2.5.0.jar file (in the target directory ).
Verification:
Protoc -- version
Libprotoc 2.5.0
Maven official guide _ Chinese full version clear PDF
Maven 3.1.0 release, Project Build Tool
Install Maven in Linux
Maven3.0 configuration and simple use
Set up sun-jdk and Maven2 in Ubuntu
Get started with Maven
This article permanently updates the link address: