<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>ch.bbv.fsm</groupId>
	<artifactId>fsm</artifactId>
	<packaging>pom</packaging>
	<name>State Machine - Parent Project.</name>
	<version>1.2.0</version>
	<description>Hierarchical State Machine. Parent Project.</description>

	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>
	
		
	<organization>
		<name>bbv Software Services AG</name>
		<url>http://www.bbv.ch</url>
	</organization>
	

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<junit.version>4.8.2</junit.version>
		<java.source.version>1.6</java.source.version>
		<slf4j.version>1.6.1</slf4j.version>
		<logback.version>0.9.29</logback.version>
		<guava.version>r09</guava.version>
		<cglib.version>2.2.2</cglib.version>
		<mockito.version>1.8.4</mockito.version>
	</properties>

	<modules>
		<module>fsm-api</module>
		<module>fsm-impl</module>
	</modules>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>${guava.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>cglib</groupId>
				<artifactId>cglib</artifactId>
				<version>${cglib.version}</version>
			</dependency>
			
			<!-- Test -->
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>${logback.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
				<version>${mockito.version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<developers>
		<developer>
			<id>kuu</id>
			<name>Ueli Kurmann</name>
			<email>ueli.kurmann@bbv.ch</email>
			<organization>bbv Software Services AG</organization>
			<organizationUrl>http://www.bbv.ch</organizationUrl>
			<roles>
				<role>Developer</role>
			</roles>
		</developer>
	</developers>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.1</version>
					<configuration>
						<source>${java.source.version}</source>
						<target>${java.source.version}</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<version>2.5.1</version>
					<configuration>
						<formats>
							<format>xml</format>
						</formats>
					</configuration>
					<executions>
						<execution>
							<phase>package</phase>
							<goals>
								<goal>cobertura</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-checkstyle-plugin</artifactId>
					<version>2.7</version>
					<executions>
						<execution>
							<phase>package</phase>
							<goals>
								<goal>checkstyle</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>


	<profiles>
		<profile>
			<id>sonatype_release</id>
			<build>
				<plugins>
						<plugin>
							  <groupId>org.apache.maven.plugins</groupId>
							  <artifactId>maven-source-plugin</artifactId>
							  <executions>
							    <execution>
							      <id>attach-sources</id>
							      <goals>
							        <goal>jar</goal>
							      </goals>
							    </execution>
							  </executions>
						</plugin>			
						<plugin>
							  <groupId>org.apache.maven.plugins</groupId>
							  <artifactId>maven-javadoc-plugin</artifactId>
							  <executions>
							    <execution>
							      <id>attach-javadocs</id>
							      <goals>
							        <goal>jar</goal>
							      </goals>
							    </execution>
							  </executions>
						</plugin>					
						<plugin>
				        <groupId>org.apache.maven.plugins</groupId>
				        <artifactId>maven-gpg-plugin</artifactId>
				        <version>1.4</version>
				        <executions>
				          <execution>
				            <id>sign-artifacts</id>
				            <phase>verify</phase>
				            <goals>
				              <goal>sign</goal>
				            </goals>
				          </execution>
				        </executions>
		      		</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	


	<distributionManagement>
		<repository>
			<id>nexus-bbv</id>
			<name>Nexus Staging Repo</name>
			<url>http://javabuild.bbv.ch/nexus/content/repositories/snapshots</url>
		</repository>
	</distributionManagement>

	<scm>
		<url>https://bbvfsm.googlecode.com/svn/tags/fsm-1.1.0</url>
		<connection>scm:svn:https://bbvfsm.googlecode.com/svn/tags/fsm-1.1.0</connection>
	</scm>
	<url>http://bbvfsm.googlecode.com</url>
</project>