From 48596dfbde9c3db054ade6e63ffa747f7716c757 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 18 Jul 2016 12:11:45 +0100 Subject: [PATCH] Document workaround for CRaSH's limited class path scanning Closes gh-6384 --- .../src/main/asciidoc/production-ready-features.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 63ff3c78b4e..c8d1952c9bd 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -886,6 +886,9 @@ for details). By default Spring Boot will search for commands in the following l TIP: You can change the search path by settings a `shell.command-path-patterns` property. +NOTE: If you are using an executable archive, any classes that a shell command depends +upon must be packaged in a nested jar rather than directly in the executable jar or war. + Here is a simple '`hello`' command that could be loaded from `src/main/resources/commands/hello.groovy`