Pour les anciens artefacts JDBC jars :
Pour, [installer] des JARs tiers dans le dépôt [local] :
# `mvn install:install-file` pour installer un fichier personnalisé `install-file` [artefact] dans le dépôt local
# Pour plus d'informations sur les paramètres du plugin maven-deploy-plugin :
# https://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
# https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
# [installer > dépôt local]
# Exemple : com.microsoft.sqlserver:sqljdbc4:pom:3.0
groupId=com.microsoft.sqlserver
artifactId=sqljdbc4
version=3.0
packaging=jar
file=/...chemin_vers_le_jar.../sqljdbc4-3.0.jar
pomFile=/...chemin_vers_le_pom.../sqljdbc4-3.0.pom
localRepositoryPath=/Users/~/.m2/repository
mvn install:install-file \
-DgroupId=$groupId \
-DartifactId=$artifactId \
-Dversion=$version \
-Dpackaging=$packaging \
-Dfile=$file \
-DpomFile=$pomFile \
-DlocalRepositoryPath=$localRepositoryPath
Pour, [déployer] des JARs tiers dans le dépôt [à distance] :
# `mvn deploy:deploy-file` pour déployer un fichier personnalisé `deploy-file` [artefact] dans le dépôt à distance
# Pour plus d'informations sur les paramètres du plugin maven-install-plugin :
# https://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
# https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
# [déployer > dépôt à distance]
# Exemple : com.microsoft.sqlserver:sqljdbc4:pom:3.0
groupId=com.microsoft.sqlserver
artifactId=sqljdbc4
version=3.0
packaging=jar
file=/...chemin_vers_le_jar.../sqljdbc4-3.0.jar
pomFile=/...chemin_vers_le_pom.../sqljdbc4-3.0.pom
createChecksum=true
repositoryId=your_company-3rdparty-repo
url=https://nexus.your_company.com/content/repositories/thirdparty
mvn deploy:deploy-file \
-DgroupId=$groupId \
-DartifactId=$artifactId \
-Dversion=$version \
-Dpackaging=$packaging \
-Dfile=$file \
-DpomFile=$pomFile \
-DcreateChecksum=$createChecksum \
-DrepositoryId=$repositoryId \
-Durl=$url