java - Maven plugin "mark invalid" in Eclipse (Mars - 4.5.0) -
this question has answer here:
i have newly created maven project imported eclipse. eclipse complaining 1 of plugins:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-resources-plugin</artifactid> <version>2.7</version> <configuration> <encoding>utf-8</encoding> </configuration> </plugin>
i'm using embedded 3.3.1/1.6.0.20150526-2031 version of maven inside eclipse.
here's error:
mark invalid (org.apache.maven.plugins:maven-resources-plugin:2.7:resources:default-resources:process-resources) org.apache.maven.plugin.mojoexecutionexception: mark invalid @ org.apache.maven.plugin.resources.resourcesmojo.execute(resourcesmojo.java:306) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:134) @ org.eclipse.m2e.core.internal.embedder.mavenimpl.execute(mavenimpl.java:331) @ org.eclipse.m2e.core.internal.embedder.mavenimpl$11.call(mavenimpl.java:1362) @ org.eclipse.m2e.core.internal.embedder.mavenimpl$11.call(mavenimpl.java:1) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.executebare(mavenexecutioncontext.java:176) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.execute(mavenexecutioncontext.java:112) @ org.eclipse.m2e.core.internal.embedder.mavenimpl.execute(mavenimpl.java:1360) @ org.eclipse.m2e.core.project.configurator.mojoexecutionbuildparticipant.build(mojoexecutionbuildparticipant.java:52) @ org.eclipse.m2e.core.internal.builder.mavenbuilderimpl.build(mavenbuilderimpl.java:137) @ org.eclipse.m2e.core.internal.builder.mavenbuilder$1.method(mavenbuilder.java:172) @ org.eclipse.m2e.core.internal.builder.mavenbuilder$1.method(mavenbuilder.java:1) @ org.eclipse.m2e.core.internal.builder.mavenbuilder$buildmethod$1$1.call(mavenbuilder.java:115) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.executebare(mavenexecutioncontext.java:176) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.execute(mavenexecutioncontext.java:112) @ org.eclipse.m2e.core.internal.builder.mavenbuilder$buildmethod$1.call(mavenbuilder.java:105) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.executebare(mavenexecutioncontext.java:176) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.execute(mavenexecutioncontext.java:151) @ org.eclipse.m2e.core.internal.embedder.mavenexecutioncontext.execute(mavenexecutioncontext.java:99) @ org.eclipse.m2e.core.internal.builder.mavenbuilder$buildmethod.execute(mavenbuilder.java:86) @ org.eclipse.m2e.core.internal.builder.mavenbuilder.build(mavenbuilder.java:200) @ org.eclipse.core.internal.events.buildmanager$2.run(buildmanager.java:734) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.core.internal.events.buildmanager.basicbuild(buildmanager.java:205) @ org.eclipse.core.internal.events.buildmanager.basicbuild(buildmanager.java:245) @ org.eclipse.core.internal.events.buildmanager$1.run(buildmanager.java:300) @ org.eclipse.core.runtime.saferunner.run(saferunner.java:42) @ org.eclipse.core.internal.events.buildmanager.basicbuild(buildmanager.java:303) @ org.eclipse.core.internal.events.buildmanager.basicbuildloop(buildmanager.java:359) @ org.eclipse.core.internal.events.buildmanager.build(buildmanager.java:382) @ org.eclipse.core.internal.events.autobuildjob.dobuild(autobuildjob.java:144) @ org.eclipse.core.internal.events.autobuildjob.run(autobuildjob.java:235) @ org.eclipse.core.internal.jobs.worker.run(worker.java:55) caused by: org.apache.maven.shared.filtering.mavenfilteringexception: mark invalid @ org.apache.maven.shared.filtering.defaultmavenfilefilter.copyfile(defaultmavenfilefilter.java:129) @ org.apache.maven.shared.filtering.defaultmavenresourcesfiltering.filterresources(defaultmavenresourcesfiltering.java:264) @ org.apache.maven.plugin.resources.resourcesmojo.execute(resourcesmojo.java:300) ... 32 more caused by: java.io.ioexception: mark invalid @ java.io.bufferedreader.reset(bufferedreader.java:512) @ org.apache.maven.shared.filtering.multidelimiterinterpolatorfilterreaderlineending.read(multidelimiterinterpolatorfilterreaderlineending.java:416) @ org.apache.maven.shared.filtering.multidelimiterinterpolatorfilterreaderlineending.read(multidelimiterinterpolatorfilterreaderlineending.java:205) @ java.io.reader.read(reader.java:140) @ org.apache.maven.shared.utils.io.ioutil.copy(ioutil.java:181) @ org.apache.maven.shared.utils.io.ioutil.copy(ioutil.java:168) @ org.apache.maven.shared.utils.io.fileutils.copyfile(fileutils.java:1856) @ org.apache.maven.shared.utils.io.fileutils.copyfile(fileutils.java:1804) @ org.apache.maven.shared.filtering.defaultmavenfilefilter.copyfile(defaultmavenfilefilter.java:114) ... 34 more pom.xml /canvass line 86 maven build problem
i had similar problem. there seems problem maven-filtering dependency. upgrading more recent version fixes problem:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-resources-plugin</artifactid> <version>2.7</version> <dependencies> <dependency> <groupid>org.apache.maven.shared</groupid> <artifactid>maven-filtering</artifactid> <version>1.3</version> </dependency> </dependencies> </plugin>
the solution posted here: https://stackoverflow.com/a/28864641
Comments
Post a Comment