How to use PF Elite with PF Extension ? (maven deps..)

Community Driven Extensions Project
Post Reply
aledema
Posts: 14
Joined: 30 Mar 2016, 21:54

07 Oct 2018, 14:15

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

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

07 Oct 2018, 14:27

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...

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>
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.
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

aledema
Posts: 14
Joined: 30 Mar 2016, 21:54

07 Oct 2018, 16:41

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

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

07 Oct 2018, 18:54

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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests