安装完neuxs后,下载maven,本例使用的是3.1.1版本
下载好后解压到当前文件夹,重命名为maven
本例maven环境是在windows下的。
添加环境变量MAVEN_HOME=E:\maven
修改环境变量PATH,在末尾添加%MAVEN_HOME%\bin;
检测maven是否安装完成,打开命令行。mvn -version查看版本,如版本显示正确安装成功
为eclipse指定外部maven,打开eclipse->window->preferences->maven->installations->add
添加你的maven目录
window->preferences->maven->User Settings
选择maven配置文件settings.xml。
打开maven目录,进入conf目录,修改settings.xml
配置maven本地仓库文件存储路径,本例是直接放在maven目录中的repo中的,注意下面用到的${MAVEN_HOME},这需要在环境变量中配置
<localRepository>${MAVEN_HOME}/repo</localRepository>
配置镜像
<mirrors> <!-- 设置镜像 --> <mirror> <id>central</id> <mirrorOf>*</mirrorOf> <name>my mirror</name> <url>http://127.0.0.1:8081/nexus/content/groups/public/</url> </mirror> </mirrors>
客户端配置以上两部分就可以使用了。
下面是管理员需要配置的
<profiles> <!-- 设置工厂 --> <profile> <id>central-repos</id> <repositories> <repository> <id>nexus</id> <url>http://127.0.0.1:8081/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <url>http://127.0.0.1:8081/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles>
<!--激活工厂 --> <activeProfiles> <activeProfile>central-repos</activeProfile> </activeProfiles>
<servers> <!--设置权限 --> <server> <id>user-snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers>
相关推荐
maven与nexus结果使用,进行部署步骤的详细记述,文档截图说明
附件的内容在阅读两遍Maven实战使用Nexus创建私服章节之后,结合自己的工作经验所输出的文档,里面详细讲述了使用Nexus如何解决依赖的过程。对于使用Nexus的开发人员能起到一定的帮助。
将CPAN与Nexus Repository Manager 3结合使用 需要Nexus Repository Manager版本> = 3.8.0 安装插件 有多种安装CPAN插件的选项。 您需要先构建它,然后使用以下所示的选项安装插件: 临时安装 每次重新启动Nexus ...
该项目将SDK 3.0.1与ACS 6.0结合使用,并为最新的Alfresco Content Services版本保留RAD功能。 先决条件 这些先决条件对于启动和运行该项目是必需的。 需要安装JDK 8 Maven 3.3或更高版本 Docker CE 18.03.0-ce或...
项目管理工具:maven、nexus 版本管理工具:gitlab、git 数据库:mysql、mongodb 运维监控工具:Open-Falcon 日志管理工具:ELK 持续集成工具:Jenkins 协作工具:confluence 缓存:redis 消息中间件:kafka、...
Alfresco支持工具该插件被设计为仅在使用JDK7和... 另外,最新的snapshop构建能下载[ ( )与Maven结合使用如果您使用的是Maven,则可以通过以下方式检索AMP: 将https://artifacts.alfresco.com/nexus/content/group
要安装API,可以将其下载并直接复制到项目中,也可以将其与Gradle / Maven结合使用。 Maven存储库位于: : pw.otake.pseudoresonance组ID为pw.otake.pseudoresonance ,工件名称为pixy2-java-api对于FRC Gradle...
xml java系统源码 概述 iuap-pap-baseservice框架属于iuap快速开发体系中的后台支持部分,通过与iuap前端开发框架结合,...<url>http://maven.yonyoucloud.com/nexus/content/repositories/iUAP-Snapshots/</url> <re
该项目展示了如何将BDD(Cucumber)方法与移动自动化相结合。 先决条件 Android SDK Appium Maven(用于管理依赖项) IntelliJ或Eclipse 安装 从git安装(使用git clone) 从项目目录运行“ MVN Clean Test” ...