<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>ch.inftec</groupId>
		<artifactId>jb</artifactId>
		<version>1.1</version>
	</parent>
	
	<groupId>ch.inftec.test</groupId>
	<artifactId>hello-world</artifactId>
	<version>0.0.1-11</version>
	
	<name>Hello World</name>
	<description>Hello World App</description>
	
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	
	<build>
    	<plugins>
    		<!-- Failsafe plugin must be hooked up manually... -->
            <plugin>
            	<groupId>org.apache.maven.plugins</groupId>
            	<artifactId>maven-failsafe-plugin</artifactId>
            	<executions>
		        	<execution>
		            	<goals>
		              		<goal>integration-test</goal>
		              		<goal>verify</goal>
		            	</goals>
		          	</execution>
		    	</executions>
            </plugin>
        </plugins>
    </build>
    
    <profiles>
    	<profile>
    		<id>bamboo-setBuildVersion</id>
    		<activation>
    			<property>
    				<name>buildId</name>
    			</property>
    		</activation>
    		<build>
    			<plugins>
    				<plugin>
    					<groupId>org.codehaus.mojo</groupId>
						<artifactId>versions-maven-plugin</artifactId>
    					<configuration>
    						<newVersion>${project.version}-${buildId}</newVersion>
    						<generateBackupPoms>true</generateBackupPoms>
    					</configuration>
    				</plugin>
    			</plugins>
    		</build>
    	</profile>
    	<profile>
    		<id>bamboo-deployTest</id>
    		<activation>
    			<property>
    				<name>bambooDeploy</name>
    				<value>test</value>
    			</property>
    		</activation>
    		<distributionManagement>
    			<repository>
    				<id>local-repo</id>
    				<name>LocalRepo</name>
    				<url>file:${project.build.directory}/localRepo</url>
    			</repository>
    			<snapshotRepository>
    				<id>local-snapshot-repo</id>
    				<name>SnapshotRepo</name>
    				<url>file:${project.build.directory}/localSnapshotRepo</url>
    			</snapshotRepository>
    		</distributionManagement>
    	</profile>
    </profiles>
</project>