Open muyen opened 6 years ago
I ported run-demo
scripts from pf4j to pf4j-spring project.
Can you run demo script from command line (run-demo.sh
for linux or run-demo.bat
for windows) and share the result?
@muyen Any news? Did you solve the problem?
yeah, it is working with run-demo.sh. However, the plugin jars are not copied from target to demo/plugins. In the run-demo.sh, it should be "cp demo/plugins//target/plugin*.jar demo-dist/plugins/"
@muyen
If you can run demo without any problem, via run-demo.sh
, I don't understand where is the problem.
I don't see the exception when I use run-demo.sh. However, run-demo.sh loads only the org.pf4j.demo.WhazzupGreeting plugin and not the plugin1 and plugin2. The plugins jars are not copied to the target folder. It should be
cp demo/plugins/*/target/plugin*.jar demo-dist/plugins/
Because the plugins name is pf4j-spring-demo-plugin1-0.6.0-SNAPSHOT.jar
I concur. I found the same problem with run-demo.sh. I don't see how your pattern will work either, as the jar file names don't start with 'plugin'. I changed the script to just copy all jars, since there's only one in each directory:
cp demo/plugins/*/target/*.jar demo-dist/plugins/
and the demo then runs all three plugins.
You should add an extensions.idx file into both plugin sources to run the demo in development mode
without to launch run-demo.sh/bat
, is it true?
hi how do i fix this?