All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.pom.xml Maven / Gradle / Ivy

<?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>${groupId}</groupId>
	<artifactId>${artifactId}</artifactId>
	<version>${version}</version>
	<packaging>jar</packaging>

	<name>${artifactId}</name>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<versions.fitnesse>20161106</versions.fitnesse>
		<versions.junit>4.12</versions.junit>
		<versions.freemarker>2.3.23</versions.freemarker>
        <versions.maven-classpath-plugin>1.9</versions.maven-classpath-plugin>
		<versions.maven-compiler-plugin>[3.6,)</versions.maven-compiler-plugin>
		<versions.fitnesse-git-plugin>1.1.1</versions.fitnesse-git-plugin>
		<versions.maven.exec>1.6.0</versions.maven.exec>
		<versions.maven-assembly>3.0.0</versions.maven-assembly>
		<standalone.classpath>FitNesse/fixtures</standalone.classpath>
		<port>8082</port>
        <suitePath>FitNesse.SuiteAcceptanceTests</suitePath>
	</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>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${versions.junit}</version>
		</dependency>
		<!-- Fitnesse -->
		<dependency>
			<groupId>org.fitnesse</groupId>
			<artifactId>fitnesse</artifactId>
			<version>${versions.fitnesse}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.freemarker</groupId>
			<artifactId>freemarker</artifactId>
			<version>${versions.freemarker}</version>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>fitnesse</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-compiler-plugin</artifactId>
						<version>${versions.maven-compiler-plugin}</version>
						<configuration>
							<source>1.7</source>
							<target>1.7</target>
							<encoding>${project.build.sourceEncoding}</encoding>
							<showDeprecation>true</showDeprecation>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>${versions.maven.exec}</version>
						<executions>
							<execution>
								<phase>test</phase>
								<goals>
									<goal>exec</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<executable>java</executable>
							<workingDirectory>FitNesse</workingDirectory>
							<arguments>
								<argument>-jar</argument>
								<argument>fitnesse-standalone.jar</argument>
								<argument>-p</argument>
								<argument>${port}</argument>
								<argument>-f</argument>
								<argument>plugins.properties</argument>
								<argument>-l</argument>
								<argument>logs</argument>
							</arguments>
						</configuration>
					</plugin>
					<plugin>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>[2.19,)</version>
						<configuration>
							<excludes>
								<!-- this test actually runs fitnesse tests therefore it will only
									be executed for integration-test goal -->
								<exclude>**/FitnesseSuiteTest.java</exclude>
							</excludes>
						</configuration>
					</plugin>
					<plugin>
						<artifactId>maven-failsafe-plugin</artifactId>
						<version>[2.19,)</version>
						<executions>
							<execution>
								<goals>
									<goal>integration-test</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<!-- this test actually runs fitnesse tests -->
							<test>FitnesseSuiteTest</test>
							<systemPropertyVariables>
								<fitnesseSuiteToRun>${suitePath}</fitnesseSuiteToRun>
							</systemPropertyVariables>
							<properties>
								<property>
									<name>listener</name>
									<value>com.sitture.JUnitXMLPerPageListener,com.sitture.ProgressLoggerListener</value>
								</property>
							</properties>
							<!-- Our listener will create XML failsafe should not, or all tests
								are reported twice -->
							<disableXmlReport>true</disableXmlReport>
						</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}/FitNesse</outputDirectory>
								</configuration>
							</execution>
							<execution>
								<id>copy-plugins</id>
								<phase>generate-resources</phase>
								<goals>
									<goal>copy</goal>
								</goals>
								<configuration>
									<artifactItems>
										<artifactItem>
											<groupId>org.fitnesse.plugins</groupId>
											<artifactId>maven-classpath-plugin</artifactId>
											<version>${versions.maven-classpath-plugin}</version>
											<classifier>jar-with-dependencies</classifier>
											<overWrite>true</overWrite>
										</artifactItem>
										<artifactItem>
											<groupId>org.fitnesse.plugins</groupId>
											<artifactId>fitnesse-git-plugin</artifactId>
											<version>${versions.fitnesse-git-plugin}</version>
											<classifier>all</classifier>
											<overWrite>true</overWrite>
										</artifactItem>
									</artifactItems>
									<outputDirectory>${project.basedir}/FitNesse/plugins</outputDirectory>
								</configuration>
							</execution>
							<execution>
								<id>copy-dependencies-to-wiki-fixtures</id>
								<phase>package</phase>
								<goals>
									<goal>copy-dependencies</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<version>${versions.maven-assembly}</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>
		</profile>
	</profiles>

</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy