错误的Maven没有为前缀'C'构建任何插件

时间:2018-10-31 10:48:39

标签: maven spring-boot

当我运行命令时,运行maven build时出现问题:

mvn -Djasypt.encryptor.password=supersecretz spring-boot:run C:\\Users\\c76266\\workspace-neon\\CorrespondenceDCS\\SOURCE\\ C:\\Users\\c76266\\workspace-neon\\CorrespondenceDCS\\POSTAL\\ C:\\Users\\c76266\\workspace-neon\\CorrespondenceDCS\\BLOK\\

以下记录错误:

  

C:\ Users \ c76266 \ workspace-neon \ CorrespondenceDCS> mvn -e   -Djasypt.encryptor.passw ord = supersecretz spring-boot:运行C:\ Users \ c76266 \ workspace-neon \ Corresponden ceDCS \ SOURCE \   C:\ Users \ c76266 \ workspace-neon \ CorrespondenceDCS \ POSTAL \ C   :\ Users \ c76266 \ workspace-neon \ CorrespondenceDCS \ BLOK \ [INFO]   错误堆栈跟踪已打开。 [INFO]正在扫描项目...   [警告] org.eclipse.m2e:lifecycle-mapping:jar:1.0.0的POM是   缺少,没有可用的依赖项信息[警告]失败   检索org.eclipse.m2e:lifecycle-map的插件描述符   ping:1.0.0:插件org.eclipse.m2e:lifecycle-mapping:1.0.0或以下之一   其依赖关系无法解决:找不到   org.eclipse.m2e:lifecycle-mapping:j ar:1.0.0 in   http://repo.maven.apache.org/maven2已缓存在本地存储库中   ry,直到更新间隔为   中心已过期或强制进行更新下载:   http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-   metadata.xml下载:   http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadat   a.xml下载:   http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-m   etadata.xml(14 KB,18.1 KB /秒)下载:   http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata   .xml(20 KB,20.7 KB /秒)[INFO]   -------------------------------------------------- ---------------------- [INFO]内置失败

     

[错误]在当前项目和当前版本中找不到前缀“ C”的插件   插件组[org.apache.maven.plugins,org.codehaus.mojo]   可从存储库[本地   (C:\ Users \ c76266.m2 \ repository),中央(http://repo.maven.apache。   org / maven2)]-> [帮助1]   org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException:否   在当前项目和插件中找到前缀为“ C”的插件   组[org.apache.maven .plugins,org.codehaus.mojo]可从   存储库[本地(C:\ Users \ c7 6266.m2 \ repository),中央   (http://repo.maven.apache.org/maven2)]           在org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.r   esolve(DefaultPluginPrefixResolver.java:93)           在org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginF   orPrefix(MojoDescriptorCreator.java:260)           在org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDesc   riptor(MojoDescriptorCreator.java:220)           在org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalcul   ator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)           在org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalcul   ator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)           在org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle   eStarter.java:98)           在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)           在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)           在org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)           在org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)           在org.apache.maven.cli.MavenCli.main(MavenCli.java:158)           在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处           在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl。   Java:62)           在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces   sorImpl.java:43)           在java.lang.reflect.Method.invoke(Method.java:498)           在org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun   cher.java:289)           在org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav   a:229)           在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La   uncher.java:415)           在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:   356)

如何解决这个问题?我是Spring框架的新手,我还不确定春天。为什么显示此问题?

0 个答案:

没有答案