母POM的包装无效,必须为;pom“;但这是";maven插件";
1] 我将maven clean插件:2.6.1.jar添加到本地存储库中。我没有指定pom,所以它生成了一个名为mavin plugin的插件,并给出了错误消息母POM的包装无效,必须为;pom“;但这是";maven插件";,maven,pom.xml,Maven,Pom.xml,1] 我将maven clean插件:2.6.1.jar添加到本地存储库中。我没有指定pom,所以它生成了一个名为mavin plugin的插件,并给出了错误消息 [WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.6.1 is invalid, transitive dependencies (if any) will not be available: 2 problems were enc
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.6.1 is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for org.apache.maven.plugins:maven-clean-plugin:2.6.1
[ERROR] Invalid packaging for parent POM org.apache.maven.plugins:maven-clean-plugin:2.6.1, must be "pom" but is "maven-plugin" @
[FATAL] The parents form a cycle: org.apache.maven.plugins:maven-clean-plugin:2.6.1 -> org.apache.maven.plugins:maven-clean-plugin:2.6.1 @
2]
我还尝试在2.4.1中添加jar和pom.xml及其jar包装,但得到错误消息:
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for org.apache.maven.plugins:maven-clean-plugin:2.4.1
[ERROR] Invalid packaging for parent POM rg.apache.maven.plugins:maven-clean-plugin:2.4.1, must be "pom" but is "jar" @
[FATAL] The parents form a cycle: org.apache.maven.plugins:maven-clean-plugin:2.4.1 -> org.apache.maven.plugins:maven-clean-plugin:2.4.1 @
3]我还试图更新jar文件,但没有指定pom.xml,因此出错
Downloading: https://mvnrepository.com/artifact/org.apache.maven.plugins/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[DEBUG] Writing resolution tracking file C:\Users\xxx\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.4.1\maven-clean-plugin-2.4.1.pom.lastUpdated
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.300s
[INFO] Finished at: Tue Dec 13 13:22:06 CST 2016
[INFO] Final Memory: 6M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1:
Could not find artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 in central (http://xxxxzero1.dev.deodiaus.com:8081/artifactory/plugins-release) -> [Help 1]
org.apache.maven.plugin.PluginResolutionException:
Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
4]
我还尝试手动更改我的~/repository/../pom.xml文件中的pom.xml我尝试了以下建议:我的代理工作请为您尝试的项目共享您的
pom.xml
文件build@WalterDeodiaus为什么这是(http://xxxxzero1.dev.deodiaus.com:8081/artifactory/plugins-发布)
是指向您的中心的链接吗?我忘了指定groupid!!我确实尝试了以下建议:我的代理工作请为您正在尝试的项目共享您的pom.xml
文件build@WalterDeodiaus为什么这是(http://xxxxzero1.dev.deodiaus.com:8081/artifactory/plugins-release)
是指向您的中心的链接吗?我忘了指定groupid!!