rt/emul/mini/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 28 Sep 2013 20:54:50 +0200
branchjavac
changeset 1323 5d2341f16b4f
parent 1313 f08854c7f8b1
child 1398 9926996eca2d
permissions -rw-r--r--
Explicitly enumerating the classes we want to compile against
     1 <?xml version="1.0"?>
     2 <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">
     3   <modelVersion>4.0.0</modelVersion>
     4   <parent>
     5     <groupId>org.apidesign.bck2brwsr</groupId>
     6     <artifactId>emul.pom</artifactId>
     7     <version>0.9-SNAPSHOT</version>
     8   </parent>
     9   <groupId>org.apidesign.bck2brwsr</groupId>
    10   <artifactId>emul.mini</artifactId>
    11   <version>0.9-SNAPSHOT</version>
    12   <name>Minimal API Profile</name>
    13   <url>http://maven.apache.org</url>
    14   <properties>
    15     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    16   </properties>
    17   <dependencies>
    18     <dependency>
    19       <groupId>org.apidesign.bck2brwsr</groupId>
    20       <artifactId>core</artifactId>
    21       <version>0.9-SNAPSHOT</version>
    22       <type>jar</type>
    23     </dependency>
    24     <dependency>
    25       <groupId>org.testng</groupId>
    26       <artifactId>testng</artifactId>
    27       <version>6.5.2</version>
    28       <scope>test</scope>
    29     </dependency>
    30   </dependencies>
    31   <build>
    32       <plugins>
    33           <plugin>
    34               <artifactId>maven-antrun-plugin</artifactId>
    35               <version>1.7</version>
    36               <executions>
    37                   <execution>
    38                       <phase>generate-sources</phase>
    39                       <configuration>
    40                           <target>
    41                               <mkdir dir="${project.build.directory}/bootcp"/>
    42                               <copy todir="${project.build.directory}/bootcp">
    43                                   <resources>
    44                                       <!-- copy all resources that are in
    45                                         compact profile, but are referenced from
    46                                         the mini profile
    47                                       -->
    48                                       <javaresource name="java/net/URI.class"/>
    49                                       <javaresource name="java/net/URISyntaxException.class"/>
    50                                       <javaresource name="java/util/Locale.class"/>
    51                                       <javaresource name="java/io/OutputStream.class"/>
    52                                       <javaresource name="java/io/FilterOutputStream.class"/>
    53                                       <javaresource name="java/io/PrintStream.class"/>
    54                                       <javaresource name="java/io/PrintWriter.class"/>
    55                                       <javaresource name="java/io/Writer.class"/>
    56                                   </resources>
    57                               </copy>
    58                           </target>
    59                       </configuration>
    60                       <goals>
    61                           <goal>run</goal>
    62                       </goals>
    63                   </execution>
    64               </executions>
    65           </plugin>
    66           <plugin>
    67               <groupId>org.apache.maven.plugins</groupId>
    68               <artifactId>maven-compiler-plugin</artifactId>
    69               <version>2.5.1</version>
    70               <configuration>
    71                   <compilerArguments>
    72                       <!--
    73                         <bootclasspath>netbeans.ignore.jdk.bootsclasspath</bootclasspath>
    74                       -->
    75                       <bootclasspath>${project.build.directory}/bootcp/</bootclasspath>
    76                   </compilerArguments>
    77                  <source>1.7</source>
    78                  <target>1.7</target>
    79               </configuration>
    80           </plugin>
    81           <plugin>
    82               <groupId>org.apache.maven.plugins</groupId>
    83               <artifactId>maven-javadoc-plugin</artifactId>
    84               <configuration>
    85                   <excludePackageNames>org.apidesign.bck2brwsr.emul.*</excludePackageNames>
    86                   <skip>false</skip>
    87               </configuration>
    88           </plugin>
    89           <plugin>
    90               <groupId>org.apache.maven.plugins</groupId>
    91               <artifactId>maven-source-plugin</artifactId>
    92               <version>2.2.1</version>
    93               <executions>
    94                   <execution>
    95                       <id>prepare-sources</id>
    96                       <goals>
    97                           <goal>jar</goal>
    98                       </goals>
    99                       <phase>package</phase>
   100                   </execution>
   101               </executions>
   102           </plugin>
   103       </plugins>
   104   </build>
   105 </project>