<?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>cloudbees-oss-parent</artifactId>
    <groupId>com.cloudbees</groupId>
    <version>4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>openid4java-shaded</artifactId>
  <name>openid4java shaded</name>
  <version>0.9.8.0</version>
  <description>openid4java (Third party dependencies shaded)</description>
  <issueManagement />
  <ciManagement />
  <scm>
    <connection>scm:git:git://github.com/cloudbees/openid4java-shaded.git</connection>
    <developerConnection>scm:git:git@github.com:cloudbees/openid4java-shaded.git</developerConnection>
    <tag>openid4java-shaded-0.9.8.0</tag>
    <url>http://github.com/cloudbees/openid4java-shaded/tree/master/</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>org.apache.http</pattern>
                  <shadedPattern>org.openid4java.shaded.apache.http</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.cyberneko.html</pattern>
                  <shadedPattern>org.openid4java.shaded.cyberneko.html</shadedPattern>
                </relocation>
              </relocations>
              <artifactSet>
                <excludes>
                  <exclude>com.google.inject.guice</exclude>
                  <exclude>commons-logging</exclude>
                  <exclude>commons-codec</exclude>
                </excludes>
              </artifactSet>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>cloudbees-oss-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.2</version>
            <executions>
              <execution>
                <id>sources</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-dependencies</goal>
                </goals>
                <configuration>
                  <failOnMissingClassifierArtifact>true</failOnMissingClassifierArtifact>
                  <classifier>sources</classifier>
                  <outputDirectory>/Users/stephenc/src/openid4java-shaded/target/checkout/target</outputDirectory>
                  <includeGroupIds>org.openid4java</includeGroupIds>
                  <includeArtifactIds>openid4java</includeArtifactIds>
                  <stripVersion>true</stripVersion>
                </configuration>
              </execution>
              <execution>
                <id>javadoc</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-dependencies</goal>
                </goals>
                <configuration>
                  <failOnMissingClassifierArtifact>true</failOnMissingClassifierArtifact>
                  <classifier>javadoc</classifier>
                  <outputDirectory>/Users/stephenc/src/openid4java-shaded/target/checkout/target</outputDirectory>
                  <includeGroupIds>org.openid4java</includeGroupIds>
                  <includeArtifactIds>openid4java</includeArtifactIds>
                  <stripVersion>true</stripVersion>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>attach-artifacts</id>
                <phase>package</phase>
                <goals>
                  <goal>attach-artifact</goal>
                </goals>
                <configuration>
                  <artifacts>
                    <artifact>
                      <file>/Users/stephenc/src/openid4java-shaded/target/checkout/target/openid4java-sources.jar</file>
                      <type>jar</type>
                      <classifier>sources</classifier>
                    </artifact>
                    <artifact>
                      <file>/Users/stephenc/src/openid4java-shaded/target/checkout/target/openid4java-javadoc.jar</file>
                      <type>jar</type>
                      <classifier>javadoc</classifier>
                    </artifact>
                  </artifacts>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.4</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

