Questions tagged [pf4j]

p4fj is a java plugin framework

Links

19 questions
4
votes
1 answer

Execution order of maven-assembly-plugin and maven-jar-plugin

I have a question regarding the execution order of maven-assembly-plugin and maven-jar-plugin. What I am trying to do is to put together an uberjar file for the pf4j framework (plugin framework for java). For this to be able to do I need to first…
3
votes
0 answers

RequestMappingHandlerMapping afterPropertiesSet method results into ambigious mapping

I am trying to create an endpoint at runtime using the PF4J library. I have managed to load the Plugin with rest API functionality at boot time, but now I try to map the endpoint at runtime when the plugin gets installed at runtime. I have tried to…
2
votes
0 answers

How to make pf4j plugin beans injectable into Spring app

We are trying to utilize pf4j and pf4j-spring to provide a flexible application based on Spring. Ideally, we would like to define Spring beans (@Service, @Repository and others) in plugins and inject them in the main application. From what I can…
incredibleholg
  • 583
  • 1
  • 7
  • 19
2
votes
0 answers

Gradle build - compileJava Error - no access to detailed error

Im building a java application using the pf4j plugin framework with gradle as the build service. Initially everything worked great. Since I migrated to a new machine with a JDK10 and probably some other installations properties on gradle or…
2
votes
1 answer

Spring Data exception furing MongoRepository init

I am getting an exception when using pf4j with Spring Data. My project structure is a web application org.home.server.communication (war) which is deployed into Tomcat and uses Spring MVC. It loads loads a pf4j plugin - org.home.server.core…
user1807754
1
vote
1 answer

Import maven project to Eclipse gives a bunch of "cannot be resolved to a type" errors in for tests

I import https://github.com/pf4j/pf4j to Eclipse 4.27.0 with M2E plugin installed and got bunch of errors in test folder: Description Resource Path Location Type AbstractExtensionFinder cannot be resolved AbstractExtensionFinderTest.java …
sdorof
  • 525
  • 6
  • 21
1
vote
0 answers

Liquibase & pf4j - Cannot find default log service

I'm writing a pf4j plugin that uses liquibase. The plugin host has dependencies on slf4j implementation "org.slf4j:slf4j-log4j12:$slf4jVersion" implementation "org.slf4j:slf4j-api:$slf4jVersion" And the plugin has these dependencies as compile…
Peter McKinney
  • 463
  • 3
  • 13
1
vote
3 answers

When building a very simple PF4J plugin, my extension.idx file is empty. Why?

I'm trying to use PF4J in an existing codebase. I've tried to transfer all the necessary from the demo plugins and app to my existing maven project. I've compared the demo and my code, and I can't find anything that is different. And yet, when I…
CryptoFool
  • 21,719
  • 5
  • 26
  • 44
1
vote
0 answers

How to handle version conflicts with my Java application using SPI extensions

I am writing a plugin API for a Java application, the idea being that eventually third parties will provide their own plugin extensions for the application and all the user needs to do is place the plugin jar into a plugins directory of the…
Mike
  • 33
  • 1
  • 3
1
vote
1 answer

External plugin framework to my JAVA application

I built a large JAVA web application using SPRING & MongoDB, In some scenarios, I want to allow my users to upload their own code, and the application will run it later on when necessary. I called this operation "Plugin framework", the plugin is the…
Sahar Ben-Shushan
  • 297
  • 1
  • 3
  • 20
1
vote
1 answer

PF4J throws "Plugin-Version cannot be empty"

I set up a PF4J plugin as described on the github readme, but without using maven. I get the following error: [main] ERROR ro.fortsoft.pf4j.DefaultPluginManager - Plugin-Version cannot be empty ro.fortsoft.pf4j.PluginException: Plugin-Version cannot…
clic
  • 365
  • 1
  • 13
1
vote
2 answers

@SpringBean support for bean in child ApplicationContext

I'm working with the developer of PF4J(Plugin Framework for Java) to provide better plugin functionality for Wicket. There is already a pf4j-spring and a pf4j-wicket project to provide some basic integration. In order to allow the @SpringBean or…
Josh Chappelle
  • 1,558
  • 2
  • 15
  • 37
0
votes
0 answers

Spring child context autowire bean from parent without events

I am using the PF4J framework to load plugins into a Spring application. I would like the Component/Service beans defined by the plugin to be able to autowire beans that are defined by the parent context. That is, the application has some services…
0
votes
1 answer

My application can't find the extension with Pf4j

I'm using a Spring Boot application. For now, the use of the plugins is very simple. I'm just following the tutorial. My plugin is started, I'm trying to find the extensions like this: final List sections =…
stefv
  • 429
  • 1
  • 4
  • 19
0
votes
1 answer

How to mix endpoints from an application with external plugins using spring boot and pf4j?

I have created a spring-boot application (2.6.4) and I want to integrate some plugins using p4fj. I have used p4fj before in non spring boot applications, but I see that now it has the p4fj-spring to help on this process. The idea is not only…
King Midas
  • 1,442
  • 4
  • 29
  • 50
1
2