Running Spring Boot with PropertiesLauncher not picking up external jars
已回答
I have a Spring Boot project, with the pom.xml configured to run with PropertiesLauncher so I can include externally built jars.
I have tried setting the loader.path as an environment variable LOADER_PATH, and as -Dloader.path=….
but the application is not picking up my external jars.
I can see -Dloader.path=… on the logged execution.
What do I need to do to allow IntelliJ to run Spring Boot appropriately?
请先登录再写评论。
Please follow below and see if it works.
Thanks, launching as JAR application worked.
Related - the classes I am instantiating that are being externally loaded are just being created with reflection (get the class name, instantiate an instance).
I would like to be able to make the class and associated code visible to the spring boot framework so I can use the spring boot annotations in the plugin. Is this possible?
Please try below options and see:
Component scan
Explicit import
Auto-configuration (recommended for plugins)