昨天,我在我工作的公司结帐我的项目。我们使用Maven,Java EE,JSF,Richfaces等。当我在NetBeans 8中构建项目时,我收到以下错误:
插件org.richfaces.cdk:maven-cdk-plugin:4.3.1.Final或其中一个依赖项无法解析:无法读取org.richfaces.cdk的工件描述符:maven-cdk-plugin:jar :4.3.1.Final:找不到org.richfaces.cdk:maven-cdk-plugin:pom:4.3.1。http://repo1.maven.org/maven2中的Final被缓存在本地存储库中,在更新之前不会重新尝试解析中心间隔已经过去或强制更新 - > [帮助1] org.apache.maven.plugin.PluginResolutionException:插件org.richfaces.cdk:maven-cdk-plugin:4.3.1.Final或其中一个依赖项无法解析:无法读取org.richfaces.cdk的工件描述符: Maven的CDK-插件:罐子:4.3.1.Final 在org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129) 在org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142) 在org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261) 在org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185) 在org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152) 在org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139) at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116) 在org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129) 在org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92) 在org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) 在org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 在org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 在org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 在org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 在org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 在org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 在org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) 在org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) 在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) 在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 引起:org.sonatype.aether.resolution.ArtifactDescriptorException:无法读取org.richfaces.cdk的工件描述符:maven-cdk-plugin:jar:4.3.1.Final at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:279) 在org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:115) ......还有25个 引起:org.sonatype.aether.resolution.ArtifactResolutionException:无法找到org.richfaces.cdk:maven-cdk-plugin:pom:4.3.1。http://repo1.maven.org/maven2中的Final被缓存在本地存储库中,解析将在中心的更新间隔过去或强制更新之前不要重新尝试 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281) ......还有28个 引起:org.sonatype.aether.transfer.ArtifactNotFoundException:无法找到org.richfaces.cdk:maven-cdk-plugin:pom:4.3.1。http://repo1.maven.org/maven2中的Final缓存在本地存储库中,解析将在中心的更新间隔过去或强制更新之前不要重新尝试 at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ......还有31个
这对我来说非常不寻常,因为我的团队中的其他人都没有遇到过这个错误,尽管他们安装了相同的JDK,NetBeanIDE等......
答案 0 :(得分:0)
maven-cdk-plugin可以在JBoss公共仓库中找到:https://repository.jboss.org/nexus/content/groups/public/,你需要更新你的maven设置