Git Product home page Git Product logo

Comments (8)

decebals avatar decebals commented on May 29, 2024

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?

from pf4j-spring.

decebals avatar decebals commented on May 29, 2024

@muyen
Any news? Did you solve the problem?

from pf4j-spring.

muyen avatar muyen commented on May 29, 2024

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/"

from pf4j-spring.

decebals avatar decebals commented on May 29, 2024

@muyen
If you can run demo without any problem, via run-demo.sh, I don't understand where is the problem.

from pf4j-spring.

muyen avatar muyen commented on May 29, 2024

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

from pf4j-spring.

sljinlet avatar sljinlet commented on May 29, 2024

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.

from pf4j-spring.

fabioformosa avatar fabioformosa commented on May 29, 2024

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?

from pf4j-spring.

AzzouzMohamed avatar AzzouzMohamed commented on May 29, 2024

hi how do i fix this?

from pf4j-spring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.