source:http://blog.xebia.com/fitnesse-and-dependency-management-with-maven/
<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>nl.com.devnl</groupId>
<artifactId>AccountStatusFitnesse</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Account Status Fitnesse</name>
<distributionManagement>
<!-- Publish the versioned releases here -->
<repository>
<id>NexusRepoManager</id>
<name>Continuous Delivery Blog Nexus Releases</name>
<url>https://localhost:8081/nexus/content/repositories/releases</url>
</repository>
<!-- Publish the versioned snapshots here -->
<snapshotRepository>
<id>NexusRepoManager</id>
<name>Continuous Delivery Blog Nexus Snapshots</name>
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>NexusRepoManager</id>
<name>Continuous Delivery Blog Nexus</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
<dependencies>
<dependency>
<groupId>org.fitnesse</groupId>
<artifactId>fitnesse</artifactId>
<version>20151230</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>fitnesse</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>start-fitnesse</id>
<phase>test</phase>
<configuration>
<tasks>
<echo taskname="fitnesse" message="Starting FitNesse..." />
<java classname="fitnesseMain.FitNesseMain" classpathref="maven.runtime.classpath" fork="true">
<arg line="-p 8000" />
<arg line="-d ." />
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.fitnesse.plugins</groupId>
<artifactId>maven-classpath-plugin</artifactId>
<version>1.9</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
package nl.com.devnl.fitnesse;
import org.junit.runner.RunWith;
import fitnesse.junit.FitNesseRunner;
@RunWith(FitNesseRunner.class)
@FitNesseRunner.Suite("FitNesse.UserGuide.TwoMinuteExample")
@FitNesseRunner.FitnesseDir("../fitnesse")
@FitNesseRunner.OutputDir("target/fitnesse-results")
public class FitnesseTest {
}
<profile>
<id>fitnesse-integration</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
</executions>
<configuration>
<test>FitnesseTest</test>
<disableXmlReport>true</disableXmlReport>
<systemPropertyVariables>
<TEST_SYSTEM>slim</TEST_SYSTEM>
<SLIM_PORT>0</SLIM_PORT>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.fitnesse.plugins</groupId>
<artifactId>maven-classpath-plugin</artifactId>
<version>1.9</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
**/*.zip
FitNesseRoot/files/*.*
FitNesseRoot/RecentChanges/*.*