简体   繁体   中英

Add dependency to Maven without editing pom.xml

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?

您可以通过右键单击项目并转到属性来添加JAR。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM