Groups
Sign in
Groups
Maven中文
Conversations
About
Send feedback
Help
求助:关于maven项目的离线应用
26 views
Skip to first unread message
lazyman
unread,
Apr 28, 2014, 10:49:13 AM
4/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mave...@googlegroups.com
开发项目时,公司内部建立了一个nexus服务器,所有文件都通过nexus代理,一切安然无恙。
将整个项目,包括源码和本地repository(含有项目所有的jar文件)迁移到一个没有互联网的环境。执行maven命令时,总是在试图连接网络而构建失败。在命令中增加 -o 选项时,命令成功执行。显然这种方式不利于项目的迁移,请问对于这种情况有什么解决办法。
Light
unread,
Apr 30, 2014, 3:09:02 AM
4/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mave...@googlegroups.com
在conf里把所有仓库都拦截呢?比如把mirrorOf配置成*,我记得所有的仓库访问都会走这一个地址
<mirrors>
<mirror>
<id>usap</id>
<name>Nexus Public Mirror</name>
<url>
http://192.168.13.134:8181/nexus/content/groups/futuresoftware/
</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
在 2014年4月28日星期一UTC+8下午10时49分13秒,lazyman写道:
Light
unread,
Apr 30, 2014, 3:09:41 AM
4/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mave...@googlegroups.com
在conf里把所有仓库都拦截呢?比如把mirrorOf配置成*,我记得所有的仓库访问都会走这一个地址
<mirrors>
<mirror>
<id>usap</id>
<name>Nexus Public Mirror</name>
<url>
http://192.168.13.134:8181/nexus/content/groups/futuresoftware/
</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
在 2014年4月28日星期一UTC+8下午10时49分13秒,lazyman写道:
开发项目时,公司内部建立了一个nexus服务器,所有文件都通过nexus代理,一切安然无恙。
Reply all
Reply to author
Forward
0 new messages