<?xml version="1.0"?>
<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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apidesign.bck2brwsr</groupId>
    <artifactId>emul.pom</artifactId>
    <version>0.8.1</version>
  </parent>
  <groupId>org.apidesign.bck2brwsr</groupId>
  <artifactId>emul.mini</artifactId>
  <version>0.8.1</version>
  <name>Minimal API Profile</name>
  <url>http://maven.apache.org</url>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.apidesign.bck2brwsr</groupId>
      <artifactId>core</artifactId>
      <version>0.8.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.5.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
      <plugins>
          <plugin>
              <artifactId>maven-antrun-plugin</artifactId>
              <version>1.7</version>
              <executions>
                  <execution>
                      <phase>generate-sources</phase>
                      <configuration>
                          <target>
                              <mkdir dir="${project.build.directory}/bootcp" />
                              <copy todir="${project.build.directory}/bootcp">
                                  <resources>
                                      <!-- copy all resources that are in
                                        compact profile, but are referenced from
                                        the mini profile
                                      -->
                                      <javaresource name="java/net/URI.class" />
                                      <javaresource name="java/net/URISyntaxException.class" />
                                      <javaresource name="java/net/URLConnection.class" />
                                      <javaresource name="java/util/Locale.class" />
                                      <javaresource name="java/io/OutputStream.class" />
                                      <javaresource name="java/io/FilterOutputStream.class" />
                                      <javaresource name="java/io/PrintStream.class" />
                                      <javaresource name="java/io/PrintWriter.class" />
                                      <javaresource name="java/io/Writer.class" />
                                  </resources>
                              </copy>
                          </target>
                      </configuration>
                      <goals>
                          <goal>run</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.5.1</version>
              <configuration>
                  <compilerArguments>
                      <!--
                        <bootclasspath>netbeans.ignore.jdk.bootsclasspath</bootclasspath>
                      -->
                      <bootclasspath>${project.build.directory}/bootcp/</bootclasspath>
                  </compilerArguments>
                 <source>1.7</source>
                 <target>1.7</target>
              </configuration>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                  <excludePackageNames>org.apidesign.bck2brwsr.emul.*</excludePackageNames>
                  <skip>false</skip>
              </configuration>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-source-plugin</artifactId>
              <version>2.2.1</version>
              <executions>
                  <execution>
                      <id>prepare-sources</id>
                      <goals>
                          <goal>jar</goal>
                      </goals>
                      <phase>package</phase>
                  </execution>
              </executions>
          </plugin>
      </plugins>
  </build>
</project>
