Hi Darren, take a look at http://maven.apache.org/maven-settings/settings.html. Here you can find a lot of answers to your questions
Am Montag, 20. März 2006 17:22 schrieb Darren Hartford: > Hello all, > I was looking over http://maven.apache.org/guides/index.html and I > didn't see a guide regarding Managing Library Repositories and I would > like to start a thread to do just that. The Reference section contains very helpful info regarding configuration. > > Although this is seperated from Maven, Maven did help bring to the > masses the idea of library repositories (may not have been the first, > but is the most used). > > Looking for the following: > *Tools to manage your own, internal library repository (i.e. corporate > or internal development snapshots). set up a profile for your company and insert your repositories, e.g.: ... <profile> <id>your_profile_id</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>your_m2_repo</id> <name>Your Repository for Maven 2</name> <url>http://your_repo_hostname.your_domain/maven2/release</url> <layout>default</layout> </repository> ... another repositories (maven1 repos are marked with <layout>legacy</layout>) ... <activeProfiles> <activeProfile>your_profile_id</activeProfile> </activeProfiles> </settings> Mark your snapshot repositories with snapshots/enabled 'true'. With that settings you can use mvn deploy-file to install 3rd party jars (http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html) and mvn deploy to deploy your (own) Maven2 projects. Don't forget to set up SSH with private/public keys for easily deploying to your local host. > -Best practice/tools in creating POM files if the library is not created > from a Maven project. You can use a pom deployed at http://www.ibiblio.org/maven2 and edit it for your needs. I did deploy some javax jars and used e.g. .../javax/mail/mail/1.3.1/mail-1.3.1.pom as template. > -Best practice/tools/scripts to add these non-maven libraries to a > maven-aware repository (auto-creating the folder structure). > -Tips/examples for maven-projects in deploying SNAPSHOT versus > Production libraries to your internal respositories. Maven2 handles it out of the box. Versions that look like x.y-SNAPSHOT are deployed to your snapshot repository (defined in settings.xml). > -Actual server implementations and interfaces to your repository - > Apache web, simple SMB/Windows share, Subversion-managed, etc. I have an Apache web server running. That's easy to configure and users can view the repo with any browser they like. > > *Tools/services that can proxy repositories (I am aware of two at least) > and can aggregate multiple library respostories to appear as one (i.e. > pull from ibiblio, codehaus, and your own internal library repository). That's another configuration in settings.xml: ... <proxies> <proxy> <id>your_proxy</id> <active>true</active> <protocol>http</protocol> <username/> <password/> <host>your_proxy_hostname.your_domain</host> <port>81</port> <nonProxyHosts>*.your_domain</nonProxyHosts> </proxy> </proxies> ... > > Thanks! > -D hope this helps -chris ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
