在公共关系RepositoryApi
中,我们可以找到createAptProxy
方法签名
/**
* Create an Apt proxy repository.
* @param name The name of the new Repository
* @param remoteUrl The url of the external proxy for this Repository
* @param blobStoreName The BlobStore the Repository should use
* @param distribution The name of the required distribution
* @param strictContentTypeValidation Whether or not the Repository should enforce strict content types
* @return the newly created Repository
*/
Repository createAptProxy(final String name,
final String remoteUrl,
final String blobStoreName,
final String distribution,
final boolean strictContentTypeValidation);
但是在Web界面中,我们可以在apt(proxy)创建页面中找到flat
选项
AptFacetImpl中也定义了此选项,但是在Nexus groovy脚本API中调用repository.createAptProxy
后,我没有找到更改此选项值的正确方法。