hekailiang / squirrel

squirrel-foundation is a State Machine library, which provided a lightweight, easy use, type safe and programmable state machine implementation for Java.
http://hekailiang.github.io/squirrel/
Other
2.19k stars 540 forks source link

Can't create a state machine due to classpath conflict #102

Open cnmuc opened 5 years ago

cnmuc commented 5 years ago

In the sample code

UntypedStateMachineBuilder builder = StateMachineBuilderFactory.create(StateMachineSample.class);

fails with

Exception in thread "main" org.squirrelframework.foundation.exception.SquirrelRuntimeException: 00010007 : couldn't construct new 'null' with args

when

`

com.google.collections
  <artifactId>google-collections</artifactId>
  <version>1.0</version>
</dependency>`

is in your pom.xml