Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Can't use maven-remote-resources-plugin with m2e 1.0

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


Back to the top