<?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>
    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>
    <groupId>org.bidib.jbidib</groupId>
    <artifactId>jbidib-parent</artifactId>
    <version>1.6.0</version>
    <packaging>pom</packaging>
    <name>jBiDiB :: Parent</name>
    <description>jBiDiB Parent POM</description>
    <url>http://sourceforge.net/projects/jbidibc/</url>
    <licenses>
        <license>
            <name>GNU General Purpose License Version 3.0</name>
            <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>melior</id>
            <name>Andre Schenk</name>
            <roles>
                <role>lead</role>
            </roles>
        </developer>
        <developer>
            <id>akuhtz</id>
            <name>Andreas Kuhtz</name>
            <roles>
                <role>developer</role>
            </roles>
        </developer>
    </developers>
    <prerequisites>
        <maven>3.0.4</maven>
    </prerequisites>
    <scm>
        <connection>scm:svn:http://svn.code.sf.net/p/jbidibc/code/tags/1.6.0</connection>
        <developerConnection>scm:svn:https://svn.code.sf.net/p/jbidibc/code/tags/1.6.0</developerConnection>
        <url>scm:svn:https://svn.code.sf.net/p/jbidibc/code/tags/1.6.0</url>
    </scm>
    <properties>
        <slf4j-version>1.7.7</slf4j-version>
        <logback-version>1.1.2</logback-version>
        <testng-version>6.8.8</testng-version>
        <commons-lang-version>2.6</commons-lang-version>
        <commons-io-version>2.4</commons-io-version>
        <!--saxon-version>9.5.1-1</saxon-version-->
	<xalan-version>2.7.1</xalan-version>
        <xmlunit-version>1.5</xmlunit-version>
		<junit-version>4.9</junit-version>
        <jcommander-version>1.32</jcommander-version>
        <jdepend-version>2.0-beta-2</jdepend-version>
        <sysout-over-slf4j-version>1.0.2</sysout-over-slf4j-version>
        <rxtxcomm-groupId>org.bidib.jbidib.org.qbang.rxtx</rxtxcomm-groupId>
        <rxtxcomm-version>2.2.1</rxtxcomm-version>
        <!-- unify the encoding for all the modules -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <jdk.version>1.7</jdk.version>
        <compiler.fork>1.7</compiler.fork>
        <gpg.useagent>true</gpg.useagent>
        <mockito-version>1.9.5</mockito-version>
		
	<maven.compiler.source>1.7</maven.compiler.source>
	<maven.compiler.target>1.7</maven.compiler.target>

    </properties>
    <modules>
        <module>jbidibc-rxtx-2.2</module>
        <module>jbidibc</module>
        <module>jbidibc-serial</module>
        <module>jbidibc-net</module>
        <module>jbidibc-exchange</module>
        <module>jbidibc-tools</module>
        <module>jbidibc-simulation</module>
        <module>jbidibc-assembly</module>
    </modules>
    <pluginRepositories>
        <pluginRepository>
            <id>maven-xml-formatter-plugin</id>
            <name>Maven2 XML Formatter Plugin repository</name>
            <!--url>https://raw.github.com/benalexau/xml-formatter/master/releases/</url-->
            <url>https://raw.github.com/jamestyrrell/xml-formatter/master/releases/</url>
        </pluginRepository>
        <pluginRepository>
            <id>sonatype-snapshots</id>
            <name>Sonatype Snapshot Plugin repository</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </pluginRepository>
    </pluginRepositories>
    <dependencyManagement>
        <dependencies>
            <!--
            <dependency>
                <groupId>${rxtxcomm-groupId}</groupId>
                <artifactId>rxtxcomm</artifactId>
                <version>${rxtxcomm-version}</version>
            </dependency>
            -->
            <dependency>
                <groupId>org.bidib.jbidib</groupId>
                <artifactId>bidib-rxtx-binaries</artifactId>
                <version>2.2</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons-lang-version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io-version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j-version}</version>
            </dependency>
            <dependency>
                <groupId>org.bushe</groupId>
                <artifactId>eventbus</artifactId>
                <version>1.4</version>
            </dependency>
			<!--
            <dependency>
                <groupId>net.sf.saxon</groupId>
                <artifactId>Saxon-HE</artifactId>
                <version>${saxon-version}</version>
            </dependency>
			-->
			<dependency>
				<groupId>xalan</groupId>
				<artifactId>xalan</artifactId>
				<version>${xalan-version}</version>
			</dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback-version}</version>
            </dependency>
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>${testng-version}</version>
            </dependency>
            <dependency>
                <groupId>com.beust</groupId>
                <artifactId>jcommander</artifactId>
                <version>${jcommander-version}</version>
            </dependency>
            <dependency>
                <groupId>uk.org.lidalia</groupId>
                <artifactId>sysout-over-slf4j</artifactId>
                <version>${sysout-over-slf4j-version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>${mockito-version}</version>
            </dependency>
            <dependency>
                <groupId>xmlunit</groupId>
                <artifactId>xmlunit</artifactId>
                <version>${xmlunit-version}</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit-version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <version>2.9</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.7</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.8</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.8.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>1.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.9.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.4</version>
                    <configuration>
                        <useReleaseProfile>false</useReleaseProfile>
                        <!--arguments>-Psonatype-oss-release</arguments-->
                        <arguments>-Prelease-sign-artifacts -Dgpg.passphrase=${gpg.passphrase}</arguments>
                        <tagBase>https://svn.code.sf.net/p/jbidibc/code/tags</tagBase>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.technicalsoftwareconfigurationmanagement.maven-plugin</groupId>
                    <artifactId>tscm-maven-plugin</artifactId>
                    <!--version>2.1.0.20111230154050</version-->
                    <version>2.1.0.20120625205152</version>
                </plugin>
                <plugin>
                    <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                    <artifactId>maven-java-formatter-plugin</artifactId>
                    <version>0.4</version>
                </plugin>
                <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                                        <artifactId>maven-java-formatter-plugin</artifactId>
                                        <versionRange>[0.3.1,)</versionRange>
                                        <goals>
                                            <goal>format</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-enforcer-plugin</artifactId>
                                        <versionRange>[1.0,)</versionRange>
                                        <goals>
                                            <goal>enforce</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>jdepend-maven-plugin</artifactId>
                    <version>${jdepend-version}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>sonar-maven-plugin</artifactId>
                    <version>2.0</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
                    <encoding>UTF-8</encoding>
                    <showWarnings>true</showWarnings>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <configuration>
                    <downloadSources>true</downloadSources>
                </configuration>
            </plugin>
        </plugins>
    </build>
	
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
                <version>${jdepend-version}</version>
            </plugin>
		  <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-project-info-reports-plugin</artifactId>
			<version>2.7</version>
		  </plugin>
		  <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-pmd-plugin</artifactId>
			<version>3.0.1</version>
			<configuration>
			  <targetJdk>${maven.compiler.target}</targetJdk>
			</configuration>
		  </plugin>
		  <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>2.9.1</version>
			<configuration>
			  <notimestamp>true</notimestamp>
			</configuration>
			<reportSets>
			  <reportSet>
				<reports>
				  <report>javadoc</report>
				</reports>
			  </reportSet>
			  <reportSet>
				<inherited>false</inherited>
				<reports>
				  <report>aggregate</report>
				</reports>
			  </reportSet>
			</reportSets>
		  </plugin>
        </plugins>
    </reporting>
    <profiles>
        <profile>
            <id>format-java-sources</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <!-- format Java files -->
                    <plugin>
                        <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                        <artifactId>maven-java-formatter-plugin</artifactId>
                        <configuration>
                            <compilerSource>${maven.compiler.source}</compilerSource>
                            <compilerCompliance>${maven.compiler.target}</compilerCompliance>
                            <compilerTargetPlatform>${maven.compiler.target}</compilerTargetPlatform>
                            <lineEnding>LF</lineEnding>
                            <encoding>UTF-8</encoding>
                            <configFile>${project.basedir}/../etc/codestyle.xml</configFile>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>format</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <configuration>
                            <passphrase>${gpg.passphrase}</passphrase>
                            <useAgent>${gpg.useagent}</useAgent>
                        </configuration>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- format Java files -->
                    <plugin>
                        <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                        <artifactId>maven-java-formatter-plugin</artifactId>
                        <configuration>
                            <compilerSource>${maven.compiler.source}</compilerSource>
                            <compilerCompliance>${maven.compiler.target}</compilerCompliance>
                            <compilerTargetPlatform>${maven.compiler.target}</compilerTargetPlatform>
                            <lineEnding>LF</lineEnding>
                            <encoding>UTF-8</encoding>
                            <configFile>${project.basedir}/../etc/codestyle.xml</configFile>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>format</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>format-resources</id>
            <build>
                <plugins>
                    <!-- format XML files -->
                    <plugin>
                        <groupId>org.technicalsoftwareconfigurationmanagement.maven-plugin</groupId>
                        <artifactId>tscm-maven-plugin</artifactId>
                        <configuration>
                            <includes>
                                <include>**/*.xml</include>
                            </includes>
                            <excludes>
                                <exclude>**/main/xml/bidib/**</exclude>
                                <exclude>**/target/**</exclude>
                                <exclude>**/test-output/**</exclude>
                                <exclude>**/codestyle.xml</exclude>
                                <exclude>checkstyle-config.xml</exclude>
                                <exclude>**/OSGI-INF/**</exclude>
                                <exclude>**/.idea/**</exclude>
                            </excludes>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>test</phase>
                                <goals>
                                    <goal>xmlFormatter</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- format Java files -->
                    <plugin>
                        <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
                        <artifactId>maven-java-formatter-plugin</artifactId>
                        <configuration>
                            <compilerSource>${maven.compiler.source}</compilerSource>
                            <compilerCompliance>${maven.compiler.target}</compilerCompliance>
                            <compilerTargetPlatform>${maven.compiler.target}</compilerTargetPlatform>
                            <lineEnding>LF</lineEnding>
                            <encoding>UTF-8</encoding>
                            <configFile>${project.basedir}/../etc/codestyle.xml</configFile>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>format</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
