<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>dlgp-parser</artifactId>
	<version>1.2.4</version>
	
	<name>dlgp-parser</name>
	<url>https://gitlab.inria.fr/rules/dlgp-parser</url>
	<description>
		The Dlgp parser is a parser for the Dlgp format developped by the INRIA Boreal Team
		This is to use a Dlgp file to describe a knowledge base.
		This work have been done during the developement 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>Developper</role>
				<role>Testing</role>
			</roles>
			<timezone>1</timezone>
			<organization>INRIA</organization>
			<organizationUrl>http://www.inria.fr/</organizationUrl>
		</developer>
	</developers>
	
	<scm>
		<url>https://gitlab.inria.fr/rules/dlgp-parser.git</url>
	</scm>
	
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.release>11</maven.compiler.release>
	</properties>

	<dependencies>
		<dependency>
			<groupId>com.googlecode.json-simple</groupId>
			<artifactId>json-simple</artifactId>
			<version>1.1.1</version>
		</dependency>
		<dependency>
			<groupId>fr.lirmm.graphik</groupId>
			<artifactId>view-parser</artifactId>
			<version>1.0.0</version>
		</dependency>
	</dependencies>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.0.0-M5</version>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>javacc-maven-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<id>process-javacc</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>javacc</goal>
						</goals>
						<configuration>
							<sourceDirectory>src/main/java</sourceDirectory>
							<includes>
								<include>fr/lirmm/graphik/dlgp3/parser/DLGP2Parser.jj</include>
							</includes>
							<outputDirectory>target/generated-sources/javacc</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	
	<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>
	<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>
