Permalink
Fetching contributors…
Cannot retrieve contributors at this time
542 lines (430 sloc) 15.8 KB
<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>
<groupId>com.technophobia.substeps</groupId>
<artifactId>substeps-core</artifactId>
<version>1.1.4-SNAPSHOT</version>
<packaging>jar</packaging>
<!-- for OSS hosting -->
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<name>SubSteps</name>
<organization>
<name>Technophobia Ltd</name>
<url>www.technophobia.com/</url>
</organization>
<licenses>
<license>
<name>LGPL 3.0 license</name>
<url>http://www.opensource.org/licenses/lgpl-3.0.html</url>
<distribution>manual</distribution>
</license>
</licenses>
<developers>
<developer>
<id>iantmoore</id>
<name>Ian Moore</name>
<organization>Technophobia</organization>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
<developer>
<id>rorygibson</id>
<name>Rory Gibson</name>
<organization>Technophobia</organization>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>davemoss</id>
<name>Dave Moss</name>
<organization>Technophobia</organization>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>stuartforbes</id>
<name>Stu Forbes</name>
<organization>Technophobia</organization>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>rickybarefield</id>
<name>Ricky Barefield</name>
<organization>Technophobia</organization>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>petergphillips</id>
<name>Peter Phillips</name>
<organization>Greenthistle.com</organization>
<roles>
<role>developer</role>
</roles>
</developer>
<developer>
<id>beercan1989</id>
<name>James Bacon</name>
<organization>G2G3 Digital</organization>
<url>https://github.com/beercan1989</url>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>Iain Rawson</name>
<roles>
<role>developer</role>
</roles>
</contributor>
</contributors>
<properties>
<api.version>1.1.3</api.version>
<substeps.maven.plugin.version>1.1.3-SNAPSHOT</substeps.maven.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<hamcrest.version>1.3</hamcrest.version>
<junit.version>4.11</junit.version>
<guava.version>10.0</guava.version>
<mockito.version>1.9.0-rc1</mockito.version>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<sonar.phase>verify</sonar.phase>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.jar>${basedir}/jacoco/jacocoagent.jar</sonar.jacoco.jar>
<sonar.jacoco.reportPath>${basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
<xstream.version>1.4.2</xstream.version>
<compileSource>1.5</compileSource>
<compileTarget>1.5</compileTarget>
<!-- THESE PROPERTIES NEED TO BE DEFINED IN AN ACTIVE PROFILE IN SETTINGS.XML
EG. <nexus.snapshot.artifacts>snapshots</nexus.snapshot.artifacts> <nexus.release.artifacts>releases</nexus.release.artifacts>
<nexus.snapshot.url>http://someserver.com/${nexus.snapshot.artifacts}/</nexus.snapshot.url>
<nexus.releases.url>http://someserver.com/${nexus.release.artifacts}/</nexus.releases.url>
<substeps-core.scm>scm:git:git://github.com/${your username}/substeps-core.git</substeps-core.scm>
<substeps-core.scm.url></substeps-core.scm.url> -->
</properties>
<dependencies>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.technophobia.substeps</groupId>
<artifactId>substeps-core-api</artifactId>
<version>${api.version}</version>
</dependency>
<dependency>
<groupId>com.technophobia.substeps</groupId>
<artifactId>substeps-core-api</artifactId>
<version>${api.version}</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
<exclusions>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>${xstream.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<!-- <inherit>true</inherit>-->
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
</configuration>
</plugin>
<!-- need to exclude this test as it is just used for manual testing,
the actual tests are covered by the maven plugin above -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/AllFeaturesJunit.java</exclude>
<exclude>**/BugFeaturesJunit.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<outputDirectory>${basedir}/target/newsite</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<outputDirectory>${basedir}/target/newsite</outputDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>ccProfile</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-g</compilerArgument>
<source>${compileSource}</source>
<target>${compileTarget}</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<argLine>-javaagent:${sonar.jacoco.jar}=destfile=${sonar.jacoco.reportPath}</argLine>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>selfTestReport</id>
<activation>
<activeByDefault>false</activeByDefault> <!-- RB TODO This can be enabled once a stable version has been released -->
</activation>
<build>
<plugins>
<plugin>
<groupId>com.technophobia.substeps</groupId>
<artifactId>substeps-maven-plugin</artifactId>
<version>${substeps.maven.plugin.version}</version>
<executions>
<execution>
<id>Tests to generate a report</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run-features</goal>
</goals>
<configuration>
<executionConfigs>
<executionConfig>
<description>Runs tests which generate a report</description>
<tags>@testPage</tags>
<featureFile>${basedir}/src/test/resources/report_test/features</featureFile>
<subStepsFileName>${basedir}/src/test/resources/report_test/substeps</subStepsFileName>
<stepImplementationClassNames>
<param>com.technophobia.webdriver.substeps.impl.BaseWebdriverSubStepImplementations</param>
</stepImplementationClassNames>
</executionConfig>
</executionConfigs>
<executionReportBuilder implementation="com.technophobia.substeps.report.DefaultExecutionReportBuilder">
<outputDirectory>${project.build.testOutputDirectory}/web</outputDirectory>
<reportTitle>Substeps Report - ${project.version} </reportTitle>
</executionReportBuilder>
</configuration>
</execution>
<execution>
<id>SubSteps Test</id>
<phase>integration-test</phase>
<goals>
<goal>run-features</goal>
</goals>
<configuration>
<executionConfigs>
<executionConfig>
<description>Test the report generation</description>
<tags>@testReport</tags>
<featureFile>${basedir}/src/test/resources/report_test/features</featureFile>
<subStepsFileName>${basedir}/src/test/resources/report_test/substeps</subStepsFileName>
<stepImplementationClassNames>
<param>com.technophobia.webdriver.substeps.impl.BaseWebdriverSubStepImplementations</param>
</stepImplementationClassNames>
</executionConfig>
</executionConfigs>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<!-- Following dependencies added to self test the report -->
<dependency>
<groupId>com.technophobia.substeps</groupId>
<artifactId>webdriver-substeps</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>
</profile>
<!-- A profile used by default for internal dev, using the repos set up in proeprties defined above, rather than the OSS nexus repos -->
<profile>
<id>internalDev</id>
<distributionManagement>
<snapshotRepository>
<id>${nexus.snapshot.artifacts}</id>
<name>${nexus.snapshot.artifacts}</name>
<url>${nexus.snapshot.url}</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
<repository>
<id>${nexus.release.artifacts}</id>
<name>${nexus.release.artifacts}</name>
<url>${nexus.releases.url}</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<scm>
<connection>${substeps-core.scm}</connection>
<developerConnection>${substeps-core.scm}</developerConnection>
<url>${substeps-core.scm.url}</url>
<tag>HEAD</tag>
</scm>
</project>