Giter VIP home page Giter VIP logo

Comments (5)

decebals avatar decebals commented on August 16, 2024 1

Can you show us the fragment of your pom.xml (if you use Maven) where pf4j dependencies are declared?
Also please run mvn dependency:tree to see all the dependencies.

from pf4j-spring.

otmanel31 avatar otmanel31 commented on August 16, 2024

yes here my dependency tree:

mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.:nx-agent >-----------------------
[INFO] Building nx-agent 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ nx-agent ---
[INFO] com.
:nx-agent:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.6.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | - ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | - org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | - org.slf4j:jul-to-slf4j:jar:1.7.26:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.8.RELEASE:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.1.8.RELEASE:compile
[INFO] | - org.yaml:snakeyaml:jar:1.23:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.6.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | - net.minidev:json-smart:jar:2.3:test
[INFO] | | - net.minidev:accessors-smart:jar:1.2:test
[INFO] | | - org.ow2.asm:asm:jar:5.0.4:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.13:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.13:test
[INFO] | | - org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.8.RELEASE:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.6.2:test
[INFO] +- org.pf4j:pf4j:jar:3.0.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] | - com.github.zafarkhaja:java-semver:jar:0.9.0:compile
[INFO] +- org.pf4j:pf4j-spring:jar:0.6.0-SNAPSHOT:compile
[INFO] | - org.springframework:spring-context:jar:5.1.8.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.1.8.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.1.8.RELEASE:compile
[INFO] | - org.springframework:spring-expression:jar:5.1.8.RELEASE:compile
[INFO] +- org.pf4j:pf4j-update:jar:2.1.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | - commons-codec:commons-codec:jar:1.11:compile
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] +- commons-lang:commons-lang:jar:2.4:compile
[INFO] - com.********:nx-agent-api:jar:0.0.1-SNAPSHOT:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.957 s
[INFO] Finished at: 2019-07-25T09:42:28+02:00
[INFO] ------------------------------------------------------------------------

Then, my pom.xml dependencies section:

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter</artifactId>
		<version>2.1.6.RELEASE</version>
	</dependency>
	<!-- Spring libs -->
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<version>2.1.6.RELEASE</version>
		<scope>test</scope>
	</dependency>
	<!-- Pf4j libs -->
	<dependency>
	    <groupId>org.pf4j</groupId>
	    <artifactId>pf4j</artifactId>
	    <version>3.0.1</version>
	</dependency>
	<dependency>
	    <groupId>org.pf4j</groupId>
	    <artifactId>pf4j-spring</artifactId>
	    <version>0.6.0-SNAPSHOT</version>
	</dependency>		
	<dependency>
	    <groupId>org.pf4j</groupId>
	    <artifactId>pf4j-update</artifactId>
	    <version>2.1.0</version>
	</dependency>
	 <!-- Logs -->
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.7.5</version>
    </dependency>
    <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.4</version>
    </dependency>
    <!-- *********** libs -->
    <dependency>
    	<groupId>com.***********</groupId>
    	<artifactId>nx-agent-api</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    </dependency>
</dependencies>

from pf4j-spring.

decebals avatar decebals commented on August 16, 2024

org.pf4j.PluginException doesn't exists anymore in PF4J 3.x. It was replaced by PluginRuntimeException. Can you check to see if you have a reference to this class (PluginException) in your plugins (start, stop, delete). Also please check if don't have a plugin at runtime (zip, jar) built for PF4J 2.x

from pf4j-spring.

decebals avatar decebals commented on August 16, 2024

I think that I found something in your pom.xml.
You use pf4j-update 2.1.0 that is not compatible with pf4j 3.x. Please use 2.2.0-SNAPSHOT for pf4j-update.

from pf4j-spring.

otmanel31 avatar otmanel31 commented on August 16, 2024

OK thanks ... this is a version/dependencies issues ... i'm able to start the update manager correctly in my app ... but i'm not able to found any new version in my folder repository to update my plugin ... but this is an other thing not related with this issue... may be i forgot something .... i close this issue... as resolved

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.