<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 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <artifactId>cdes-batik</artifactId>
  <name>cdes-batik: c.des specific API for accessing the BATIK SVG library.</name>
  <version>1.0.2-SNAPSHOT</version>
  <packaging>bundle</packaging>
  <parent>
    <groupId>at.cdes</groupId>
    <artifactId>cdes-parent</artifactId>
    <version>2.2.1</version>
  </parent>
  
  <scm>
    <developerConnection>scm:git:git@gitlab.intra.iteg.at:cdes/cdes-batik.git</developerConnection>
    <connection>scm:git:git@gitlab.intra.iteg.at:cdes/cdes-batik.git</connection>
    <tag>HEAD</tag>
  </scm>
  
  <repositories>
    <repository>
      <id>at.ev-i</id>
      <name>ev-i repository.</name>
      <url>https://maven.ev-i.at</url>
    </repository>
    <repository>
      <id>org.clazzes</id>
      <name>Clazzes.org repository.</name>
      <url>https://maven.clazzes.org</url>
    </repository>
    <!--
    <repository>
      <id>at.iteg</id>
      <name>iteg repository.</name>
      <url>https://maven.iteg.at</url>
    </repository>
    -->
  </repositories>
  
  <distributionManagement>
    <repository>
      <id>ev-i.at-cdes-dist</id>
      <name>ev-i.at repository</name>
      <url>scpexe://evimaven@maven.ev-i.at/var/www/htdocs/evimaven/maven.ev-i.at</url>
    </repository>
    <snapshotRepository>
        <id>ev-i.at.snapshots-cdes-dist</id>
        <name>ev-i.at snapshots repository</name>
        <url>scpexe://evimaven@maven.ev-i.at/var/www/htdocs/evimaven/maven-snapshots.ev-i.at</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <plugins>
	  <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Private-Package>
                at.cdes.batik.impl
            </Private-Package>
            <Export-Package>at.cdes.batik</Export-Package>
            <Import-Package>
!org.apache.xmlbeans,
!org.apache.xml.resolver,
!org.apache.xml.serializer,
!org.apache.xml.resolver.readers,
!sun.io,
!com.sun.image.codec.jpeg,
org.w3c.dom.bootstrap,
org.w3c.dom.css,
org.w3c.dom.events,
org.w3c.dom.html,
org.w3c.dom.ls,
org.w3c.dom.ranges,
org.w3c.dom.stylesheets,
org.w3c.dom.traversal,
org.w3c.dom.views,
org.w3c.dom.xpath,
org.xml.sax,
org.xml.sax.ext,
org.xml.sax.helpers,
*
            </Import-Package>
            <Embed-Transitive>true</Embed-Transitive>
            <Embed-Dependency>batik-*,xml-apis-ext,xalan,xercesImpl</Embed-Dependency>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>3.0.0</version>
        <configuration>
          <executable>/usr/bin/pba-mvn2pkg-raiseversion-prod</executable>
          <workingDirectory>./cdes-batik-pkg</workingDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <preparationGoals>clean verify exec:exec</preparationGoals>
        </configuration>
      </plugin>
     </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.apache.xmlgraphics</groupId>
      <artifactId>batik-transcoder</artifactId>
      <version>1.7</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>xalan</groupId>
          <artifactId>xalan</artifactId>
        </exclusion>
        <exclusion>
        	<groupId>org.apache.xmlgraphics</groupId>
        	<artifactId>fop</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.xmlgraphics</groupId>
      <artifactId>batik-codec</artifactId>
      <version>1.7</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>xalan</groupId>
          <artifactId>xalan</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
    	<groupId>org.slf4j</groupId>
    	<artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
       <groupId>xalan</groupId>
       <artifactId>xalan</artifactId>
       <version>2.7.1</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>org.slf4j</groupId>
    	<artifactId>slf4j-log4j12</artifactId>
    	<scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>xerces</groupId>
    	<artifactId>xercesImpl</artifactId>
    	<version>2.9.1</version>
    </dependency>
  </dependencies>

</project>
