반응형
Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed. (org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources:default-resources:process-resources) Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources failed. (org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources:default-testResources:process-test-resources) I am using STS 2.7.0 (indigo) with m2e updated to 1.0.0.20110607-2117. Here's a minimal pom that demonstrates the issue: <?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.decide.search</groupId> <artifactId>search-sa</artifactId> <version>1.2.4-SNAPSHOT</version> <build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-remote-resources-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>process</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-remote-resources-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <id>process-remote-resources</id> <goals> <goal>process</goal> </goals> <configuration> <resourceBundles> <resourceBundle>com.decide.search:search-solr-config:1.2.2</resourceBundle> </resourceBundles> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>