Problem : Apache Maven install “'mvn' not recognized as an internal or external command”
Solution : Here I am using Windows 8.1 and Java 8.
1. Check out Maven in your Apache Tomcat Directory. If Maven folder is not there then download it first from this site : https://maven.apache.org/download.cgi
Download apache-maven-3.3.3-bin.zip
Unzip it and paste "apache-maven-3.3.3" inside "apache-tomcat-7.0.54" as I'm using Apache 7.
2. Create a user variables like this [ M2 = %M2_HOME% ]
3. Create a user variables like this [M2_HOME = F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin]
(as my apache tomcat is in F:\ dive your may be in C:\ drive)
4. Edit the Path or PATH to [What ever is already in here +];%M2%
5. Dependency in pom.xml
6. Now open Command Prompt go-to "F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin"
Execute following command
Solution : Here I am using Windows 8.1 and Java 8.
1. Check out Maven in your Apache Tomcat Directory. If Maven folder is not there then download it first from this site : https://maven.apache.org/download.cgi
Download apache-maven-3.3.3-bin.zip
Unzip it and paste "apache-maven-3.3.3" inside "apache-tomcat-7.0.54" as I'm using Apache 7.
2. Create a user variables like this [ M2 = %M2_HOME% ]
3. Create a user variables like this [M2_HOME = F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin]
(as my apache tomcat is in F:\ dive your may be in C:\ drive)
4. Edit the Path or PATH to [What ever is already in here +];%M2%
5. Dependency in pom.xml
6. Now open Command Prompt go-to "F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin"
Execute following command
mvn install:install-file -Dfile=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14_g -Dversion=10.2.0 -Dpackaging=jar
Please Comment Thanks to us if this topic is helpful :)
1 comments:
Great
Post a Comment