<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>

<!-- 
	Copyright 2022 INRIA, LIRMM, CNRS, Univ. Montpellier, INRAe
	
	Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
	You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
	
	Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and limitations under the License.
-->

	<groupId>fr.lirmm.graphik</groupId>
	<artifactId>view-parser</artifactId>
	<version>1.0.2</version>

	<name>view-parser</name>
	<url>https://gitlab.inria.fr/rules/view-parser</url>
	<description>
		The view parser is a parser for the vd format
		developed by the INRIA Boreal Team
		This is to use a json document to describe how to integrate heterogeneous datasources.
		This work have been done during the development of the InteGraal software
	</description>

	<licenses>
		<license>
			<name>Apache License Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<developers>
		<developer>
			<id>ftornil</id>
			<name>Florent Tornil</name>
			<email>florent.tornil@inria.fr</email>
			<roles>
				<role>Modeling</role>
				<role>Developer</role>
				<role>Testing</role>
				<role>Documentation</role>
			</roles>
			<timezone>1</timezone>
			<organization>INRIA</organization>
			<organizationUrl>http://www.inria.fr/</organizationUrl>
		</developer>
	</developers>
	
	<contributors>
		<contributor>
			<name>Federico Ulliana</name>
			<email>federico.ulliana@inria.fr</email>
			<roles>
				<role>Modeling</role>
				<role>Supervision</role>
			</roles>
			<timezone>1</timezone>
			<organization>INRIA</organization>
			<organizationUrl>http://www.inria.fr/</organizationUrl>
		</contributor>
		<contributor>
			<name>Michel Leclere</name>
			<email>leclere@lirmm.fr</email>
			<roles>
				<role>Documentation</role>
			</roles>
			<timezone>1</timezone>
			<organization>LIRMM</organization>
			<organizationUrl>http://www.lirmm.fr/</organizationUrl>
		</contributor>
	</contributors>
	
	<scm>
		<url>https://gitlab.inria.fr/rules/view-parser.git</url>
	</scm>
  
  	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	
	<distributionManagement>
	    <snapshotRepository>
	    	<id>ossrh</id>
		    <name>Sonatype Nexus Snapshots</name>
		    <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>
	
	<dependencies>
		<!-- JSON Parser Implementation -->
		<dependency>
		    <groupId>org.glassfish</groupId>
		    <artifactId>javax.json</artifactId>
		    <version>1.1.4</version>
		</dependency>
		
		<!-- JSON Schema validator -->
		<dependency>
		    <groupId>com.networknt</groupId>
		    <artifactId>json-schema-validator</artifactId>
		    <version>1.0.86</version>
		    <exclusions>
		        <exclusion>
		            <groupId>org.apache.commons</groupId>
		            <artifactId>commons-lang3</artifactId>
		        </exclusion>
		    </exclusions>
		</dependency>

		<!-- Test -->
		<dependency>
		    <groupId>org.junit.jupiter</groupId>
		    <artifactId>junit-jupiter-api</artifactId>
		    <version>5.9.2</version>
		    <scope>test</scope>
		</dependency>

		<!-- Logging -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>2.0.13</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.5.4</version>
		</dependency>
	</dependencies>
	
	<build>
		<plugins>
			<plugin>
		    	<groupId>org.apache.maven.plugins</groupId>
		      	<artifactId>maven-compiler-plugin</artifactId>
		      	<version>3.10.1</version>
		      	<configuration>
		        	<release>11</release>
		      	</configuration>
			</plugin>

			<!-- Maven Assembly Plugin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>3.4.2</version>
				<configuration>
					<finalName>vd-parser</finalName>
					<!-- get all project dependencies -->
					<descriptorRefs>
						<descriptorRef>
							jar-with-dependencies
						</descriptorRef>
					</descriptorRefs>
					<!-- MainClass in manifest make a executable jar -->
					<archive>
						<manifest>
							<mainClass>fr.inria.integraal.view_parser.example.Example</mainClass>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
						</manifest>
					</archive>
				</configuration>
				<executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M7</version>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.8</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>3.19.0</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>3.0.5</version>
            </plugin>
		</plugins>
		
		<resources>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
		</resources>
	</build>
	
	<profiles>
		<profile>
			<id>maven-central-release</id>
			<build>
				<plugins>
					<!-- Maven central publish -->
					<plugin>
				    	<groupId>org.sonatype.plugins</groupId>
				        <artifactId>nexus-staging-maven-plugin</artifactId>
				        <version>1.6.13</version>
				        <extensions>true</extensions>
				        <configuration>
					        <serverId>ossrh</serverId>
					        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
					        <autoReleaseAfterClose>false</autoReleaseAfterClose>
				        </configuration>
				    </plugin>
				    
				    <!-- Attach source jar -->
				    <plugin>
				    	<groupId>org.apache.maven.plugins</groupId>
				      	<artifactId>maven-source-plugin</artifactId>
				      	<version>3.3.0</version>
				      	<executions>
				        	<execution>
					          	<id>attach-sources</id>
					          	<goals>
					            	<goal>jar-no-fork</goal>
					          	</goals>
				        	</execution>
				      	</executions>
				    </plugin>
				    
				    <!-- Attach javadoc jar -->
				    <plugin>
				      	<groupId>org.apache.maven.plugins</groupId>
				      	<artifactId>maven-javadoc-plugin</artifactId>
				      	<version>3.6.2</version>
				      	<executions>
				        	<execution>
				          		<id>attach-javadocs</id>
				          		<goals>
				            		<goal>jar</goal>
				          		</goals>
				        	</execution>
				      	</executions>
				    </plugin>
				    
				    <!-- GPG key validation -->
				    <plugin>
				      	<groupId>org.apache.maven.plugins</groupId>
				      	<artifactId>maven-gpg-plugin</artifactId>
				      	<version>3.1.0</version>
				      	<executions>
				        	<execution>
					          	<id>sign-artifacts</id>
					         	<phase>verify</phase>
					          	<goals>
				           			<goal>sign</goal>
				          		</goals>
				        	</execution>
				      	</executions>
				    </plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>