Satyam Roy
Satyam Roy

Reputation: 346

I want to include a jar file in my build using maven

The problem is like this

I have a maven build of my project already. But I have a requirement wherein I need to replace a .jar file located in WEB-INF/lib folder with another .jar file. This new jar file can be downloaded from a link.

What changes do I have to make in the pom.xml file to achieve this requirement. I tried to find out ways to do it but could not figure out the exact solution as I am a novice in Maven.

Upvotes: 0

Views: 85

Answers (1)

shyam
shyam

Reputation: 9368

Assuming that the jar file is not found in any public maven repository you can install it in your local repository using the install plugin mvn install:install-file ... and refer it as any other dependency

Upvotes: 1

Related Questions