GithubHelp home page GithubHelp logo

Comments (3)

egloffmark avatar egloffmark commented on June 10, 2024 1

It is definitely an eclipse issue - if I just run "maven compile" then the "extensions.idx" files get generated.

I could solve the issue by either configuring Eclipse to use for the Annotations your "pf4j-2.6.0.jar" by adding it explicitly to the "FactoryPath" in the Annotations Settings. This of course is not a preferred option so I need to have always the jar file located somewhere and maintained.

Selection_003

The better way is to use the additional eclipse plugin "m2e-apt" (https://marketplace.eclipse.org/content/m2e-apt). This generates a new configuration menu option at the project settings. There you can activate / synchronize the annotation processing with the maven plugin.

Selection_004

However not sure why such an explicit configuration / workaround is necessary. May be Eclipse has changed or your PF4J project need to be updated so Eclipse would automatically detect the annotation processors when the processing has been activated? would be good if you can clarify this issue.

from pf4j-spring.

decebals avatar decebals commented on June 10, 2024

They are some issues that make reference to Eclipse:

For no extensions issue:

I don't use Eclipse in my projects so I know too much about it, but I am sure that a lot of PF4J users use Eclipse. If I can improve something please create a PR or add a comment with what I can do.

from pf4j-spring.

cwiechmann avatar cwiechmann commented on June 10, 2024

I'm using Eclipse as well and can confirm, that I'm having exactly the same problem. Just added the pf4j....jar to the "Factory path" as shown above and with that it is working.
@decebals, I'm unfortunately not used to the Java Annotations API and missed some background information about what it does or should do.
Therefore I'm thinking it might be worth to add a few more words about it at this place:

PF4J uses Java Annotation Processing to process at compile time all classes annotated with @extension and to produce the extensions index file.

And maybe add a link for further reading.

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.