WildFly Swarm uses the <artifact> feature of module.xml, and also provides a way to resolve a listed artifact from a maven repository within the uberjar -swarm.jar.
Currently, we copy/paste/modify MavenArtifactUtil.java.
Ideally, it would be nice if the artifact resolution bits of MavenArtifactUtil was some sort of ordered list of Things To Try.
In some cases, we would like -swarm.jar applications to resolve only from the embedded m2repo/, not going online or checking the user's M2_REPO. This would help us test to ensure that we did indeed fully populate the internal m2repo/ correctly.
So, a List<ResolutionStrategy> used by MavenArtifactUtil would be lovely.