Skip to content

Instantly share code, notes, and snippets.

@prule
Created September 12, 2013 23:25
Show Gist options
  • Select an option

  • Save prule/6545157 to your computer and use it in GitHub Desktop.

Select an option

Save prule/6545157 to your computer and use it in GitHub Desktop.
Accessing the PrimeFaces artifacts via maven.
In section 2 of the documentation (http://www.primefaces.org/documentation.html), it shows how you can define the primefaces repository in your maven pom.xml (or ~/.m2/settings.xml):
<repository>
<id>prime-repo</id>
<name>Prime Repo</name>
<url>http://repository.primefaces.org</url>
</repository>
If you are using maven in an organisation you would be better off setting up a repository manager such as NEXUS and configuring that with the primefaces repository. Then, your developers just configure this nexus repository as a mirror of everything in their ~/.m2/settings.xml and everything is transparent.
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://internalrepo/nexus/content/groups/public</url>
</mirror>
</mirrors>
http://maven.apache.org/settings.html#Repositories
http://www.sonatype.org/nexus/
http://maven.apache.org/guides/mini/guide-multiple-repositories.html
Note that a repository manager is the preferred solution since you'll need somewhere to release your own artifacts to, and nexus does this very well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment