各位哥哥,弟弟:
我看资料写的如下
To set up your organization's internal repository using Jetty, create a new directory in which to store 
the files. While it can be stored anywhere you have permissions, in this example 
C:\mvnbook\repository will be used. To set up Jetty, download the Jetty 5.1.10 server bundle 
from the book's Web site and copy it to the repository directory. Change to that directory, and run:
C:\mvnbook\repository> java -jar jetty-5.1.10-bundle.jar 8081You can now navigate to http://localhost:8081/ and find that there is a Web server running 
displaying that directory. Your repository is now set up.我的本地仓库放在了 C:\Documents and Settings\a\.m2\repository,eclipse也安装了maven,jetty的插件现在我要如何建立一个共享的仓库,并放到服务器上,及配置还有如何把依赖放进一个文件,让其他人都可以继承各位哥哥弟弟帮帮我吧,解决了我马上给分
不过期望不大

解决方案 »

  1.   

    太麻烦了。有人已经写好了maven2的服务器端,artifactory-1.2.5-rc6.zip
    我下载的叫这个名字里头就是一个jetty服务器,启动以后,把自己的pom.xml配置repository指向这个服务器就可以了,还有管理界面。如果要自己配置,还要整个复制repo1.maven.org/maven2里的依赖,麻烦死了,这个东西自动判断哪些依赖本地还没有,会自动去下载的。
      

  2.   

    共享的仓库的话。确实不如去架私服。如xyz20003所说可以使用artifactory。具体配置方法见白衣大侠的这个帖子。http://calvin.javaeye.com/blog/107266
      

  3.   


    有人已经写好了maven2的服务器端,artifactory-1.2.5-rc6.zip 
    我下载的叫这个名字 里头就是一个jetty服务器,启动以后,把自己的pom.xml配置repository指向这个服务器就可以了,还有管理界面。 如果要自己配置,还要整个复制repo1.maven.org/maven2里的依赖,麻烦死了,这个东西自动判断哪些依赖本地还没有,会自动去下载的。