Sudhakar Chavali
Sudhakar Chavali

Reputation: 829

Jenkins - Maven Configuration

I need to configure my maven project that depends on local jars. For example, in Jenkins how I can configure the third party jars that cannot be downloadable from maven central repo. In my case Microsoft JDBC driver,

mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0

Upvotes: 0

Views: 96

Answers (1)

Mark O'Connor
Mark O'Connor

Reputation: 77961

Consider setting up a Maven repository manager like:

The build on Jenkins will then work the same way as a build on your development machine. This is how Maven was designed to work.

Upvotes: 3

Related Questions