<?xml version="1.0" encoding="UTF-8"?>
<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">
  <parent>
    <artifactId>parent-pom</artifactId>
    <groupId>com.mycila</groupId>
    <version>5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycila</groupId>
  <artifactId>mycila-guice</artifactId>
  <name>Mycila Guice Extensions</name>
  <version>2.10.ga</version>
  <description>Contributions to Guice Framework</description>
  <url>http://code.mycila.com/</url>
  <inceptionYear>2010</inceptionYear>
  <scm>
    <connection>scm:svn:https://mycila.googlecode.com/svn/mycila-guice/tags/mycila-guice-2.10.ga</connection>
    <developerConnection>scm:svn:https://mycila.googlecode.com/svn/mycila-guice/tags/mycila-guice-2.10.ga</developerConnection>
    <url>http://mycila.googlecode.com/svn/mycila-guice/tags/mycila-guice-2.10.ga</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <header>${basedir}/src/main/etc/header.txt</header>
          <failIfMissing>true</failIfMissing>
          <strictCheck>true</strictCheck>
          <properties>
            <owner>${project.organization.name}</owner>
            <year>${project.inceptionYear}</year>
            <email>mathieu.carbou@gmail.com</email>
          </properties>
          <excludes>
            <exclude>LICENSE.txt</exclude>
            <exclude>src/test/resources/**</exclude>
            <exclude>dependency-reduced-pom.xml</exclude>
            <exclude>tmp/**</exclude>
            <exclude>src/test/TODO.txt</exclude>
            <exclude>src/main/java/com/mycila/inject/internal/**</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>manifest</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <instructions>
            <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
            <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
            <Bundle-Name>${project.name}</Bundle-Name>
            <Bundle-Description>${project.description}</Bundle-Description>
            <Bundle-Version>${project.version}</Bundle-Version>
            <Bundle-Vendor>${project.organization.name}</Bundle-Vendor>
            <Bundle-DocURL>${project.url}</Bundle-DocURL>
            <Bundle-Copyright>Copyright (C) ${project.inceptionYear} ${project.organization.name}</Bundle-Copyright>
            <Private-Package>com.mycila.inject.internal</Private-Package>
            <Export-Package>!com.mycila.inject.internal*,
                            com.mycila.inject*;version="${project.version}";-noimport:=true</Export-Package>
            <Import-Package>!com.google.common*,
                            !net.sf.cglib*,
                            !org.objectweb.asm*,
                            !sun.reflect.annotation*,
                            redis.clients*;resolution:=optional,
                            org.quartz*;resolution:=optional,
                            com.mycila.jms*;resolution:=optional,
                            *</Import-Package>
            <_versionpolicy>[${version;===;${@}},${version;+;${@}})</_versionpolicy>
            <_removeheaders>Built-By,Tool,Created-By,
                            Include-Resource,Private-Package,
                            Ignore-Package,Bnd-LastModified</_removeheaders>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <useDefaultManifestFile>true</useDefaultManifestFile>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>standard</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <createSourcesJar>true</createSourcesJar>
              <artifactSet>
                <includes>
                  <include>asm:asm-all</include>
                  <include>cglib:cglib</include>
                  <include>com.google.guava:guava</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>net.sf.cglib</pattern>
                  <shadedPattern>com.mycila.inject.internal.cglib</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.objectweb.asm</pattern>
                  <shadedPattern>com.mycila.inject.internal.asm</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.common</pattern>
                  <shadedPattern>com.mycila.inject.internal.guava</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>redis.clients</groupId>
      <artifactId>jedis</artifactId>
      <version>2.0.0</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.mycila</groupId>
      <artifactId>mycila-jms</artifactId>
      <version>1.1.ga</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz</artifactId>
      <version>2.1.3</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>c3p0</artifactId>
          <groupId>c3p0</groupId>
        </exclusion>
      </exclusions>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.google.inject</groupId>
      <artifactId>guice</artifactId>
      <version>3.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>1.8.5</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>

