为什么本地私服一直steam downloadingg

mac&&nexus私服搭建
软件环境:OSX 10.11 & &JDK1.8.0
& &nexus-2.11.4
& &apache-maven-3.3.9
& 下载地址:http://pan.baidu.com/s/1dEtih1Z
(密码:emf2)
首先安装JDK1.8.0,双击安装文件,按照提示操作就OK了,安装程序会自动配置JDK环境变量的,大可不必自己再配。
解压到指定目录,最好是"文稿"目录下。
打开“实用工具”-&“终端”,输入“vi ~/.bash_profile”命令,创建当前用户的环境变量文件。(PS:OSX
10.11 默认情况下没有此文件)
#NEXUS解压目录export NEXUS_HOME=$HOME/Documents/nexus-2/nexus-2.11.4-01#MAVEN解压目录export MAVEN_HOME=$HOME/Documents/apache-maven-3.3.9export PATH=$PATH:$NEXUS_HOME/bin:$MAVEN_HOME/bin
复制如上代码到".bash_profile"文件中,按esc键后,输入“:wq”保存并退出vi编辑器,输入“source
~/.bash_profile”让环境变量立即生效。(PS:$HOME
为系统当前登录用户的主目录环境变量,路径一般为:/Users/XXXX)
配置完成后,在终端中输入“nexus
console”,如果环境变量错误,终端会提示“-bash:nexus:command not
found”,这时要仔细检查.bash_profile环境变量中得路径配置是否正确,是否忘记执行“source
~/.bash_profile”;正常情况下会出现jetty启动的一些日志信息。
<img ALT="" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" real_src ="http://www.th7.cn/d/file/p//384c2ad86fcaddcd73c3d950b8b231e6.jpg"
TITLE="mac&&nexus私服搭建" />
看到图上信息,则表示Nexus
私服服务器启动成功,打开Safari,输入“http://localhost:8081/nexus”,则会出现Nexus私服界面,点击右上角“Log
In” 输入用户名“admin”和密码“admin123”,进入管理界面,点击左边“Repositories”可以查看Nexus
默认的仓库。
<img ALT="" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" real_src ="http://www.th7.cn/d/file/p//be004f106b90b.jpg"
TITLE="mac&&nexus私服搭建" />
增加登陆自自动Nexus私服功能。在终端输入“vi
start_nexus”,粘贴如下代码,输入如下,按esc键后,输入“:wq”保存并退出vi编辑器,再输入“chmod
777 start_nexus”,让start_nexus文件变成可执行文件。
#! /bin/sh$NEXUS_HOME/bin/nexus console &exit
然后打开“系统偏好设置”-&“用户与群组”,选择当前登陆用户,再在右边“登陆项”中点击“+”,找到刚创建的start_nexus文件,并在隐藏列中勾选,这样以后osx每次启动的时候会自动把Nexus私服服务启动好。直接访问就OK了。
<img ALT="" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" real_src ="http://www.th7.cn/d/file/p//d6b97fb62dc076cbdece61.jpg"
TITLE="mac&&nexus私服搭建" />
回到终端,配置Maven 访问仓库的路径,输入“vi
$MAVEN_HOME/conf/settings.xml”打开Maven的配置文件,输入“/”找到标签,输入如下,按esc键后,输入“:wq”保存并退出vi编辑器
Human Readable Name for this Mirror.
http://localhost:8081/nexus/content/groups/public/
<img ALT="" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" real_src ="http://www.th7.cn/d/file/p//7bd79e7ddd.jpg"
TITLE="mac&&nexus私服搭建" />
在终端输入“mvn help:system”,将会看到许多“Downloading:
http://localhost:8081/nexus/content/groups/public/....”的下载输出,表示maven正在从我们的本地仓库中下载所需要的jar包,jar下载完成后,man会执行“help:system”,输出当期那系统信息,至此本地私服算是搭建成功。
<img ALT="" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" real_src ="http://www.th7.cn/d/file/p//c0fb1a58e7f2a.jpg" NAME="image_operate_82510"
TITLE="mac&&nexus私服搭建" />
总结:虽然搭建Nexus私服不是Maven必须的工作,在settings.xml中没配置的mirror的情况下Maven会从“https://repo.maven.apache.org”仓库中下载,但是考虑到跨省访问的问题,下载速度自然蛋疼,Nexus私服的好处,在第一次访问的时候,会从“https://repo.maven.apache.org”仓库中下载缓存在本地,项目其他人再次访问的时候,直接读取Nexus缓存,达到飞一般的感觉,而且Nexus配置其他第三方库和第三方jar包也很方便,算是我的地盘我做主。
---------------------------------
配置完发现创建不了maven-webapp的项目,以前是可以的,发现时原来的镜像出问题了,下载不了依赖了,于是改用阿里巴巴的镜像,配置如下:
换个仓库地址,用阿里云的
nexus-aliyun
& & & Nexus
http://maven.aliyun.com/nexus/content/groups/public/
然后命令行 执行 mvn help:system 会下载一堆东西
--------------------------------------------------
[INFO] BUILD SUCCESS
--------------------------------------------------
[INFO] Total time: 36.816 s
[INFO] Finished at: T22:06:07+08:00
[INFO] Final Memory: 11M/146M
--------------------------------------------------
最后就可以去创建maven-webapp的项目了,非一般的感觉。。。
转自:http://www.th7.cn/system/mac/858.shtml
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。SF Taylor | Outsourced Print Management Solutions
alt="" src="https://secure.leadforensics.com/134918.png" style="display:"&
The Print Management Specialists
WE MAY NOT HAVE INVENTED COLOUR
The Print Management Specialists
BUT WE ARE COLOURFUL PEOPLE
The Print Management Specialists
At SF Taylor, we believe in more…
More energy, more passion, more motivation, more ambition, more commitment.
With our values at the heart of everything we do, SF Taylor is a great print outsourcing partner to add colour to your business.
We’ve been established more than 90 years, and are a fully-accredited, award winning print service provider.
Our success is definitely down to our people, who we believe make the difference between delivering great service and exceeding our customers’ expectations. Our team has a wealth of experience providing our print management solutions. We’re constantly expanding our expertise and proud to call ourselves specialists.
Our partnership approach enables us to pre-empt our customers’ needs and allows us to react quickly and efficiently. Browse through our range of services to find out how we can help your business.
At SF Taylor, we splash colour wherever we go!
Design Services
As part of our full print management service, our design team can create the designs for any number of your print materials. We look at design from every angle until we find the right fit for your business.
Colours Speak All Languages
Account Management
We are the face and voice of SF Taylor, listening to your needs and looking for solutions to help you deliver your message in the best way possible. Our friendly team is always here to help!
Technology
Less is more? At SF Taylor we believe that MORE effort from us equals LESS effort for you. We are constantly looking at ways we can improve our joined-up thinking, utilising the best and newest technologies. We work smarter to deliver more!
Print Services
Using our in-house print and finishing capabilities, with high speeds and great quality, we can produce your print cost-effectively and on time.
It's Not Easy Being Green
Orange is the Happiest Colour
Our easy to use online toolkit allows you to create collateral, ensuring brand consistency and version control. With the added facility to order pre-printed stock or print on demand in smaller quantities, HubTec gives our customers a full view of their marketing activity.
Promotional Items
As well as managing the printing and distribution of your business’ marketing materials and internal communications, we can provide promotional materials (such as pens and mugs) for conferences and events.
Stock Management
Using our stock management system, we can process and consolidate orders. We report on all usage and advise on ordering patterns, saving businesses both time and money, as well as the headache of storage space.
You Can Have Any Colour, As Long As It's Black
Offering a daily, weekly or monthly call-off facility, our logistics team will ensure you receive your order on time. Our fleet of vehicles and drivers can even deliver direct to your desk, if required!
The People We Work With
We’ve worked with a number of different businesses and sectors. Here’s a small selection of our customers, from healthcare centres to local councils, and more. We consider ourselves an extension of your own team and encourage a complete partnership approach.
Awards&& Certifications
At SF Taylor, we are proud of our people, our customers, and our achievements. We have our own daily achievements, but it’s always nice to be recognised with awards from the people who matter. We’ve gained recognition across a variety of different categories at the NHS in the North West Excellence in Supply Awards, over the past 3 years. For two years running (2016 and 2017), we’ve been awarded the Sustainable Development Award. We’re hoping for even bigger, better and brighter things in 2018.All of this is underpinned by the certifications we work to, including ISO9001 and IS14001. We are FSC certified and we’re audited on a regular basis to ensure our services continue to be excellent.
Seeing is believing
Working With Us
At SF Taylor we are focussed on building and delivering the right service for you.
Meet the Team
Take a look at our ‘family’ portraits to see the faces behind SF Taylor.
Our Case Studies
We tailor our service to our customers’ needs. You can see how we’ve helped other businesses by downloading our case studies.
Latest from the Social Wall
Take a look behind-the-scenes at SF Taylor for exciting insights into what’s happening in the industry, what the team’s been up to, and what are customers are working on. Join in and follow us.
Bamford Business Park Hibbert Street, Stockport, SK4 1PL Tel: 0
Other Information
Connect With UsWeb site developed by
Powered by:maven build 的时候,卡死在Downloading metadata的解决方法
我的图书馆
maven build 的时候,卡死在Downloading metadata的解决方法
比如,到了下面这一步(下载metadata的时候),就卡死了:转自Clement-Xu的csdn博客[plain]&&这种情况一般是maven仓库中需要下载的文件被锁了。解决方法:可以根据Downloading后面的路径,找到仓库中相应目录下的.lock文件,删除之。比如,上例中:先停止maven buildcd &user_home&/.m2/repository/cd&com/qiniu/sdk/ls-rw-r--r-- 1 root root & &0 9月 &11 15:17 maven-metadata-central.xml.part-rw-r--r-- 1 root root & &0 9月 &11 15:17 maven-metadata-central.xml.part.lock5. rm&maven-metadata-central.xml.part.lock6. 再重试maven build或者直接在仓库中搜索 .lock 文件:先停止maven buildcd &user_home&/.m2/repository/find ./ -name&*.lock删除找到的 .lock 文件再重试maven build
喜欢该文的人也喜欢11:11 提问
有关maven私服的问题,编译的时候卡在了下载maven-metadata.xml
在maven编译的时候卡在了 http://101.201.XX.XX:8081/nexus/content/groups/public/avalon-framework/avalon-framework-api/maven-metadata.xml ,卡死在Download,但是也可以跑通但是需要很长时间,半小时或者一小时。有时候也会卡在https://repo.maven.apache.org/maven2/avalon-framework/avalon-framework-api/maven-metadata.xml这个下载,但是这个是可以我url访问到的,上面那个搭建的私服url是打不开的,一直是感觉堵死的状态,是我私服哪里没对上吗,还是私服需要修改一下
按赞数排序
这个是私服的可以看到那个/avalon-framework-api/一直打不开。
maven能够下载出来,则表示路径没有错,之所以下载慢,是因为你下载的服务器的原因,可能是因为大多数jar包都是国外的,比较难下载,这里推荐一个方法
还有就是 基本每天早上来的时候编译都需要donload那个jar包,为什么呢,我跑着两个项目,但是也修改pom文件
那你的nexus 应该是配置好了并且把包丢上去了,那么你看你创建用户没有,需要将用户的帐号密码的信息丢到maven的servers下面id username password
然后需要在pom.xml中配置repositories pluginRepositories仓库的信息 就行了
私服下载jar文件慢而已
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐}

我要回帖

更多关于 maven一直downloading 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信