I'm trying to add a JAR local file as a dependency to a Maven project in Eclipse, but I have the restriction that the client doesn't want me to edit the pom.xml
file.
My JAR is located in WEB-INF/lib. I tried the solution proposed in Adding Jar File to WEB-INF/lib but it didn't work.
To verify that the project compiles correctly adding the JAR, I added it in the pom.xml
file in my machine and it worked.
The official documentation of Maven proposes three solutions, all of them involve editing the pom.xml
file: http://maven.apache.org/pom.html#Dependencies
Is it actually possible to include a JAR dependency to a Maven project without editing the pom.xml
file?