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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.