<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
  
    <groupId>it.unife.ml</groupId>
    <artifactId>bundle</artifactId>
    <version>3.0.0</version>
    <name>BUNDLE</name>
    <description>BUNDLE is a reasoner for probabilistic description logics.</description>
    <url>https://sites.google.com/a/unife.it/ml/bundle</url>
  
    <properties>
        <!--<project.groupId>it.unife.ml</project.groupId>-->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <!--<checkstyle.config.location>checkstyle.xml</checkstyle.config.location>-->
    </properties>
    
    <!--This is the SCM information, which needs to be here so we can use the
    maven release plugin -->
    <scm>
        <url>https://bitbucket.org/machinelearningunife/bundle/src</url>
        <connection>scm:git:ssh://git@bitbucket.org:machinelearningunife/bundle.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org:machinelearningunife/bundle.git</developerConnection>
        <tag>${project.version}</tag>
    </scm>
    
    <licenses>
        <license>
            <name>GNU General Public License (GPL)</name>
            <url>http://www.gnu.org/licenses/gpl.txt</url>
        </license>
    </licenses>
    
    <organization>
        <name>MachineLearning@Unife - Department of Mathematics and Computer Science, 
            Department of Engineering - University of Ferrara</name>
        <url>https://sites.google.com/a/unife.it/ml/</url>
    </organization>
    
    <developers>
        <developer>
            <id>giuseta</id>
            <name>Giuseppe Cota</name>
            <email>giuseppe.cota@unife.it</email>
            <organization>MachineLearning@Unife - Department of Engineering - University of Ferrara</organization>
            <organizationUrl>https://sites.google.com/a/unife.it/ml/</organizationUrl>
            <roles>
                <role>developer</role>
            </roles>
            <timezone>1</timezone>
        </developer>
        <developer>
            <id>rzese</id>
            <name>Riccardo Zese</name>
            <email>riccardo.zese@unife.it</email>
            <organization>MachineLearning@Unife - Department of Engineering - University of Ferrara</organization>
            <organizationUrl>https://sites.google.com/a/unife.it/ml/</organizationUrl>
            <roles>
                <role>developer</role>
            </roles>
            <timezone>1</timezone>
        </developer>
    </developers>

  
    <dependencies>
        
        <!-- JUnit. Used for testing -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>5.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-params</artifactId>
            <version>5.0.3</version>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
                      
        <!-- Common CLI. API for parsing command line options -->
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
            <version>1.4</version>
        </dependency>
            
        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.4.01</version>
        </dependency>

        <dependency>
            <groupId>it.unife.endif.ml</groupId>
            <artifactId>JavaBDD-OSGi</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>it.unife.endif.ml</groupId>
            <artifactId>unife-math</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <!-- ProbOWLAPI interface -->
        <dependency>
            <groupId>it.unife.endif.ml</groupId>
            <artifactId>prob-owlapi</artifactId>
            <version>0.2.1-SNAPSHOT</version>
        </dependency>
        
        <!--        <dependency>
            <groupId>org.apache.jena</groupId>
            <artifactId>jena-core</artifactId>
            <version>3.1.0</version>
            <type>jar</type>
            <exclusions>
                <exclusion>
                    <groupId>xerces</groupId>
                    <artifactId>xercesImpl</artifactId>
                </exclusion>
            </exclusions>
        </dependency>-->
        
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.7</version>
        </dependency>
        
        <!-- logging dependencies-->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.25</version>
        </dependency>
        
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
            <version>2.8.2</version>
        </dependency>
        
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.8.2</version>
        </dependency>
        
        <!-- Reasoner compatible with the OWLAPI -->
        <!-- Pellet reasoner -->
        <dependency>
            <groupId>com.clarkparsia.pellet</groupId>
            <artifactId>pellet-owlapi</artifactId>
            <version>2.5.0-dllearner</version>
            <type>jar</type>
            <exclusions>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>owlapi-distribution</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- Openllet reasoner -->
        <!--        <dependency>
                <groupId>com.github.galigator.openllet</groupId>
                <artifactId>openllet-owlapi</artifactId>
                <version>2.6.3</version>
                <scope>compile</scope>
        </dependency>
        <dependency>
                <groupId>com.github.galigator.openllet</groupId>
                <artifactId>openllet-jena</artifactId>
                <version>2.6.3</version>
                <scope>compile</scope>
        </dependency>-->
        <!-- JFact reasoner -->
        <dependency>
            <groupId>net.sourceforge.owlapi</groupId>
            <artifactId>jfact</artifactId>
            <version>4.0.4</version>
            <scope>compile</scope>
            <type>jar</type>
            <exclusions>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>owlapi-distribution</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- Fact++ reasoner -->
        <dependency>
            <groupId>it.unife.endif.ml</groupId>
            <artifactId>factplusplus</artifactId>
            <version>1.6.5-SNAPSHOT</version>
            <scope>compile</scope>
            <type>jar</type>
        </dependency>
        <!-- ELK reasoner -->
        <dependency>
            <groupId>org.semanticweb.elk</groupId>
            <artifactId>elk-owlapi</artifactId>
            <version>0.4.3</version>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
        <!-- Hermit reasoner -->
        <dependency>
            <groupId>net.sourceforge.owlapi</groupId>
            <artifactId>org.semanticweb.hermit</artifactId>
            <version>1.3.8.413</version>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>owlapi-distribution</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>2.0.1.Final</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.hibernate.validator</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>6.0.7.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate.validator</groupId>
            <artifactId>hibernate-validator-annotation-processor</artifactId>
            <version>6.0.7.Final</version>
        </dependency>
        <dependency>
            <groupId>javax.el</groupId>
            <artifactId>javax.el-api</artifactId>
            <version>3.0.0</version>
        </dependency>
 
        <dependency>
            <groupId>org.glassfish.web</groupId>
            <artifactId>javax.el</artifactId>
            <version>2.2.6</version>
        </dependency>
    </dependencies>
    
  
    <build>
        <plugins>
            <!--            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
            </plugin>-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <excludes>
                        <exclude>org/mindswap/pellet/tbox/impl/TgBox.java</exclude>
                        <!--<exclude>it/unife/endif/ml/bundle/BundleCLIImpl.java</exclude>-->
                        <!--<exclude>**/MainClassIT.java</exclude>-->
                    </excludes>
                    <!--<useIncrementalCompilation>false</useIncrementalCompilation>-->
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
                <executions>
                    <execution>
                        <id>default-testCompile</id>
                        <phase>test-compile</phase>
                        <configuration>
                            <testExcludes>
                                <!--<exclude>**/HelpTest.java</exclude>-->
                            </testExcludes>
                        </configuration> 
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.10.4</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <additionalparam>-Xdoclint:none</additionalparam>
                    <sourceFileExcludes>
                        <!--<exclude>**/src/main/java/unife/bundle/BundleDeprecate.java</exclude>-->
                    </sourceFileExcludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.8</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <!-- Set this to true and the release will automatically proceed and sync to Central Repository will follow  -->
                    <autoReleaseAfterClose>false</autoReleaseAfterClose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>standalone</id>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <!--                            <filters>
                                <filter>
                                    <artifact>com.clarkparsia.pellet:pellet-core</artifact>
                                    <excludes>
                                        <exclude>org/mindswap/pellet/tbox/impl/TgBox.class</exclude>
                                    </excludes>
                                </filter>
                            </filters>-->
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <manifestEntries>
                                        <Main-Class>it.unife.endif.ml.bundle.MainClass</Main-Class>
                                    </manifestEntries>
                                </transformer>
                            </transformers>
                            <finalName>${project.build.finalName}-standalone</finalName>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>junit-platform-surefire-provider</artifactId>
                        <version>1.0.2</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <properties>
                        <excludeTags>
                            <!--pellet,-->
                            <!--hermit,-->
                            jfact,
                            <!--fact++,-->
                            elk
                            <!--                            blackbox,
                            owlexplanation,-->
                        </excludeTags>
                    </properties>
                    <includes>
                        <include>**/*Spec.*</include>
                        <include>**/*Test.*</include>
                        <!--<include>**/*IT.*</include>-->
                    </includes>
                    <excludes>
                        <exclude>${module.test.excludes}</exclude>
                    </excludes>
                    <forkCount>1C</forkCount>
                    <reuseForks>false</reuseForks>
                    <!--                    <argLine>-Djava.library.path=${project.basedir}/lib/lib/native/64bit</argLine>-->
                    <argLine>-Djava.library.path=${project.basedir}</argLine>
                </configuration>
                <executions>
                    <execution>
                        <id>integration-test</id>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <phase>integration-test</phase>
                        <configuration>
                            <excludes>
                                <exclude>${module.test.excludes}</exclude>
                            </excludes>
                            <includes>
                                <include>**/*IT.*</include>
                            </includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.mycila.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>1.9.0</version>
            </plugin>
            
            
            <!--            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.17</version>
                <dependencies>
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.0</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>validate</id>
                        <phase>validate</phase>
                        <configuration>
                            <configLocation>src/main/resources/checkstyle.xml</configLocation>
                            <encoding>UTF-8</encoding>
                            <consoleOutput>true</consoleOutput>
                            <failsOnError>true</failsOnError>
                            <linkXRef>false</linkXRef>
                        </configuration>
                        <goals>
                            <goal>checkstyle</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>-->
            
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            
        </plugins>
        
    </build>
    
    <profiles>
        <profile>
            <id>profile-linux-x86_64</id>
            <activation>
                <os>
                    <family>unix</family>
                    <arch>amd64</arch>
                </os>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>unife</groupId>
                    <artifactId>bdd-libraries</artifactId>
                    <version>1.0</version>
                    <classifier>linux-x86_64</classifier>
                    <type>jar</type>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>profile-linux-i386</id>
            <activation>
                <os>
                    <family>unix</family>
                    <arch>i386</arch>
                </os>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>unife</groupId>
                    <artifactId>bdd-libraries</artifactId>
                    <version>1.0</version>
                    <classifier>linux-i386</classifier>
                    <type>jar</type>
                </dependency>
            </dependencies>
        </profile>
        <!-- Windows and OSX not supported yet -->
        <!-- Windows 64 bits -->
        <profile>
            <id>profile-windows-64</id>
            <activation>
                <os>
                    <family>windows</family>
                    <arch>amd64</arch>
                </os>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>unife</groupId>
                    <artifactId>bdd-libraries</artifactId>
                    <version>1.0</version>
                    <classifier>win64</classifier>
                    <type>jar</type>
                </dependency>
            </dependencies>
        </profile>
        <!-- Windows 32 bits -->
        <profile>
            <id>profile-windows-32</id>
            <activation>
                <os>
                    <family>windows</family>
                    <arch>x86</arch>
                </os>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>unife</groupId>
                    <artifactId>bdd-libraries</artifactId>
                    <version>1.0</version>
                    <classifier>win32</classifier>
                    <type>jar</type>
                </dependency>
            </dependencies>
        </profile>
        <!-- Mac OSX -->
        <profile>
            <id>profile-osx</id>
            <activation>
                <os>
                    <family>mac</family>
                    <!--<arch>x86</arch>-->
                </os>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>unife</groupId>
                    <artifactId>bdd-libraries</artifactId>
                    <version>1.0</version>
                    <classifier>osx</classifier>
                    <type>jar</type>
                </dependency>
            </dependencies>
        </profile>   
    </profiles>
 

    <repositories>
        
        <repository>
            <id>maven.aksw.internal</id>
            <name>University Leipzig, AKSW Maven2 Repository</name>
            <url>http://maven.aksw.org/repository/internal</url>
            <releases />
        </repository>
        <repository>
            <id>maven.aksw.snapshots</id>
            <name>University Leipzig, AKSW Maven2 Repository</name>
            <url>http://maven.aksw.org/repository/snapshots</url>
            <snapshots />
        </repository>
        <repository>
            <id>davidsoergel.releases</id>
            <name>David Soergel's Maven Repository</name>
            <url>http://dev.davidsoergel.com/nexus/content/repositories/releases</url>
        </repository>
        
        <!--        <repository>
            <id>snapshot.maven.aksw</id>
            <url>http://prod1.aksw.org:8081/archiva/repository/snapshots/</url>
            <snapshots>
                <enabled>false</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </releases>
        </repository>-->
        <!-- repository for BDD-packages -->
        <repository>
            <id>ml-unife-maven-repository</id>
            <name>ML@UniFe Maven Repository</name>
            <!--                        <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>-->
            <url>https://api.bitbucket.org/1.0/repositories/giuseta/ml-unife-maven-repository.git/raw/releases</url>
        </repository>
        <!-- repository for other Java libraries -->
        <repository>
            <id>ossrh-snapshots</id>
            <name>Sonatype OSSRH (OSS Repository Hosting) Snapshots</name>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
    </repositories>

    <!-- Sonatype Central repository -->
    <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>
    
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.17</version>
                <configuration>
                    <configLocation>src/main/resources/checkstyle.xml</configLocation>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>checkstyle</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
    
</project>
