Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Artifactory无法解析没有版本的插件工件_Maven_Netbeans_Artifactory_Resolve - Fatal编程技术网

Maven Artifactory无法解析没有版本的插件工件

Maven Artifactory无法解析没有版本的插件工件,maven,netbeans,artifactory,resolve,Maven,Netbeans,Artifactory,Resolve,我有一个artifactory存储库,除了解析org.apache.maven.plugins工件外,它工作得非常好。每当我试图编译一个NetBeans项目时,它总是为我的项目中使用的所有maven插件提供这个异常 Error resolving version for plugin 'org.apache.maven.plugins:maven-install-plugin' from the repositories [local (C:\Users\Developer\.m2\reposi

我有一个artifactory存储库,除了解析org.apache.maven.plugins工件外,它工作得非常好。每当我试图编译一个NetBeans项目时,它总是为我的项目中使用的所有maven插件提供这个异常

Error resolving version for plugin 'org.apache.maven.plugins:maven-install-plugin' from the repositories [local (C:\Users\Developer\.m2\repository), central (http://my.example.com/artifactory/plugins-release), snapshots (http://my.example.com/artifactory/plugins-release)]: Plugin not found in any plugin repository

我认为这是因为NetBeans没有指定这些插件的版本,因为它总是尝试使用最新版本。如何让我的Artifactory解析这些工件?

可能需要公开Maven索引


可能需要公开Maven索引


您也尝试过显式版本吗?如何指定版本?当我从NetBeans使用build命令时,它会发出以下命令:cd C:\Projects\MyMavenProject;“JAVA\u HOME=C:\\Program Files\\JAVA\\jdk1.7.0\u 80”cmd/C“\”C:\\Software\\netbeans\\JAVA\\maven\\bin\\mvn.cmd\”-Dmaven.ext.class.path=C:\\Software\\netbeans\\JAVA\\maven nblib\\netbeans-eventspy.jar-Dfile.encoding=UTF-8 clean install”有两种可能性:您可以在POM的
部分设置插件的版本,也可以调用显式目标(我猜Netbeans允许您执行任意maven目标)。没有版本,maven中央存储库如何解决这些工件?因为如果我删除settings.xml文件以绕过我的artifactory repository.unversion,Maven会使用最高版本。但是您是否尝试使用指定的版本运行它?您是否也使用显式版本运行它?如何指定版本?当我从NetBeans使用build命令时,它会发出以下命令:cd C:\Projects\MyMavenProject;“JAVA\u HOME=C:\\Program Files\\JAVA\\jdk1.7.0\u 80”cmd/C“\”C:\\Software\\netbeans\\JAVA\\maven\\bin\\mvn.cmd\”-Dmaven.ext.class.path=C:\\Software\\netbeans\\JAVA\\maven nblib\\netbeans-eventspy.jar-Dfile.encoding=UTF-8 clean install”有两种可能性:您可以在POM的
部分设置插件的版本,也可以调用显式目标(我猜Netbeans允许您执行任意maven目标)。没有版本,maven中央存储库如何解决这些工件?因为如果我删除settings.xml文件以绕过我的artifactory repository.unversion,Maven会使用最高版本。但是你试过用指定的版本运行它吗?我添加了maven索引,但仍然没有乐趣。maven安装插件仍然失败。我添加了maven索引,但仍然没有乐趣。maven安装插件仍然失败。