Commit 8f3d1e4a authored by Brian Long's avatar Brian Long
Browse files

added project.moduleVersion

parent 0807afbc
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -30,6 +30,34 @@
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>com.inteligr8</groupId>
				<artifactId>regex-maven-plugin</artifactId>
				<version>1.0.5</version>
				<executions>
					<execution>
						<id>acs-module-version</id>
						<phase>initialize</phase>
						<goals><goal>match-text</goal></goals>
						<configuration>
							<text>${project.version}</text>
							<newProperty>project.moduleVersion</newProperty>
							<regexes>
								<!-- turn -SNAPSHOT into A0 -->
								<regex>
									<pattern>^(.*)-SNAPSHOT$</pattern>
									<replacement>$1-A0</replacement>
								</regex>
								<!-- all others are just a copy -->
								<regex>
									<pattern>^(.*)$</pattern>
									<replacement>$1</replacement>
								</regex>
							</regexes>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>