I don't see anything obviously wrong with that snippet. The error ClassNotFoundException… Lifecycle
would suggest that some other piece of code is trying to refer to the compiled interface Lifecycle
before the com.stuartsierra.component
namespace has been loaded.