<?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-POM: OGEMA Apps master pom with project-wide settings -->
    <parent>
        <groupId>org.ogema.tools</groupId>
        <artifactId>ogema-tools</artifactId>
        <version>2.2.0</version>
    </parent>

    <groupId>org.ogema.widgets</groupId>
    <artifactId>ogema-widgets</artifactId>
    <version>2.2.0</version>

    <packaging>pom</packaging>
    <name>OGEMA Tools :: Widgets</name>
    
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>

    <scm>
		<connection>scm:git:ssh://ogema-source.net:fhg-alliance-internal</connection>
		<developerConnection>scm:git:ssh://git@ogema-source.net:fhg-alliance-internal</developerConnection>
		<url>scm:git:ssh://ogema-source.net:fhg-alliance-internal</url>
		<tag>ogema-widgets-2.2.0</tag>
	</scm>

	    <!-- Sub-projects: OGEMA Applications (in alphabetical order) -->
    <modules>
    	<module>icon-service-impl</module>
		<module>lazy-pages-service</module>
		<module>messaging</module>
		<module>name-service-impl</module>
		<module>ogema-gui-api</module>
		<module>ogema-js-bundle</module>
	    <module>simulations</module>
		<!-- must not be added here, apps-master dependency cannot be resolved on a fresh system -->
<!--	<module>templates</module> -->
		<module>timeseries-tools</module>
	 	<module>util-extended</module>
	 	<module>widget-apps</module> 
		<module>widget-collection</module>
	 	<module>widget-exam-base</module>
		<module>widget-experimental</module>
		<module>widget-extended</module>
		<module>widget-models-proposed</module>
	    <module>widget-tools</module>
        <!-- deprecated -->       
        <!-- <module>widget-util-collection</module> -->
  </modules>

    <profiles>
 <!-- disable doclint (strict Javadoc checks); alternatively, use command line argument -Dadditionalparam=-Xdoclint:none -->
 <!--
 	    <profile>
	        <id>disable-java8-doclint</id>
	        <activation>
	            <jdk>[1.8,)</jdk>
	        </activation>
	        <properties>
	            <additionalparam>-Xdoclint:none</additionalparam>
	        </properties>
	    </profile>
-->
		<profile>
            <id>java7</id><!-- java versions < 9 -->
            <activation>
                <!--
                note: not using <jdk> due to a bug in our ancient ci server
                    <jdk>[1.7,1.9)</jdk>
                -->
                <file>
                    <missing>${java.home}/jmods</missing>
                </file>
            </activation>
            <properties>
                <surefire-args>
                    -ea
                </surefire-args>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <argLine>
                                ${surefire-args}
                            </argLine>
                            <trimStackTrace>false</trimStackTrace>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>java9</id><!-- java versions 9 and greater -->
            <activation>
                <!-- 
                note: not using <jdk> due to a bug in our ancient ci server
                    <jdk>[9,)</jdk>
                -->
                <file>
                    <exists>${java.home}/jmods</exists>
                </file>
            </activation>
            <properties>
                <surefire-args>
                    -ea
                    --illegal-access=warn
                    --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
                    --add-modules java.xml.bind,java.xml.ws.annotation
                </surefire-args>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <argLine>
                                ${surefire-args}
                            </argLine>
                            <trimStackTrace>false</trimStackTrace>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
	</profiles>
	<build>
		<pluginManagement>
        	<plugins>
	       		<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<configuration>
						<source>1.8</source>
						<target>1.8</target>
						<showDeprecation>true</showDeprecation>
						<showWarnings>true</showWarnings>
						<compilerArgs>
							<arg>-Xlint</arg>
						</compilerArgs>
					</configuration>
				</plugin>
        	</plugins>
        </pluginManagement>
    </build>

	<dependencyManagement>
		<dependencies>
			<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>ogema-gui-api</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>ogema-js-bundle</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>widget-collection</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>widget-extended</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>widget-experimental</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>util-extended</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.tools</groupId>
	            <artifactId>standard-patterns</artifactId>
	            <version>2.2.0</version>
        	</dependency>
        	<dependency>
	            <groupId>org.ogema.widgets</groupId>
	            <artifactId>widget-exam-base</artifactId>
	            <version>2.2.0</version>
        	</dependency>
			<dependency>
				<groupId>org.json</groupId>
				<artifactId>json</artifactId>
				<version>20170516</version>
			</dependency>
			<dependency>
	        	<groupId>org.apache.felix</groupId>
	        	<artifactId>org.apache.felix.framework</artifactId>
	        	<version>5.6.10</version>
	        </dependency>
		</dependencies>
	</dependencyManagement>
</project>
