用maven进行install的时候报错Error injecting: org.apache.maven.plugin.install.InstallMojo

问题描述

------------------------------------------------------- T E S T S-------------------------------------------------------There are no tests to run.Results :Tests run: 0, Failures: 0, Errors: 0, Skipped: 0[INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ llemaicai ---[INFO] Packaging webapp[INFO] Assembling webapp [llemaicai] in [E:devmaicaiprollemaicaitargetllemaicai][INFO] Processing war project[INFO] Copying webapp resources [E:devmaicaiprollemaicaisrcmainwebapp][INFO] Webapp assembled in [35 msecs][INFO] Building war: E:devmaicaiprollemaicaitargetllemaicai.war[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')[INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ llemaicai ---[WARNING] The POM for org.codehaus.plexus:plexus-digest:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details2013-2-20 14:41:14 org.sonatype.guice.bean.reflect.LoadedClass警告: Error injecting: org.apache.maven.plugin.install.InstallMojojava.lang.NoClassDefFoundError: org/codehaus/plexus/digest/DigesterExceptionat java.lang.Class.getDeclaredConstructors0(Native Method)at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)at java.lang.Class.getDeclaredConstructors(Class.java:1836)at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:628)at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:835)at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:769)at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:254)at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:843)at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:957)at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:990)at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:951)at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1003)at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:47)at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:968)at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1014)at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:964)at com.google.inject.Scopes$1$1.get(Scopes.java:59)at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:79)at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:53)at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.digest.DigesterExceptionat org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)... 47 more[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 1.669s[INFO] Finished at: Wed Feb 20 14:41:14 CST 2013[INFO] Final Memory: 4M/15M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project llemaicai: Execution default-install of goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install failed: Unable to load the mojo 'install' in the plugin 'org.apache.maven.plugins:maven-install-plugin:2.3.1'. A required class is missing: org/codehaus/plexus/digest/DigesterException[ERROR] -----------------------------------------------------[ERROR] realm = plugin>org.apache.maven.plugins:maven-install-plugin:2.3.1[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy[ERROR] urls[0] = file:/D:/javalib/repository/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar[ERROR] urls[1] = file:/D:/javalib/repository/junit/junit/3.8.1/junit-3.8.1.jar[ERROR] urls[2] = file:/D:/javalib/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar[ERROR] urls[3] = file:/D:/javalib/repository/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar[ERROR] Number of foreign imports: 1[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]][ERROR] [ERROR] -----------------------------------------------------: org.codehaus.plexus.digest.DigesterException[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

解决方案

[WARNING] The POM for org.codehaus.plexus:plexus-digest:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details 这个包名字或版本号有问题,检查下看看

时间: 2024-10-28 11:05:50

用maven进行install的时候报错Error injecting: org.apache.maven.plugin.install.InstallMojo的相关文章

ArcSDE 做POST报错Error: Operation Failed (-1). SDE release install not completed.

问题描述 同一主机:Windows2008R264位,ArcSDEfor11g64bit本机Oracle11g64位服务端,Oracle11g32位客户端,Oracle10g32为服务端环境变量pathC:appAdministratorproduct11.2.0client_1bin;E:appAdministratorproduct11.2.0dbhome_1bin;C:ProgramFiles(x86)CommonFilesNetSarang;%SystemRoot%system32;%S

Intellij 14用maven构建时pom.xml报错

问题描述 Intellij 14用maven构建时pom.xml报错 Intellij 14用maven构建时pom.xml报错,Dependency '''org.apache.commons:com.springsource.org.apache.commons.logging:1.1.1''' not found less... Inspects a Maven model for resolution problems.求助 解决方案 'org.apache.commons:com.sp

odl adsal northbound-karaf中运行feature:install odl-adsal-northbound就报错

问题描述 karaf中运行feature:install odl-adsal-northbound就报错 karaf中运行feature:install odl-adsal-northbound就报错 Refreshing bundles org.apache.aries.util (9) Error executing command: Can't install feature odl-adsal-northbound/0.0.0: Could not start bundle mvn:or

创建Maven项目 pom.xml文件报错

问题描述 创建Maven项目 pom.xml文件报错 创建maven项目 pom.xml文件提示错误: Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update inter

jar-web项目转换为maven项目,项目各种报错的问题

问题描述 web项目转换为maven项目,项目各种报错的问题 有一个比较大的web项目,原本是不支持maven的.jar包什么的 都是手动打,现在需要改成 maven来管理的.我通过右键项目configure里面的convert to Maven project之后,项目报错. 难道是我漏掉了什么地方?还是说不能直接点击convert to Maven project?请大神 错误类似于这种.提示全都是 XXX cannot be resolved to a type 解决方案 这个错误,,就是

maven 项目tomcat启动总是报错,而且项目是直接从团队git仓库下的,是我的环境配置问题吗

问题描述 maven 项目tomcat启动总是报错,而且项目是直接从团队git仓库下的,是我的环境配置问题吗 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.diamond.client.spring.MessagePropertyPlaceholderConfigurer#0': Invocation of init method failed;

svn上拉下来一个maven工程building的时候报错,求解答!

问题描述 svn上拉下来一个maven工程building的时候报错,求解答! 错误提示如下: 解决方案 **这个主要是JS的校验比较纠结,经常导致编译出错,这时把JavaScript Validator去掉即可. 选择项目--右键Properties--Builders--如果有则取消第一项"JavaScript Validator"的勾.**

maven项目 mybatis generator运行报错。。。。在线急等!!!

问题描述 maven项目 mybatis generator运行报错....在线急等!!! 执行maven命令:mybatis-generator:generate -e 时报如下错误: Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:genera

maven项目中web.xml报错

问题描述 maven项目中web.xml报错 已加入这段代码就报错,求指导... 解决方案 好像是你web.xml配置有问题,试试下面的 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee