Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] build-helper-maven-plugin add-resource

I'd like to add some Spring xml configuration files to my existing
WEB-INF spring configuration files in WEB-INF. They differ by
customer. I've tried using ant which, understandably make eclipse
quite upset I've tried using build-help-maven-plugin but it doesn't
seem to work. Here is my plugin config. Have I got the paths correct?
I am using STS 2.9.x

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>add-resource</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>add-resource</goal>
						</goals>
						<configuration>
							<resources>
								<resource>
									<directory>./src/customers/mycustomer/main/webapp/WEB-INF/spring</directory>
									<targetPath>/WEB-INF/spring</targetPath>
									<excludes>
										<exclude>**/.svn/**</exclude>
									</excludes>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>


Back to the top