[INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea ded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mavenDemo 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mavenDemo --- [WARNING] Error injecting: org.apache.maven.plugin.resources.ResourcesMojo java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFiltering Exception at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) at java.lang.Class.getDeclaredConstructors(Class.java:1901) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint. java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorB indingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(In jectorImpl.java:653) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(Injec torImpl.java:863) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecurs ive(InjectorImpl.java:790) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(Injector Impl.java:278) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImp l.java:210) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorIm pl.java:986) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java :1019) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java :982) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java :1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClas s.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(Provider InternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.prov ision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInt ernalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p rovision(ProvisionListenerStackCallback.java:100) at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLife cycleManager.java:133) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p rovision(ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback.provision(P rovisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(Provid erInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get( InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:99 7) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.ja va:1047) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:5 1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:260) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:252) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigu redMojo(DefaultMavenPluginManager.java:462) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:120) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:208) 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.buildProje ct(LifecycleModuleBuilder.java:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre adedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 356) Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.filtering.M avenFilteringException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass( SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadCl ass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea ded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building mavenDemo 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mavenDemo --- [WARNING] Error injecting: org.apache.maven.plugin.resources.ResourcesMojo java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFiltering Exception at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) at java.lang.Class.getDeclaredConstructors(Class.java:1901) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint. java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorB indingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(In jectorImpl.java:653) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(Injec torImpl.java:863) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecurs ive(InjectorImpl.java:790) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(Injector Impl.java:278) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImp l.java:210) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorIm pl.java:986) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java :1019) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java :982) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java :1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClas s.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(Provider InternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.prov ision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInt ernalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p rovision(ProvisionListenerStackCallback.java:100) at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLife cycleManager.java:133) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.p rovision(ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback.provision(P rovisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(Provid erInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get( InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:99 7) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.ja va:1047) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:5 1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:260) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:252) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigu redMojo(DefaultMavenPluginManager.java:462) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:120) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:208) 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.buildProje ct(LifecycleModuleBuilder.java:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre adedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 356) Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.filtering.M avenFilteringException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass( SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadCl ass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm .java:235) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm .java:227) ... 54 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.771 s [INFO] Finished at: 2014-06-22T09:49:08+08:00 [INFO] Final Memory: 6M/123M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2 .6:resources (default-resources) on project mavenDemo: Execution default-resourc es of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-res ources-plugin:2.6:resources: org/apache/maven/shared/filtering/MavenFilteringExc eption [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.6 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/p lugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar [ERROR] urls[1] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/r eporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar [ERROR] urls[2] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/d oxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar [ERROR] urls[3] = file:/C:/Users/Administrator/.m2/repository/commons-cli/common s-cli/1.0/commons-cli-1.0.jar [ERROR] urls[4] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu s/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar [ERROR] urls[5] = file:/C:/Users/Administrator/.m2/repository/junit/junit/3.8.1/ junit-3.8.1.jar [ERROR] urls[6] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu s/plexus-utils/2.0.5/plexus-utils-2.0.5.jar [ERROR] urls[7] = file:/C:/Users/Administrator/.m2/repository/org/apache/maven/s hared/maven-filtering/1.1/maven-filtering-1.1.jar [ERROR] urls[8] = file:/C:/Users/Administrator/.m2/repository/org/sonatype/plexu s/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar [ERROR] urls[9] = file:/C:/Users/Administrator/.m2/repository/org/codehaus/plexu s/plexus-interpolation/1.13/plexus-interpolation-1.13.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: org.apache.maven. shared.filtering.MavenFilteringException [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine rException E:\maventest\hello\mavenDemo>
我在用maven 创建一个工程后 使用mvn compile命令编译时报错,老提示插件错误,我是刚开了解maven,是不是我的maven配置或者插件方面有什么题?
相关推荐
3. **生命周期**:Maven有三个主要的生命周期阶段:compile(编译)、test(测试)、package(打包),可以使用命令行工具如`mvn compile`执行相应阶段。 4. **插件**:Maven通过插件扩展功能,例如,maven-surefire...
- **构建项目**:使用`mvn compile`进行编译,`mvn test`运行测试,`mvn package`打包项目,`mvn install`将项目安装到本地仓库。 - **依赖管理**:在POM.xml文件中声明依赖,Maven会自动下载并管理这些依赖。 - *...
- 使用Maven的生命周期和阶段来管理构建过程,如`compile`、`test`、`install`和`deploy`。 以上就是关于"MyEclipse部署Maven详细"的相关知识点,包括Maven的安装、MyEclipse中的集成、项目创建、POM配置、问题...
7. **异常处理**:捕获并处理`SQLException`,确保程序健壮性。 8. **JNDI数据源**:在应用服务器中,可以配置JNDI数据源,使应用程序能通过名字查找数据库连接,简化代码并提高可维护性。 9. **Oracle特有功能**...
在使用Maven2执行compile之后,这个目录中的所有文件及子目录,会复制到target/classes目录中,为以后的打包提供了方便。 • src/test/resources,负责管理项目测试的资源。在使用Maven2执行test-compile之后,这个...
2. **Maven的生命周期与阶段**:Maven有多个生命周期,如clean、default和site,每个生命周期由一系列的阶段(goals)组成,如compile、test、install和deploy。开发者可以根据需要调用特定阶段来完成构建任务。 3....
2. **构建生命周期**:Maven的生命周期包括清理(clean)、编译(compile)、测试(test)、打包(package)、验证(verify)、安装(install)和部署(deploy)等阶段。每个阶段由一系列的默认目标(goals)组成,...
4. **生命周期集成**:Maven的生命周期(如clean, compile, test, package, install, deploy)可以应用于所有子项目,只需在父项目上运行相应命令。 接下来,我们深入探讨Java Socket的双向通信: 1. **服务器端...
3. **生命周期与构建阶段**:Maven拥有丰富的生命周期,包括编译(compile)、测试(test)、打包(package)、验证(verify)等阶段,开发者可以通过简单的命令执行整个构建过程。 4. **插件系统**:Maven的强大...
- 找到下载后的 Maven 压缩包所在的目录,然后解压到自己所需的对应路径(注意:安装路径避免包含中文字符,因为这可能引起后续构建过程中出现异常)。 - 例如,您可以将解压后的文件夹(例如 `apache-maven-3.x.x...
Maven还提供了生命周期和构建阶段,例如clean、compile、test、package、install和deploy,方便开发者进行构建和部署。 **MyBatis** MyBatis消除了传统DAO层的繁琐工作,将SQL语句与Java代码分离。通过XML或注解...
此外,`@Repository`注解用于创建DAO层的bean,Spring Data JPA会自动处理异常翻译。 项目中还提到了登录功能,这通常涉及到用户认证和授权。Spring Security可以与SpringMVC无缝集成,提供安全控制。它可以处理...
在Maven项目中,可以使用`mvn compile`命令编译源代码,`mvn test`运行测试,`mvn package`打包应用,`mvn install`将打包好的应用安装到本地Maven仓库,方便其他项目引用。对于Web应用,还可以使用`mvn jetty:run`...
- **Maven构建过程**:理解Maven的生命周期和构建阶段,如clean、compile、test、package、install等。 - **单元测试与集成测试**:使用JUnit、Mockito等工具进行测试,确保代码质量。 - **视图层的处理**:可能是...
此外,Maven还提供了生命周期和构建阶段,如编译(compile)、测试(test)、打包(package)和部署(deploy)。 3. **Tomcat服务器**:Tomcat是一个Servlet容器,它解析HTTP请求并调用相应的Servlet来处理。在开发...
此外,Maven还提供了标准的生命周期和构建阶段,如`clean`、`compile`、`test`、`package`等,简化了构建过程。`myProject` 文件夹很可能是这个项目的基础结构,包含`pom.xml` 文件和其他源代码、资源文件。 结合这...
在`default`生命周期中,`compile`、`test`、`package`、`install`和`deploy`等阶段分别对应源码编译、测试、打包、安装到本地仓库和部署到远程仓库等操作。 7. **Maven插件**:Maven通过插件扩展其功能,例如,`...
5. 使用Maven的命令行工具执行构建任务,如mvn compile编译源代码,mvn test运行单元测试,mvn package打包应用为可部署的WAR或JAR文件。 6. 最后,将打包后的应用部署到Web服务器(如Tomcat),并与MySQL数据库连接...
Maven可以通过命令行工具执行各种操作,如`mvn clean`清理项目,`mvn compile`编译源代码,`mvn test`运行测试,`mvn package`打包应用,`mvn install`将项目安装到本地仓库。 7. **Hello, World! 应用** 在这个...
8. **测试与运行**:通过Maven的mvn compile、mvn test、mvn package命令完成编译、测试和打包,最后部署到服务器运行。 在文档"monitor_NOTE.docx"中,可能包含了监控Spring MVC和Hibernate整合项目性能或状态的...