Hi,
maybe it's a FAQ but I've not found any true answer..
I upgraded my project from PF 6.2 (free) to PF 6.2.10 (Elite), but I'm also using PF Extension (6.2.x) which its POM requires as dependency PF 6.2 !
So after building the project I got both PF6.2 and PF6.2.10 jars in my package, and this is EVIL of course..
What could I do in order to correct this mis-dependency ?
Many thanks in advance
Ale
How to use PF Elite with PF Extension ? (maven deps..)
Good question. I do this in all my projects and because the Maven resolves dependencies it will see Elite 6.2.10 is higher than 6.2 and use that. So...
Make sure you do "mvn clean package" and you should only see PF Elite 6.2.10 and PFE 6.2.9 in your target folder.
Code: Select all
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>6.2.10</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>6.2.9</version>
</dependency>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Hello!
many thanks, it worked !
I was wrong because I used a "fake" groupId to host the PF6.2.10 JAR on my private maven repo, not just "org.primefaces" but "it.dqmicro.localrepo.org.primefaces" and this caused the maven depends system to not "see" correctly 6.2.10 > 6.2 .
Thanks again !
Ale
many thanks, it worked !
I was wrong because I used a "fake" groupId to host the PF6.2.10 JAR on my private maven repo, not just "org.primefaces" but "it.dqmicro.localrepo.org.primefaces" and this caused the maven depends system to not "see" correctly 6.2.10 > 6.2 .
Thanks again !
Ale
No problem! Yeah maven tries to be smart about versioning as long as the group names line up.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests