<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>

	<parent>
		<groupId>com.peterlavalle</groupId>
		<artifactId>sablecc-maven</artifactId>
		<version>3.7</version>
	</parent>

	<artifactId>sablecc-maven.sablecc</artifactId>

	<build>
		<plugins>
			<plugin>
				<groupId>com.peterlavalle</groupId>
				<artifactId>degen</artifactId>
				<version>${degen.version}</version>
				<executions>
					<execution>
						<id>generate</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>degenerate</goal>
						</goals>						
						<configuration>
							<sources>
								<!--
									if you're looking at this, you're probably tring to update the plugin to use a newer version of SableCC.
									
									It sort of goes like this:
										
									<source>[put a URL that the distribution with sources is at] {[[regular expression to match the sources]]@[[replacement pattern to change the source file names]]}</source>
								-->
								<source>http://heanet.dl.sourceforge.net/project/sablecc/SableCC/${project.version}/sablecc-${project.version}.zip {sablecc-${project.version}/src/(org/sablecc/sablecc/.+(dat|txt|java))@$1}</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>