Maven is tool which is used for build and release. Most of the scenarios required artifacts downloaded from central maven repository but some of the files which is private to us or some libraries may not be published in the repository.
This kind of scenarios we can install the artifacts in local repository and refer in our pom.xml. Following command can be use to install the file in local maven repository.
In below example we are installing sqljdbc jar file in local maven repository.
This kind of scenarios we can install the artifacts in local repository and refer in our pom.xml. Following command can be use to install the file in local maven repository.
In below example we are installing sqljdbc jar file in local maven repository.
mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0
0 Comments
Post a Comment