简体   繁体   中英

How to add external jar files to maven

如何使用Eclipse M2插件将外部jar文件添加到Maven Web应用程序项目中?

The most correct way is probably to install them to the repo.

However, for an alternate, see the top answer to:

Can I add jars to maven 2 build classpath without installing them?

You want to use mvn install:install-file. See here for the instructions in the Maven guide:

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

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