<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>

	<artifactId>utils</artifactId>
	<packaging>jar</packaging>

	<name>wfhcommon-utils</name>

	<description>Some helper classes i needed for several projects (Utils)</description>
	<url>https://github.com/bratkartoffel/wfhcommon</url>

	<parent>
		<groupId>se.wfh.libs.common</groupId>
		<artifactId>all</artifactId>
		<version>0.15</version>
	</parent>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>build-config-files</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<property name="compile_classpath" refid="maven.compile.classpath" />

								<java classname="se.wfh.tools.propertygenerator.Application"
									fork="true" failonerror="true" classpath="${compile_classpath}">
									<arg value="config" />
									<arg value="conf/junit.properties" />
									<arg
										value="src/test/java/se/wfh/libs/common/utils/junit/ConfigFields.java" />
									<arg value="se.wfh.libs.common.utils.junit" />
									<arg value="package" />
								</java>
								<java classname="se.wfh.tools.propertygenerator.Application"
									fork="true" failonerror="true" classpath="${compile_classpath}">
									<arg value="config" />
									<arg value="conf/wfh.properties" />
									<arg value="src/main/java/se/wfh/libs/common/utils/ConfigFields.java" />
									<arg value="se.wfh.libs.common.utils" />
									<arg value="public" />
								</java>
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>2.2.1</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.1.2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>de.ruedigermoeller</groupId>
			<artifactId>fst</artifactId>
			<version>2.01</version>
		</dependency>

		<dependency>
			<groupId>se.wfh.tools</groupId>
			<artifactId>propertygenerator</artifactId>
			<version>0.6.1</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
</project>
