spring statemachine - problems running state machine examples -
congratulations on spring state machine, found yesterday , have been trying out, turnstile example running in sts. found easy , intuitive build fsm.
because spring shell doesn't work in sts tracked down instructions run examples command line in reference doc,
"java -jar spring-statemachine-samples-turnstile-1.0.0.build-snapshot.jar"
, running got error
"no main manifest attribute, in spring-statemachine-samples-turnstile-1.0.0.build-snapshot.jar".
although not novice in using gradle, tried fixing adding line build.gradle in jar section
"manifest.attributes['main-class'] = 'demo.turnstile.application'" (which doesn't handle various sub-projects know) got error "noclassdeffounderror: org/springframework/shell/bootstrap".
if possible run samples gradle, include them in reference document? tried running samples using
gradle run there no interaction shell scripts.
samples designed run executable jar , shell can interact without need recompile every change. error indicates didn't build sample jar mentioned in docs.
./gradlew clean build -x test
this automatically use spring boot plugin add necessary jar manifest headers jar meta info make true executable jar. every every sample spring boot app.
Comments
Post a Comment