Maven Command:
mvn install:install-file
-Dfile="C:\Ramakrishna\softwares\mysql-connector-java-5.1.6.jar"
-DgroupId=com.mysql
-DartifactId=connector
-Dversion=2.0
-Dpackaging=jar
After run this command ,we can use
mysql-connector-java-5.1.6.jar as maven dependency
<dependency>
<groupId>com.mysql </groupId>
<artifactId>connector</artifactId>
<version>2.0</version>
</dependency>
Sample:
No comments:
Post a Comment