<?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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<packaging>pom</packaging>
	<groupId>org.onap.ccsdk.parent</groupId>
	<artifactId>parent</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<name>Parent POMs</name>
	<url>http://wiki.onap.org</url>
	<description>Parent POMs to be used by clients of CCSDK</description>

	<properties>
		<!-- ONAP repositories -->
		<onap.nexus.host>nexus.onap.org</onap.nexus.host>
		<onap.nexus.port>443</onap.nexus.port>
		<onap.nexus.protocol>https</onap.nexus.protocol>
		<onap.nexus.public-url>${onap.nexus.protocol}://${onap.nexus.host}:${onap.nexus.port}/content/groups/public</onap.nexus.public-url>
		<onap.nexus.release-url>${onap.nexus.protocol}://${onap.nexus.host}:${onap.nexus.port}/content/repositories/releases</onap.nexus.release-url>
		<onap.nexus.snapshot-url>${onap.nexus.protocol}://${onap.nexus.host}:${onap.nexus.port}/content/repositories/snapshots</onap.nexus.snapshot-url>
		<onap.nexus.staging.server-id>ecomp-releases</onap.nexus.staging.server-id>
		<onap.nexus.staging.profile-id></onap.nexus.staging.profile-id>

	</properties>


	<repositories>
		<repository>
			<id>onap-public</id>
			<url>${onap.nexus.public-url}</url>
			<releases>
				<enabled>true</enabled>
				<!-- <updatePolicy>always</updatePolicy> <updatePolicy>never</updatePolicy>
					<updatePolicy>daily</updatePolicy> <updatePolicy>interval:in minutes</updatePolicy> -->
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
				<!-- <updatePolicy>always</updatePolicy> <updatePolicy>never</updatePolicy>
					<updatePolicy>daily</updatePolicy> <updatePolicy>interval:30</updatePolicy> -->
			</snapshots>
		</repository>
		<repository>
			<id>ecomp-release</id>
			<name>onap-repository-releases</name>
			<url>${onap.nexus.release-url}</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>ecomp-snapshot</id>
			<name>onap-repository-snapshots</name>
			<url>${onap.nexus.snapshot-url}</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>opendaylight-mirror</id>
			<name>opendaylight-mirror</name>
			<url>${opendaylight.nexus.public-url}</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>opendaylight-snapshot</id>
			<name>opendaylight-snapshot</name>
			<url>${opendaylight.nexus.snapshot-url}</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>

	</repositories>

	<distributionManagement>
		<repository>
			<id>ecomp-releases</id>
			<name>onap-repository-releases</name>
			<url>${onap.nexus.release-url}</url>
		</repository>
		<snapshotRepository>
			<id>ecomp-snapshots</id>
			<name>onap-repository-snapshots</name>
			<url>${onap.nexus.snapshot-url}</url>
		</snapshotRepository>
	</distributionManagement>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-site-plugin</artifactId>
					<version>3.6</version>
					<dependencies>
						<dependency>
							<groupId>org.apache.maven.wagon</groupId>
							<artifactId>wagon-webdav-jackrabbit</artifactId>
							<version>2.10</version>
						</dependency>
						<dependency>
							<groupId>org.apache.maven.doxia</groupId>
							<artifactId>doxia-core</artifactId>
							<version>1.7</version>
						</dependency>
						<dependency>
							<groupId>org.apache.maven.doxia</groupId>
							<artifactId>doxia-sink-api</artifactId>
							<version>1.7</version>
						</dependency>
						<dependency>
							<groupId>org.apache.maven.doxia</groupId>
							<artifactId>doxia-logging-api</artifactId>
							<version>1.7</version>
						</dependency>
					</dependencies>
					<executions>
						<execution>
							<id>attach-descriptor</id>
							<goals>
								<goal>attach-descriptor</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.5.1</version>
					<configuration>
						<source>${java.version.source}</source>
						<target>${java.version.target}</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>sonar-maven-plugin</artifactId>
					<version>3.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-source-plugin</artifactId>
					<version>2.1.1</version>
					<executions>
						<execution>
							<id>bundle-sources</id>
							<phase>package</phase>
							<goals>
								<!-- produce source artifact for main project sources -->
								<goal>jar-no-fork</goal>

								<!-- produce source artifact for project test sources -->
								<goal>test-jar-no-fork</goal>
							</goals>
						</execution>
					</executions>
				</plugin>


			</plugins>

		</pluginManagement>

		<plugins>
			<!-- license plugin -->

			<plugin>

				<groupId>org.codehaus.mojo</groupId>

				<artifactId>license-maven-plugin</artifactId>

				<version>1.10</version>

				<configuration>

					<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>

					<processStartTag>============LICENSE_START=======================================================</processStartTag>

					<processEndTag>============LICENSE_END=========================================================</processEndTag>

					<sectionDelimiter>================================================================================</sectionDelimiter>

					<licenseName>apache_v2</licenseName>

					<inceptionYear>2017</inceptionYear>

					<organizationName>AT&amp;T Intellectual Property. All rights
						reserved.</organizationName>

					<projectName>openECOMP : SDN-C</projectName>

					<canUpdateCopyright>true</canUpdateCopyright>

					<canUpdateDescription>true</canUpdateDescription>

					<canUpdateLicense>true</canUpdateLicense>

					<emptyLineAfterHeader>true</emptyLineAfterHeader>
					<excludes>
						<exclude>**/*.png</exclude>
						<exclude>**/*.json</exclude>
					</excludes>

				</configuration>

				<executions>

					<execution>

						<id>first</id>

						<goals>

							<goal>update-file-header</goal>

						</goals>

						<phase>process-sources</phase>

					</execution>

				</executions>

			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>properties-maven-plugin</artifactId>
				<version>1.0.0</version>
				<executions>
					<execution>
						<goals>
							<goal>set-system-properties</goal>
						</goals>
						<configuration>
							<properties>
								<property>
									<name>maven.wagon.http.ssl.allowall</name>
									<value>${ssl.allowall}</value>
								</property>
								<property>
									<name>maven.wagon.http.ssl.insecure</name>
									<value>${ssl.insecure}</value>
								</property>
							</properties>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>versions-maven-plugin</artifactId>
				<version>2.3</version>
			</plugin>
			<plugin>
				<artifactId>maven-scm-plugin</artifactId>
				<version>1.8.1</version>
				<configuration>
					<tag>${project.artifactId}-${project.version}</tag>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<organization>
		<name>ONAP</name>
	</organization>

	<modules>
		<module>odlparent-boron-sr3</module>
		<module>odlparent-carbon-sr1</module>
	</modules>
</project>