下载并解压zip包,linux/mac命令如下
cat artifactory-pro-6.6.0.zip.00* > artifactory-pro-6.6.0.zip && unzip artifactory-pro-6.6.0.zip
绿化处理,命令java -jar artifactory-injector-1.1.jar
,选择2,然后需要输入artifactory解压后的目录,详细如下
$ java -jar artifactory-injector-1.1.jar
What do you want to do?
1 - generate License String
2 - inject artifactory
exit - exit
2
where is artifactory home? ("back" for back)
D:\artifactory\artifactory-pro-6.6.0/
artifactory detected. continue? (yes/no)
yes
putting another WEB-INF/lib/artifactory-addons-manager-6.6.0.jar
META-INF/
org/
org/jfrog/
...
生成授权License,选择1,记录生成的license,然后exit退出
What do you want to do?
1 - generate License String
2 - inject artifactory
exit - exit
1
eyJhcnRpZmFjdG9yeSI6eyJ......ydGllcyI6e319fQ==
启动 .\artifactory-pro-6.6.0\bin\artifactory.bat start
出现 Artifactory successfully started
表示启动成功
浏览器打开 http://127.0.0.1:8081进行相应的配置,包含输入步骤3生成的license
如需修改端口更改 artifactory-pro-6.6.0\tomcat\conf\server.xml
中8081为相应的值即可
在http://127.0.0.1:8081/artifactory/webapp/#/admin/repositories/remote添加一些maven镜像代理
比如:
aliyun_public https://maven.aliyun.com/repository/public
aliyun_google https://maven.aliyun.com/repository/google
aliyun_jcenter https://maven.aliyun.com/repository/jcenter
在http://127.0.0.1:8081/artifactory/webapp/#/admin/repositories/virtual添加虚拟组
比如 repo_java 组包含 aliyun_public aliyun_google aliyun_jcenter
此时项目中所有maven{*}
都可以替换为http://127.0.0.1:8081/artifactory/repo_java
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。