title: CLI-based maven artifact launcher: create classpath based on artifacts in repo and invoke main(...)?
body: <p>In our maven-based build pipeline we currently collect all the dependencies for a given artifact in target/lib and then create an empty runnable jar pointing to said dependencies, which can then be invoked in the same way as inside Eclipse.</p>
  
  <p>This works well for us, but now I was wondering if we could simplify the process by distributing a maven repository containing just the needed artifacts and have a tiny launcher which - just given the main artifact "coordinates" - can create a classpath pointing the main artifact in the repository (without any copying step) along with all the transitive dependencies, and then invoke <code>main(....)</code>?</p>
  
  <p>I.e what Maven itself can do, but only with the "locate the appropriate artifacts in a single, offline repository" and "create classpath and invoke class" functionality.  No network access.  No range resolving, etc. The smaller the better.</p>
  
  <p>Any suggestions?</p>