I have artifactory JFrog
configured. I'd like that artifactory
keep only files (jar,war,etc) of my application and not keep other files on disk. Example:
我配置了神器JFrog。我想这个神器只保留我的应用程序的文件(jar,war等),而不是将其他文件保存在磁盘上。例:
(Yes, keep on disk of artifactory)
(是的,保留在神器的磁盘上)
myapp.1.0-SNAPSHOT
myotherapp.2.0-SNAPSHOT
(No, when execute maven command, I'd like that artifactory not contains these files, so, maven will search in central repository)
(不,当执行maven命令时,我希望该工件不包含这些文件,因此,maven将在*存储库中搜索)
hibernatexxx
springxxxx
log4jxxxx
How can I do it?
我该怎么做?
1 个解决方案
#1
6
I guess you mean that you do not want to store any artifacts from the remote repository (remote sites, such as Jcenter / Maven-central). If so, you may want to configure the remote repository not to store artifacts locally. This is being done by going to the Artifactory UI -> Admin -> Remote Repositories -> Edit the desired remote repository you are using -> Advanced -> and unmark the "Store Artifacts Locally" checkbox.
我猜你的意思是你不想存储来自远程存储库(远程站点,如Jcenter / Maven-central)的任何工件。如果是这样,您可能希望将远程存储库配置为不在本地存储工件。这是通过转到Artifactory UI - > Admin - > Remote Repositories - >编辑您正在使用的所需远程存储库 - > Advanced - >并取消标记“Local Artifacts Locally”复选框来完成的。
This way, every request you will do for artifacts that are not stored in your local repositories, will be fetched from the remote server, but will not be stored. Your Artifactory will be used as a proxy to that repository.
这样,您将为未存储在本地存储库中的工件执行的每个请求都将从远程服务器获取,但不会被存储。您的Artifactory将用作该存储库的代理。
#1
6
I guess you mean that you do not want to store any artifacts from the remote repository (remote sites, such as Jcenter / Maven-central). If so, you may want to configure the remote repository not to store artifacts locally. This is being done by going to the Artifactory UI -> Admin -> Remote Repositories -> Edit the desired remote repository you are using -> Advanced -> and unmark the "Store Artifacts Locally" checkbox.
我猜你的意思是你不想存储来自远程存储库(远程站点,如Jcenter / Maven-central)的任何工件。如果是这样,您可能希望将远程存储库配置为不在本地存储工件。这是通过转到Artifactory UI - > Admin - > Remote Repositories - >编辑您正在使用的所需远程存储库 - > Advanced - >并取消标记“Local Artifacts Locally”复选框来完成的。
This way, every request you will do for artifacts that are not stored in your local repositories, will be fetched from the remote server, but will not be stored. Your Artifactory will be used as a proxy to that repository.
这样,您将为未存储在本地存储库中的工件执行的每个请求都将从远程服务器获取,但不会被存储。您的Artifactory将用作该存储库的代理。