jbossas/jboss-as — pull request #2652 by ssilvert (2012-07-11 12:08:34+00:00)
Title: AS7-5149 Create shaded jar for CLI and jconsole

For usage, see README-CLI-JCONSOLE.txt included in this commit.

This works nicely. However, there are a few things that need to be considered.

* When you run CLI with the shaded jar you will get a warning that it can't load jboss-cli.xml because JBOSS_HOME is not set. So it just uses default values. Since this is intended to be run where AS is not present, we need to come up with an alternative way to load jboss-cli.xml.

* The shaded jar is about 4.5 MB. Is that too big? We can reduce the size using Shade's feature. This tries to determine classes of dependencies that are not used by the project. However, I'm not sure I trust that feature. So if 4.5 MB is acceptable I'd prefer to leave it alone.

* When using the shaded jar for CLI, it does not use the modules system. I couldn't find any reason that it really needs it since everything is loaded as one uber-jar.

* Should we also ship a sh/bat file that makes the command line a little easier?