<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.gcube</groupId>
		<artifactId>keycloak-d4science-spi-parent</artifactId>
		<version>1.0.1-SNAPSHOT</version>
	</parent>

	<artifactId>keycloak-d4science-bundle</artifactId>
	<packaging>ear</packaging>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.gcube.distribution</groupId>
				<artifactId>maven-portal-bom</artifactId>
				<version>3.6.0</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

    <scm>
        <connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.parent.artifactId}.git</connection>
        <developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.parent.artifactId}.git</developerConnection>
        <url>https://code-repo.d4science.org/gCubeSystem/${project.parent.artifactId}</url>
    </scm>

	<dependencies>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>avatar-importer</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>avatar-realm-resource</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>avatar-storage</artifactId>
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>delete-account</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>event-listener-provider</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>identity-provider-mapper</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>ldap-storage-mapper</artifactId>
			<version>${project.version}</version>
		</dependency>
		<!-- This should be declared since in the BOM is declared as provided -->
		<dependency>
			<groupId>com.googlecode.json-simple</groupId>
			<artifactId>json-simple</artifactId>
			<scope>runtime</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<version>3.0.1</version>
				<configuration>
					<defaultLibBundleDir>lib</defaultLibBundleDir>
					<modules>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>avatar-importer</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>avatar-importer.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>avatar-realm-resource</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>avatar-realm-resource.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>delete-account</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>delete-account.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>event-listener-provider</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>event-listener-provider.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>identity-provider-mapper</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>identity-provider-mapper.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
						<jarModule>
							<groupId>org.gcube</groupId>
							<artifactId>ldap-storage-mapper</artifactId>
							<includeInApplicationXml>true</includeInApplicationXml>
							<bundleFileName>ldap-storage-mapper.jar</bundleFileName>
							<bundleDir>/</bundleDir>
						</jarModule>
					</modules>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>