<?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/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-project</artifactId>
        <version>9.0.3.v20130506</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.eclipse.jetty.spdy</groupId>
    <artifactId>spdy-parent</artifactId>
    <packaging>pom</packaging>
    <name>Jetty :: SPDY :: Parent</name>

    <properties>
        <npn.api.version>1.1.0.v20120525</npn.api.version>
    </properties>

    <profiles>
        <profile>
            <id>7u9</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_9</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.3.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u10</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_10</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.3.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u11</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_11</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.3.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u13</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_13</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.4.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u15</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_15</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.5.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u17</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_17</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.5.v20130313</npn.version>
            </properties>
        </profile>
        <profile>
            <id>7u21</id>
            <activation>
                <property>
                    <name>java.version</name>
                    <value>1.7.0_21</value>
                </property>
            </activation>
            <properties>
                <npn.version>1.1.5.v20130313</npn.version>
            </properties>
        </profile>
    </profiles>

    <modules>
        <module>spdy-core</module>
        <module>spdy-client</module>
        <module>spdy-server</module>
        <module>spdy-http-server</module>
        <module>spdy-example-webapp</module>
    </modules>

    <dependencies>
        <dependency>
            <groupId>org.eclipse.jetty.toolchain</groupId>
            <artifactId>jetty-test-helper</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>require-jdk7</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <version>[1.7,)</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-pmd-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <goals>
                            <goal>manifest</goal>
                        </goals>
                        <configuration>
                            <instructions>
                                <Export-Package>org.eclipse.jetty.spdy.*;version="9.0"</Export-Package>
                                <Import-Package>org.eclipse.jetty.*;version="[9.0,10.0)",*</Import-Package>
                                <_nouses>true</_nouses>
                            </instructions>
                          </configuration>
                       </execution>
                  </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-jar-plugin</artifactId>
              <configuration>
                  <archive>
                      <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                  </archive>
              </configuration>
            </plugin>
        </plugins>
    </build>

</project>
