错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project sea rch-zk-increment-monitor: Mark invalid -> [Help 1]

详细错误:

 1 Mark invalid (org.apache.maven.plugins:maven-resources-plugin:2.7:resources:default-resources:process-resources)
 2
 3 org.apache.maven.plugin.MojoExecutionException: Mark invalid
 4     at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:306)
 5     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
 6     at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
 7     at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
 8     at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
 9     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
10     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
11     at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
12     at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
13     at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
14     at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
15     at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
16     at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
17     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
18     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
19     at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
20     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
21     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
22     at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
23     at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
24     at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
25     at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
26     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
27     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
28     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
29     at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
30     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
31     at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
32     at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
33     at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
34     at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
35     at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
36     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
37 Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Mark invalid
38     at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:129)
39     at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:264)
40     at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:300)
41     ... 32 more
42 Caused by: java.io.IOException: Mark invalid
43     at java.io.BufferedReader.reset(BufferedReader.java:512)
44     at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:416)
45     at org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read(MultiDelimiterInterpolatorFilterReaderLineEnding.java:205)
46     at java.io.Reader.read(Reader.java:140)
47     at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:181)
48     at org.apache.maven.shared.utils.io.IOUtil.copy(IOUtil.java:168)
49     at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1856)
50     at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1804)
51     at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:114)
52     ... 34 more

解决方案:在 pom.xml 文件里添加如下内容:

 1 <plugin>
 2    <groupId>org.apache.maven.plugins</groupId>
 3        <artifactId>maven-resources-plugin</artifactId>
 4        <version>2.7</version>
 5        <dependencies>
 6              <dependency>
 7                   <groupId>org.apache.maven.shared</groupId>
 8                   <artifactId>maven-filtering</artifactId>
 9                   <version>1.3</version>
10              </dependency>
11       </dependencies>
12 </plugin>

原文地址:https://www.cnblogs.com/maigy/p/11043785.html

时间: 2024-10-18 20:54:31

错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project sea rch-zk-increment-monitor: Mark invalid -> [Help 1]的相关文章

解决maven项目 maven install失败 错误 Failed to execute goal org.apache.maven.plugins

1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3.4 :compile ( default -compile) on project oecp: Compilation failure 2.解决方法:使用自己的jdk,记住是jdk,因为jdk里本身包含jre.而不是单纯的jre.本人初学者,表达肤浅,请看勿笑. 解决maven项目 maven install失败 错误 Fa

Maven错误“Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create ”解决

用maven3新建一个项目时,输入的命令如下: mvn archetype:create 出现错误如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:mav

maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile)

解决方法是将 jre的目录在 window->Preferences 里修改java installed里的jre目录改为jdk目录即可. 原因是在jre目录下不存在tools.jar. maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile),布布扣,bubuko.com maven错误解决一:Failed to execute

mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号

报错信息 在Eclipse中执行mvn install时,console端显示如下报错信息: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ERP: Compilation failure: Compilation failure: [ERROR] \test01\src\main\java\HStyl

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

使用maven打包的时候出现如下错误: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 解决办法: 1.查看window--Preferences--Installed JREs 中是否引用的是本地的jdk,不是就改为本地jdk 2.若问题依旧存在,则还需要 查看window--Preferences--Installed JREs -- Exe

maven报 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile(defalut-compile) on project 项目名称:No such compile &#39;javac&#39;

这个问题纠结了一天,在另外一个电脑是正常的,但是从服务器下载下来到另外一个电脑的时候却出现了如下图问题 看到javac大家都会想到是编译出现问题,而本地的配置如下图所示: 看着配置都是一致的,会是哪里的问题呢?经网上咨询有个大神说是可能是maven没有配置指定的jdk原因,原因如下: maven是个项目管理工具,如果我们不告诉它我们的代码要使用什么样的jdk版本编译的话,它就会用maven-compiler-plugin默认的jdk版本来进行处理,这样就容易出现版本不匹配的问题,以至于可能导致编

2016.6.21 maven使用cmd新建项目时,failed to execute goal org.apache.maven.plugins:maven-archetye-plugin:2.4:generate...

在学习maven的时候,想要新建一个maven工程,在命令行执行create或generate命令. 错误如图所示: failed to execute goal org.apache.maven.plugins:maven-archetye-plugin:2.4:generate... 解决办法: http://doc.okbase.net/Josh_Persistence/archive/192456.html 这里面提到了四种可能的原因及解决办法. 环境变量配置什么的检查就不提了. (1)

jenkins运行报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project lego

起因:我要对4000条数据循环请求搜索接口,校验返回值,然后在Jenkins上面运行的时候报错:maven-surefire-plugin执行test失败,但是运行70条数据的时候就不会报错,而且程序本身也没有错误,猜测应该是数据量大导致的.通过查阅网上的资料说是要设置surefire插件的jvm 参数. Jenkins运行报下面的错误: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:te

针对Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解决方案

背景:本项目使用JDK1.8 编译maven工程的时候出现如下错误: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 pom中如下配置maven插件,配置中声明使用JDK1.8: [html] view plain copy <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>mav

Maven创建项目: Failed to execute goal org.apache.maven.plugin( mvn archetype:create)

一.概述: 在使用mvn 命令mvn archetype:create -DgroupId=com.chuanliu.c11 -DartifactId=c11searcher在控制创建maven项目和pom项目时,没有创建成功,错误信息如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli)  on project standalone-p