Created
July 29, 2017 07:56
-
-
Save roydekleijn/4c596dc5050c7c25f0045d87c22ea5ed to your computer and use it in GitHub Desktop.
HSAC project base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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>sample-hsac-project</groupId> | |
<artifactId>hsac-project</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<description>A FitNesse test project, based on hsac-fitnesse-fixtures</description> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<fitnesse.version>20161106</fitnesse.version> | |
<hsac.fixtures.version>3.0.0</hsac.fixtures.version> | |
<!-- classpath that Fitnesse uses when not starting from IDE/maven --> | |
<standalone.classpath>wiki/fixtures</standalone.classpath> | |
<fitnesse.port>9090</fitnesse.port> | |
<extraFailsafeListeners></extraFailsafeListeners> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<!-- commons collections with important security fix (to overwrite Velocity's) --> | |
<dependency> | |
<groupId>commons-collections</groupId> | |
<artifactId>commons-collections</artifactId> | |
<version>3.2.2</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.fitnesse</groupId> | |
<artifactId>fitnesse</artifactId> | |
<version>${fitnesse.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>nl.hsac</groupId> | |
<artifactId>hsac-fitnesse-fixtures</artifactId> | |
<version>${hsac.fixtures.version}</version> | |
</dependency> | |
<!-- Testing --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.12</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<outputDirectory>${standalone.classpath}</outputDirectory> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.6.1</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<showDeprecation>true</showDeprecation> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<!-- On clean throw away old screenshots, pagesources and downloads stored by BrowserTest --> | |
<directory>wiki/FitNesseRoot/files/</directory> | |
<followSymlinks>false</followSymlinks> | |
<includes> | |
<include>screenshots/**</include> | |
<include>pagesources/**</include> | |
<include>downloads/**</include> | |
<include>galen-reports/**</include> | |
</includes> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.20</version> | |
<configuration> | |
<excludes> | |
<!-- this test actually runs fitnesse tests | |
therefore it will only be executed for | |
integration-test goal | |
--> | |
<exclude>**/FixtureDebugTest.java</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.20</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<!-- this test actually runs fitnesse tests--> | |
<test>FixtureDebugTest</test> | |
<systemPropertyVariables> | |
<fitnesseSuiteToRun>${fitnesseSuiteToRun}</fitnesseSuiteToRun> | |
<seleniumDefaultTimeout>${seleniumDefaultTimeout}</seleniumDefaultTimeout> | |
<seleniumGridUrl>${seleniumGridUrl}</seleniumGridUrl> | |
<seleniumBrowser>${seleniumBrowser}</seleniumBrowser> | |
<seleniumDriverClass>${seleniumDriverClass}</seleniumDriverClass> | |
<seleniumCapabilities>${seleniumCapabilities}</seleniumCapabilities> | |
<seleniumJsonCapabilities>${seleniumJsonCapabilities}</seleniumJsonCapabilities> | |
</systemPropertyVariables> | |
<properties> | |
<property> | |
<name>listener</name> | |
<value> | |
nl.hsac.fitnesse.junit.JUnitXMLPerPageListener,nl.hsac.fitnesse.junit.ProgressLoggerListener${extraFailsafeListeners} | |
</value> | |
</property> | |
</properties> | |
<!-- Our listener will create XML failsafe should not, or all tests are reported twice --> | |
<disableXmlReport>true</disableXmlReport> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.maven.surefire</groupId> | |
<artifactId>surefire-junit47</artifactId> | |
<version>2.20</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.5.0</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>exec</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<executable>java</executable> | |
<workingDirectory>wiki</workingDirectory> | |
<arguments> | |
<argument>-jar</argument> | |
<argument>fitnesse-standalone.jar</argument> | |
<argument>-p</argument> | |
<argument>${fitnesse.port}</argument> | |
</arguments> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!-- Use dependency:copy-dependencies to copy all jar from dependencies to ${standalone.classpath}, | |
where classes from this project end up also, so that all fixtures and | |
dependencies are available to Fitnesse without need to have Maven to run tests. | |
--> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<includes>**/*</includes> | |
<excludes>META-INF,META-INF/**</excludes> | |
<includeScope>runtime</includeScope> | |
<excludeArtifactIds>fitnesse,junit</excludeArtifactIds> | |
<outputDirectory>${standalone.classpath}</outputDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<id>copy-fitnesse-standalone</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.fitnesse</groupId> | |
<artifactId>fitnesse</artifactId> | |
<classifier>standalone</classifier> | |
<overWrite>true</overWrite> | |
</artifactItem> | |
</artifactItems> | |
<stripVersion>true</stripVersion> | |
<outputDirectory>${project.basedir}/wiki</outputDirectory> | |
</configuration> | |
</execution> | |
<execution> | |
<id>copy-dependencies-to-wiki-fixtures</id> | |
<phase>package</phase> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>com.github.webdriverextensions</groupId> | |
<artifactId>webdriverextensions-maven-plugin</artifactId> | |
<version>3.1.2</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>install-drivers</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<installationDirectory>${basedir}/wiki/webdrivers</installationDirectory> | |
<drivers> | |
<driver> | |
<name>internetexplorerdriver</name> | |
<platform>windows</platform> | |
<bit>32</bit> | |
<version>3.4.0</version> | |
</driver> | |
<driver> | |
<name>edgedriver</name> | |
<platform>windows</platform> | |
<bit>64</bit> | |
<version>4.15063</version> | |
</driver> | |
<driver> | |
<name>chromedriver</name> | |
<platform>windows</platform> | |
<bit>32</bit> | |
<version>2.30</version> | |
</driver> | |
<driver> | |
<name>chromedriver</name> | |
<platform>mac</platform> | |
<bit>64</bit> | |
<version>2.30</version> | |
</driver> | |
<driver> | |
<name>phantomjs</name> | |
<platform>windows</platform> | |
<bit>64</bit> | |
<version>2.1.1</version> | |
</driver> | |
<driver> | |
<name>phantomjs</name> | |
<platform>mac</platform> | |
<bit>64</bit> | |
<version>2.1.1</version> | |
</driver> | |
<driver> | |
<name>geckodriver</name> | |
<platform>windows</platform> | |
<bit>32</bit> | |
<version>0.18.0</version> | |
</driver> | |
<driver> | |
<name>geckodriver</name> | |
<platform>mac</platform> | |
<bit>64</bit> | |
<version>0.18.0</version> | |
</driver> | |
</drivers> | |
<skip>${webdriver.download.skip}</skip> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!-- Use dependency:copy-dependencies to copy all jar from dependencies to ${standalone.classpath}, | |
where classes from this project end up also, so that all fixtures and | |
dependencies are available to Fitnesse without need to have Maven to run tests. | |
--> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<includes>**/*</includes> | |
<excludes>META-INF,META-INF/**</excludes> | |
<includeScope>runtime</includeScope> | |
<excludeArtifactIds>fitnesse,junit</excludeArtifactIds> | |
<outputDirectory>${standalone.classpath}</outputDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<id>copy-fitnesse-standalone</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.fitnesse</groupId> | |
<artifactId>fitnesse</artifactId> | |
<classifier>standalone</classifier> | |
<overWrite>true</overWrite> | |
</artifactItem> | |
</artifactItems> | |
<stripVersion>true</stripVersion> | |
<outputDirectory>${project.basedir}/wiki</outputDirectory> | |
</configuration> | |
</execution> | |
<execution> | |
<id>copy-dependencies-to-wiki-fixtures</id> | |
<phase>package</phase> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.portals.jetspeed-2</groupId> | |
<artifactId>jetspeed-unpack-maven-plugin</artifactId> | |
<version>2.3.1</version> | |
<executions> | |
<execution> | |
<id>copy-hsac-baseline</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>unpack</goal> | |
</goals> | |
<configuration> | |
<unpack> | |
<artifact>nl.hsac:hsac-fitnesse-fixtures:zip</artifact> | |
<targetDirectory>${project.basedir}/wiki</targetDirectory> | |
<overwrite>false</overwrite> | |
<resources> | |
<resource> | |
<exclude>fixtures/nl/**,fixtures/templates/**</exclude> | |
</resource> | |
</resources> | |
</unpack> | |
</configuration> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>nl.hsac</groupId> | |
<artifactId>hsac-fitnesse-fixtures</artifactId> | |
<version>${hsac.fixtures.version}</version> | |
<classifier>standalone</classifier> | |
<type>zip</type> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<descriptors> | |
<descriptor>src/assembly/standalone.xml</descriptor> | |
</descriptors> | |
</configuration> | |
<executions> | |
<execution> | |
<id>create-standalone-zip</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>mac</id> | |
<activation> | |
<os> | |
<family>mac</family> | |
</os> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.5.0</version> | |
<executions> | |
<execution> | |
<id>make-webdrivers-executable</id> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>exec</goal> | |
</goals> | |
<configuration> | |
<executable>/bin/bash</executable> | |
<arguments> | |
<argument>-c</argument> | |
<argument>chmod +x ${project.basedir}/wiki/webdrivers/*</argument> | |
</arguments> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>teamCity</id> | |
<properties> | |
<extraFailsafeListeners>,nl.hsac.fitnesse.junit.JUnitTeamcityReporter</extraFailsafeListeners> | |
</properties> | |
</profile> | |
<profile> | |
<id>delete-hsac-fitnesse-fixtures</id> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>wiki</directory> | |
<followSymlinks>false</followSymlinks> | |
<includes> | |
<include>plugins.properties</include> | |
<include>plugins/**</include> | |
<include>webdrivers/**</include> | |
<include>FitNesseRoot/.gitattributes</include> | |
<include>FitNesseRoot/Hsac*.wiki</include> | |
<include>FitNesseRoot/Hsac*/**</include> | |
</includes> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment