0
使用mvn archetype:generate我们可以设置路径,但是手动如何可能以及原型背后的逻辑是什么:generate ?如何在不使用原型的情况下手动设置maven路径:generate?设置maven java相关路径
使用mvn archetype:generate我们可以设置路径,但是手动如何可能以及原型背后的逻辑是什么:generate ?如何在不使用原型的情况下手动设置maven路径:generate?设置maven java相关路径
的Apache Maven的下载和安装的Java
经过文件第(https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)在某些位置
https://maven.apache.org/download.cgi?Preferred=ftp://mirror.reverse.net/pub/apache/ 解压
设定的路径
go to Control Panel\All Control Panel Items\System
go to advanced system settings->environment variables
in system variables->add to path
C:\Program Files\Java\jdk1.7.0_04\bin;D:\apache-maven-3.0.4\bin
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_04
(in place of red fields change accordingly)
安装和检查
go to D:\apache-maven-3.0.4\bin
type mvn
then type mvn archetype:generate
之前,如果你是落后的代理跟随在*步骤
now press enter to choose default option when asked choose a number or apply...
press enter again till asked groupId
give groupId:com.mongodb
artifactId:Nil1234
press enter several times till asked :Y::
type Y and press enter
应显示BUILD成功的行家
现在取消注释从代理的代码...通过削减它,只需将其粘贴/代理压脚提升 根据你的代理服务器设置现在改变 对我来说,它看起来像下面
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>authproxy.serc.iisc.ernet.in</host>
<port>3128</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
-->
</proxies>
现在试着运行MVN原型:产生和它应该运行和下载
你应该把你的问题更加清晰。 –
谢谢Nhu,但我找到了答案。我把它贴在下面。 –