maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: [maven-war-plugin] Executing a goal after unpacking overlays and before repacking
Date Fri, 27 Nov 2009 09:01:59 GMT
As asked by a user, here I attach a snippet of my configuration:

<build>
  <plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-resources</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>com.pronetics.jira.plugins</groupId>
									<artifactId>backup-configuration</artifactId>
									<version>1.0-SNAPSHOT</version>
									<type>zip</type>
									<classifier>webresources</classifier>
								</artifactItem>
							</artifactItems>
							<outputDirectory>${project.build.directory}/webapp-unpack</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-resources</phase>
						<configuration>
							<tasks>
								<copy todir="${project.build.directory}/${artifactId}">
									<fileset dir="${project.build.directory}/processed-files" />
								</copy>
								<copy todir="${project.build.directory}/${artifactId}">
									<fileset dir="${project.build.directory}/webapp-unpack" />
								</copy>
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.google.code.maven-config-processor-plugin</groupId>
				<artifactId>maven-config-processor-plugin</artifactId>
				<version>1.4</version>
				<configuration>
					<outputDirectory>target/processed-files</outputDirectory>
					<useOutputDirectory>true</useOutputDirectory>
					<encoding>ISO-8859-1</encoding>
					<lineWidth>200</lineWidth>
					<indentSize>4</indentSize>
					<transformations>
						<transformation>
							<type>properties</type>
							<replacePlaceholders>true</replacePlaceholders>
							<input>${project.build.directory}/webapp-unpack/exportConfiguration.properties</input>
							<output>exportConfiguration.properties</output>
							<config>src/main/assembly/properties/properties-processing.xml</config>
						</transformation>
					</transformations>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>process</goal>
						</goals>
						<phase>generate-resources</phase>
					</execution>
				</executions>
			</plugin>
  </plugins>
</build>


HTH
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message