|
From: James A. <j.a...@ki...> - 2009-05-21 12:03:22
|
Hi All, This seems to be working ok. The only thing I would add as that the repository requires the libraries to Releases and not Snapshots. But this suits us because we agreed to harmonise on release versions at a previous meeting. Thanks Jon. Best regards, James Jonathon Hare wrote: > Hi everyone, > > I've just had a need to setup a proper (in the sense that it is both > readable, and writeable (to those who have access)) maven repository > for my new projects and whilst doing so have also created one for > qtitools. > > The repository is available at: http://maven.qtitools.org > > If you want to USE artefacts from the repository in your projects you > need to add the following to your pom and specify the dependencies as > normal: > ... > <repositories> > <repository> > <id>qtitools maven repository</id> > <url>http://maven.qtitools.org/</url> > </repository> > </repositories> > ... > > > If you want to DEPLOY your own artefacts so others can use them, then > there are a couple of steps: > > First, add the following server spec to the <servers> part of your > maven settings.xml file (http://maven.apache.org/settings.html#Servers): > > ... > <server> > <id>qtitools</id> > <username>qtitools-deployment</username> > <password>qtit00ls.0rg</password> > </server> > ... > > Secondly, add the following to the pom file of the artefact you wish > to deploy: > > ... > <distributionManagement> > <repository> > <id>qtitools</id> > <name>QTITools Repository</name> > <url>http://maven.qtitools.org</url> > </repository> > </distributionManagement> > ... > > Thirdly, run the following command (from the directory containing the > pom): > > mvn deploy > > That's it! The artefact should now be deployed on the server :) You > can also deploy individual files (i.e. if you have a dependency that > isn't already in some maven repository) using the mvn > deploy:deploy-file command (see > http://maven.apache.org/plugins/maven-deploy-plugin/usage.html) > > > Let me know if you try it or have any problems... > > Cheers, > > Jon > > > > > > > > This email has been scanned for all viruses by the MessageLabs Email > Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. |