Hi, all. My use case is that I need to deploy an app to 2 different environments, and depending on the environment the contents of a single dependency would change. (The dependency name and API are the same in both; just the implementation is different.)
Is there an easy way to use <exclude> to build a fat jar that excludes this one dependency and instead pulls it in at run time
from the class path?
#11 422.0 [INFO] Downloading from nexus: http://admin.redacted.io:port/nexus/content/groups/internal/org/assertj/assertj-core/%5B2.0.0,2.99.0%5D/assertj-core-%5B2.0.0,2.99.0%5D.jar #11 422.3 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (default-cli) on project redacted: Nested: Could not find artifact org.assertj:assertj-core:jar:[2.0.0,2.99.0] in nexus (http://admin.redacted.io:port/nexus/content/groups/internal)
It appears a downstream dependency specifies a range [2.0.0,2.99.0] for the version, and mvn dependency:go-offline isn't encoding it into the url properly?
I am 100% sure that version 2.0.0 of assertj-core exists in our nexus, and mvn clean install doesn't run into this issue, so I'm not sure what the problem is