Created
September 12, 2013 23:25
-
-
Save prule/6545157 to your computer and use it in GitHub Desktop.
Accessing the PrimeFaces artifacts via maven.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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