0

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.

2
  • add that artifact as a dependency in pom file and may i know the jar you are trying to replace and motive behind the replacement ? Commented Aug 27, 2013 at 5:35
  • you just need to remove the dependency , install your dependancy.After this clean and install command will automatically remove it. Commented Aug 27, 2013 at 6:17

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.