Per my email below, I followed the instructions on the first link below to configure the org.eclipse.m2e/lifecycle-plugin to execute the maven-remote-resources-plugin, which it does. I can see the remote resources in target/maven-shared-archive-resources, but for some reason I get these errors related to resources and testResources:
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) jeff On Mon, Jul 11, 2011 at 6:41 AM, Matthew Piggott <[email protected]> wrote: > With 1.0 most Maven plugins need explicit lifecycle mapping to configure > behaviour in the IDE (see > http://wiki.eclipse.org/M2E_plugin_execution_not_covered ), if you're > interested in writing one Igor started a page in the wiki at > http://wiki.eclipse.org/M2E_Extension_Development questions about > development should be directed at m2e-dev. > > Matthew > > On 9 July 2011 00:33, jsw <[email protected]> wrote: >> >> Hi, >> >> I'm attempting to use the lifecycle-mapping plugin to enable use of >> the maven-remote-resources-plugin, which worked for me prior to m2e >> 1.0. The target/maven-shared-archive-resources directory correctly >> contains the remote resource, but it doesn't get copied into >> target/classes. It works correctly on the command-line. I tried using >> the embedded maven installation as well as external (3.0.3). >> >> I get the following errors: >> >> 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> >> >> thanks, >> jeff >> _______________________________________________ >> m2e-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/m2e-users > > > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users > > _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
