<?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>unife</groupId>
    <artifactId>bundle</artifactId>
    <version>2.2</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>unife</project.groupId>
<!--        <dllearner.version>1.3.0-SNAPSHOT</dllearner.version>-->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    
    <!--This is the SCM information, which needs to be here so we can use the
    maven release plugin -->
    <scm>
        <url>https://github.com/AKSW/DL-Learner/</url>
        <connection>scm:git:git@bitbucket.org:rzese/bundle.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:rzese/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>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
      
        <!-- log4j. It's a logger -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
        
<!--        <dependency>
            <groupId>org.dllearner</groupId>
            <artifactId>components-core</artifactId>
            <version>${dllearner.version}</version>
            <type>pom</type>
            <exclusions>
                <exclusion>
                    <groupId>com.google.code.findbugs</groupId>
                    <artifactId>jsr305</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ini4j</groupId>
                    <artifactId>ini4j</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.json</groupId>
                    <artifactId>json</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>com.google.code.factplusplus</groupId>
                    <artifactId>factpp-owlapi</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>net.sourceforge.owlapi.owllink</groupId>
                    <artifactId>owllink</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>org.semanticweb.hermit</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.semanticweb.elk</groupId>
                    <artifactId>elk-owlapi</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>de.tudresden.inf.lat.cel</groupId>
                    <artifactId>reasoner</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>jfact</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>com.jamonapi</groupId>
                    <artifactId>jamon</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>junit</groupId>
                    <artifactId>junit</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.fuzzy</groupId>
                    <artifactId>fuzzydl</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.fuzzy</groupId>
                    <artifactId>fuzzyowl</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-beans</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.lucene</groupId>
                    <artifactId>lucene-core</artifactId>
                </exclusion>


                <exclusion>
                    <groupId>uk.ac.shef.wit</groupId>
                    <artifactId>simmetrics</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.thoughtworks.xstream</groupId>
                    <artifactId>xstream</artifactId>
                </exclusion>


                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.aksw.jena-sparql-api</groupId>
                    <artifactId>jena-sparql-api-core</artifactId>
                </exclusion>
                
                <exclusion>
                    <groupId>org.aksw.jena-sparql-api</groupId>
                    <artifactId>jena-sparql-api-cache-h2</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.apache.commons</groupId>
                    <artifactId>commons-math3</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.aksw</groupId>
                    <artifactId>semlibsvm</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>edu.berkeley.compbio</groupId>
                    <artifactId>jlibsvm</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>com.martiansoftware</groupId>
                    <artifactId>jsap</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.reflections</groupId>
                    <artifactId>reflections</artifactId>
                </exclusion>


                <exclusion>
                    <groupId>net.sf.jopt-simple</groupId>
                    <artifactId>jopt-simple</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>org.apache.commons</groupId>
                    <artifactId>commons-email</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>com.panayotis.gnuplot</groupId>
                    <artifactId>javaplot</artifactId>
                </exclusion>
            </exclusions>
        </dependency>-->
            
        <!-- Common CLI. API for parsing command line options -->
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
            <version>1.2</version>
        </dependency>
            
        
    
        <!--        <dependency>
            <groupId>net.sourceforge.owlapi</groupId>
            <artifactId>pellet-cli-ignazio1977</artifactId>
            <version>2.4.0-ignazio1977</version>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-core-ignazio1977</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-jena-ignazio1977</artifactId>
                </exclusion>
            </exclusions>
        </dependency>-->
        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.4.01</version>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.owlapi</groupId>
            <artifactId>owlapi-parsers</artifactId>
            <version>4.1.3</version>
        </dependency>
        <dependency>
            <groupId>com.clarkparsia.pellet</groupId>
            <artifactId>pellet-cli</artifactId>
            <version>2.5.0-dllearner</version>
        </dependency>
        <dependency>
            <groupId>com.clarkparsia.pellet</groupId>
            <artifactId>pellet-query</artifactId>
            <version>2.5.0-dllearner</version>
<!--            <exclusions>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-core-ignazio1977</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-jena</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.jena</groupId>
                    <artifactId>jena-arq</artifactId>
                </exclusion>
            </exclusions>-->
        </dependency>
<!--        <dependency>
            <groupId>net.sourceforge.owlapi</groupId>
            <artifactId>pellet-query-ignazio1977</artifactId>
            <version>2.4.0-ignazio1977</version>
            <type>jar</type>
            <exclusions>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-core-ignazio1977</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.sourceforge.owlapi</groupId>
                    <artifactId>pellet-jena-ignazio1977</artifactId>
                </exclusion>
                                <exclusion>
                    <groupId>org.apache.jena</groupId>
                    <artifactId>jena-arq</artifactId>
                </exclusion>
            </exclusions>
        </dependency>-->

        <dependency>
            <groupId>de.fosd.typechef</groupId>
            <artifactId>javabdd_repackaged</artifactId>
            <version>1.0b2</version>
        </dependency>
        
    </dependencies>
    

    <!--    <repositories>
        <repository>
            <id>my</id>
            <url>file://${project.basedir}/lib</url>
        </repository>
    </repositories>-->
  
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <excludes>
                        <exclude>unife/bundle/BundleDeprecate.java</exclude>
                        <exclude>org/mindswap/pellet/tbox/impl/TgBox.java</exclude>
                    </excludes>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.10.3</version>
                <configuration>
                    <additionalparam>-Xdoclint:none</additionalparam>
                    <sourceFileExcludes>
                        <exclude>**/src/main/java/unife/bundle/BundleDeprecate.java</exclude>
                    </sourceFileExcludes>
                </configuration>
            </plugin>
            
            <!--            <plugin>
                 Build an executable JAR 
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
                            <mainClass>unife.bundle.MainClass</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>-->
            
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>2.4.3</version>
                <executions>
                    <!--                    <execution>
                        <id>default</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>
                            <artifactSet>
                                <includes>
                                    <include>unife:bdd-libraries:jar:*</include>
                                </includes>
                            </artifactSet>
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <manifestEntries>
                                        <Main-Class>unife.bundle.MainClass</Main-Class>
                                    </manifestEntries>
                                </transformer>
                            </transformers>
                        </configuration>
                    </execution>-->
                    <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>unife.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.18.1</version>
                <configuration>
                    <includes>
                        <include>**/*Spec.*</include>
                        <include>**/*Test.*</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.mycila.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>1.9.0</version>
            </plugin>
            
        </plugins>
        <!-- extension used to deploy -->
        <extensions>
            <extension>
                <groupId>ar.com.synergian</groupId>
                <artifactId>wagon-git</artifactId>
                <version>0.2.5</version>
            </extension>
        </extensions>
        

    </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>
        
    </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>
    </repositories>
    
    
    <!-- Configuration for deployment (wagon-git) -->
    <pluginRepositories>
        <pluginRepository>
            <id>synergian-repo</id>
            <url>https://raw.github.com/synergian/wagon-git/releases</url>
        </pluginRepository>
    </pluginRepositories>
    
    <distributionManagement>
        <repository>
            <id>ml-unife-maven-repository</id>
            <name>ML@UniFe Maven Repository</name>
            <url>git:releases://git@bitbucket.org:giuseta/ml-unife-maven-repository.git</url>
        </repository>
        <snapshotRepository>
            <id>ml-unife-maven-repository</id>
            <name>ML@UniFe Maven Repository</name>
            <url>git:snapshots://git@bitbucket.org:giuseta/ml-unife-maven-repository.git</url>
        </snapshotRepository>
    </distributionManagement>
    
    
</project>
