rt/vm/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 09 Jul 2013 21:06:35 +0200
changeset 1239 b6317079abe1
parent 1103 8ee3112f5647
child 1286 a83e16b8b825
permissions -rw-r--r--
Basic support for net.java.html.js annotations
     1 <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">
     2   <modelVersion>4.0.0</modelVersion>
     3   <parent>
     4     <groupId>org.apidesign.bck2brwsr</groupId>
     5     <artifactId>rt</artifactId>
     6     <version>0.8-SNAPSHOT</version>
     7   </parent>
     8 
     9   <groupId>org.apidesign.bck2brwsr</groupId>
    10   <artifactId>vm4brwsr</artifactId>
    11   <version>0.8-SNAPSHOT</version>
    12   <packaging>jar</packaging>
    13 
    14   <name>Virtual Machine for Browser</name>
    15   <url>http://bck2brwsr.apidesign.org</url>
    16 
    17   <properties>
    18     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    19     <author.name>Jaroslav Tulach</author.name>
    20     <author.email>jaroslav.tulach@apidesign.org</author.email>
    21   </properties>
    22   
    23   <repositories>
    24       <repository>
    25           <id>netbeans</id>
    26           <name>NetBeans</name>
    27           <url>http://bits.netbeans.org/maven2/</url>
    28       </repository>
    29   </repositories>
    30   <pluginRepositories>
    31     <pluginRepository>
    32         <id>mc-release</id>
    33         <name>Local Maven repository of releases</name>
    34         <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
    35         <snapshots>
    36             <enabled>false</enabled>
    37         </snapshots>
    38         <releases>
    39             <enabled>true</enabled>
    40         </releases>
    41     </pluginRepository>
    42   </pluginRepositories>
    43   <scm>
    44       <connection>scm:hg:http://source.apidesign.org/hg/bck2brwsr</connection>
    45       <url>http://source.apidesign.org/hg/bck2brwsr</url>
    46     <tag>HEAD</tag>
    47   </scm>
    48   <build>
    49       <plugins>
    50           <plugin>
    51               <groupId>org.apache.maven.plugins</groupId>
    52               <artifactId>maven-jar-plugin</artifactId>
    53               <version>2.4</version>
    54               <configuration>
    55                   <archive>
    56                       <manifest>
    57                           <mainClass>org.apidesign.vm4brwsr.Main</mainClass>
    58                       </manifest>
    59                   </archive>
    60               </configuration>
    61           </plugin>
    62          <plugin>
    63             <groupId>org.apache.maven.plugins</groupId>
    64             <artifactId>maven-compiler-plugin</artifactId>
    65             <version>2.3.2</version>
    66             <configuration>
    67                <source>1.7</source>
    68                <target>1.7</target>
    69             </configuration>
    70          </plugin>
    71          <plugin>
    72              <groupId>org.apache.maven.plugins</groupId>
    73              <artifactId>maven-javadoc-plugin</artifactId>
    74              <configuration>
    75                  <skip>false</skip>
    76              </configuration>
    77          </plugin>
    78          <plugin>
    79              <groupId>org.codehaus.mojo</groupId>
    80              <artifactId>exec-maven-plugin</artifactId>
    81              <version>1.2.1</version>
    82              <executions>
    83                  <execution>
    84                      <id>generate-js</id>
    85                      <phase>process-classes</phase>
    86                      <configuration>
    87                          <executable>java</executable>
    88                         <arguments>
    89                             <argument>-Dskip.if.exists=true</argument>
    90                             <argument>-cp</argument>
    91                             <classpath />
    92                             <argument>org.apidesign.vm4brwsr.Main</argument>
    93                             <argument>--obfuscatelevel</argument>
    94                             <argument>MINIMAL</argument>
    95                             <argument>${project.build.directory}/bck2brwsr.js</argument>
    96                             <argument>org/apidesign/vm4brwsr/Bck2Brwsr</argument>
    97                         </arguments>
    98                      </configuration>
    99                      <goals>
   100                          <goal>exec</goal>
   101                      </goals>
   102                  </execution>
   103              </executions>
   104          </plugin>
   105          <plugin>
   106              <artifactId>maven-assembly-plugin</artifactId>
   107              <version>2.4</version>
   108              <executions>
   109                  <execution>
   110                      <id>js</id>
   111                      <phase>package</phase>
   112                      <goals>
   113                          <goal>single</goal>
   114                      </goals>
   115                      <configuration>
   116                          <descriptors>
   117                              <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   118                          </descriptors>
   119                      </configuration>
   120                  </execution>
   121              </executions>                
   122          </plugin>      
   123       </plugins>
   124   </build>
   125   <dependencies>
   126     <dependency>
   127       <groupId>org.testng</groupId>
   128       <artifactId>testng</artifactId>
   129       <scope>test</scope>
   130       <exclusions>
   131         <exclusion>
   132           <artifactId>junit</artifactId>
   133           <groupId>junit</groupId>
   134         </exclusion>
   135       </exclusions>
   136     </dependency>
   137     <dependency>
   138       <groupId>${project.groupId}</groupId>
   139       <artifactId>core</artifactId>
   140       <version>${project.version}</version>
   141       <type>jar</type>
   142     </dependency>
   143     <dependency>
   144       <groupId>${project.groupId}</groupId>
   145       <artifactId>emul.mini</artifactId>
   146       <version>${project.version}</version>
   147       <scope>compile</scope>
   148     </dependency>
   149     <dependency>
   150       <groupId>com.google.javascript</groupId>
   151       <artifactId>closure-compiler</artifactId>
   152       <version>r2388</version>
   153       <scope>compile</scope>
   154     </dependency>
   155     <dependency>
   156       <groupId>org.apidesign.html</groupId>
   157       <artifactId>net.java.html.boot</artifactId>
   158       <scope>test</scope>
   159       <version>${net.java.html.version}</version>
   160     </dependency>
   161   </dependencies>
   162 </project>