简体   繁体   中英

Maven 3 - Use local repo for locally produced artifacts

Let's say I have an EAR that uses a 3rd party JAR from an online Maven repo, and a local JAR I produce myself, that needs to be pulled from my local repo.

If I build the EAR, it complains that it can't find the local JAR in the repo, because it's looking online. However, that is the correct behaviour for the 3rd party JAR.

How do I get Maven to look locally for artifacts, AND online? I guess it would be best to look locally as a last resort. Is there a way to do this?

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