Skip to main content

Posts

Showing posts from October 6, 2016

Mavan Step By Step & Java Portable set up

                                                  **********Portable Java Set up**********
Just paste below content in some bat file.Open any command prompt & call this JavaSetup.bat & then you will good to go for calling java -version.
rem Set the JAVA_HOME environment variable and insert it into the system path.
rem This will make the javac and java commands reachable from the command line.
set JAVA_HOME="E:\Java"
set PATH=%JAVA_HOME%\bin;%PATH%

                                                     *************Maven Setup****************

Download maven binary & set JAVA & MAVEN_HOME
set JAVA_HOME="E:\Java"
set PATH=%JAVA_HOME%\bin;%PATH%
Set MAVEN_HOME="E:\apache-maven-3.3.9"
Set PATH=%MAVEN_HOME%\bin;%PATH%
After setting above in batch file (if temporary required) or in system/user variables check mvn -v for verification & it should display java & maven details.
Then Run mvn: generate command like 
mvn archetype:generate -Dgroup…