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?
You could install the .jar file to the local repository.
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
or else include the .jar as system dependency.
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.