java - Maven not working on windows -
when ran mvn -v
, didn't version. got following
c:\>mvn -v usage: java [-options] class [args...] (to execute class) or java [-options] -jar jarfile [args...] (to execute jar file) options include: -cp <class search path of directories , zip/jar files> -classpath <class search path of directories , zip/jar files> ; separated list of directories, jar archives, , zip archives search class files. -d<name>=<value> set system property ......
i believe set path correct. here path
c:\>path path=c:\java7\bin;c:\maven\apache-maven-3.3.3\bin c:\>echo %java_home% c:\java7 c:\>java -version java version "1.7.0" java(tm) se runtime environment (build pwa6470sr8fp10-20141219_01(sr8 fp10))ibm j9 vm (build 2.6, jre 1.7.0 windows 7 amd64-64 compressed references 20141216_227497 (jit enablebled)
any idea did wrong?
set following environment variables. works me charm.
java_home - c:\program files\java\jdk1.7.0 m2_home- d:\java\apache-maven-3.1.0-bin\apache-maven-3.1.0 path- c:\program files\java\jdk1.7.0\bin;d:\java\apache-maven-3.1.0-bin\apache-maven-3.1.0\bin; maven_home -d:\java\apache-maven-3.1.0-bin\apache-maven-3.1.0
check mvn -v in command prompt.
c:\>mvn -v apache maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 07:45:32+0530) maven home: d:\java\apache-maven-3.1.0-bin\apache-maven-3.1.0 java version: 1.7.0, vendor: oracle corporation java home: c:\program files\java\jdk1.7.0\jre default locale: en_us, platform encoding: cp1252 os name: "windows 7", version: "6.1", arch: "x86", family: "windows" c:\>
Comments
Post a Comment