[SOLVED] Spring Java include interface implementation after compilation

So you need to be able to provide an interface in your main project and then allow users to implement this interface when they want and to be able to feed the implementation to your main project.

1. Build your implementation with maven
2. Take the resulting jar from target and copy it into your impl folder under your main project target folder
3. Start your project with:
[code]
java -classpath "demo-0.0.1-SNAPSHOT.jar;imp*" demo.Application
[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *