OFF-Topic Extensions in maven Central

Community Driven Extensions Project
Post Reply
User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

18 Jul 2012, 04:45

Hi guys,

how did you promoted extensions project in maven central without declaring primefaces repository in pom.xml(as it is not allowed)? i also have a Primefaces dependent framework and i am trying to release it at central repo.

Ive read this thread (viewtopic.php?f=3&t=14980#p47951), did you uploaded PF as third party lib? if yes, should i do the same or i can use your uploaded artifact?

thanks in advance!
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

18 Jul 2012, 04:53

as i see here you are declaring prime repo, Sonatype didnt complained about that?
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Jul 2012, 10:18

Yes, PrimeFaces repo is declared in the pom.xml. PrimeFaces is not in the Maven central like other JSF libs (RichFaces 4.2.2, ICEFaces 3.0.1 or even OmniFaces 1.1 :-)), but Sonatype doesn't complain about that.

We described the current approach in Getting Started: "Dependency to the PrimeFaces is defined as a transitive dependency, so that there isn't need to include it explicitly. But make sure that you have the PrimeFaces repository in your pom.xml as described here (link to PF download section). This is necessary because PrimeFaces' JAR file is not available in the Maven central repository. It is also possible to exclude the transitive dependency to the PrimeFaces core project and use another version than version defined by this transitive dependency. This can be done with dependencyManagement tag. Example: ..."
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Jul 2012, 11:06

Hopefully starting from 3.4, PF will be in maven central.

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

18 Jul 2012, 13:11

@Oleg i see, my concern was to release my own artifacts having PF repo in its pom but i see that the repository declaration isnt a problem.

About the dependencyManagement i think i can use extensions PrimeFaces version as both projects walks almost together, ill only use the management if i need some new PrimeFaces feature. Thanks for the information!


@Cagatay good news!
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Jul 2012, 13:40

About the dependencyManagement i think i can use extensions PrimeFaces version as both projects walks almost together, ill only use the management if i need some new PrimeFaces feature.
Exactly.

dependencyManagement tells Maven to take care of version conflicts.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests