vm/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 07 Feb 2013 13:15:41 +0100
branchemul
changeset 701 bfb3f72249de
parent 691 10194cb7ffc2
child 750 6ac37d80ecb7
permissions -rw-r--r--
Prevent NPE. The static calculator example is now running fine
     1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     2   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</groupId>
     6     <artifactId>bck2brwsr</artifactId>
     7     <version>0.3-SNAPSHOT</version>
     8   </parent>
     9 
    10   <groupId>org.apidesign.bck2brwsr</groupId>
    11   <artifactId>vm4brwsr</artifactId>
    12   <version>0.3-SNAPSHOT</version>
    13   <packaging>jar</packaging>
    14 
    15   <name>Virtual Machine for Browser</name>
    16   <url>http://bck2brwsr.apidesign.org</url>
    17 
    18   <properties>
    19     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    20     <author.name>Jaroslav Tulach</author.name>
    21     <author.email>jaroslav.tulach@apidesign.org</author.email>
    22   </properties>
    23   
    24   <repositories>
    25       <repository>
    26           <id>netbeans</id>
    27           <name>NetBeans</name>
    28           <url>http://bits.netbeans.org/maven2/</url>
    29       </repository>
    30   </repositories>
    31   <pluginRepositories>
    32     <pluginRepository>
    33         <id>mc-release</id>
    34         <name>Local Maven repository of releases</name>
    35         <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
    36         <snapshots>
    37             <enabled>false</enabled>
    38         </snapshots>
    39         <releases>
    40             <enabled>true</enabled>
    41         </releases>
    42     </pluginRepository>
    43   </pluginRepositories>
    44   <scm>
    45       <connection>scm:hg:http://source.apidesign.org/hg/bck2brwsr</connection>
    46       <url>http://source.apidesign.org/hg/bck2brwsr</url>
    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.codehaus.mojo</groupId>
    73              <artifactId>exec-maven-plugin</artifactId>
    74              <version>1.2.1</version>
    75              <executions>
    76                  <execution>
    77                      <id>generate-js</id>
    78                      <phase>process-classes</phase>
    79                      <goals>
    80                          <goal>java</goal>
    81                      </goals>
    82                  </execution>
    83              </executions>
    84              <configuration>
    85                  <mainClass>org.apidesign.vm4brwsr.Main</mainClass>
    86                  <arguments>
    87                      <argument>${project.build.directory}/bck2brwsr.js</argument>
    88                      <argument>org/apidesign/vm4brwsr/Bck2Brwsr</argument>
    89                  </arguments>
    90              </configuration>
    91          </plugin>
    92          <plugin>
    93              <artifactId>maven-assembly-plugin</artifactId>
    94              <version>2.4</version>
    95              <executions>
    96                  <execution>
    97                      <id>js</id>
    98                      <phase>package</phase>
    99                      <goals>
   100                          <goal>single</goal>
   101                      </goals>
   102                      <configuration>
   103                          <descriptors>
   104                              <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   105                          </descriptors>
   106                      </configuration>
   107                  </execution>
   108              </executions>                
   109          </plugin>      
   110       </plugins>
   111   </build>
   112   <dependencies>
   113     <dependency>
   114       <groupId>org.testng</groupId>
   115       <artifactId>testng</artifactId>
   116       <scope>test</scope>
   117       <exclusions>
   118         <exclusion>
   119           <artifactId>junit</artifactId>
   120           <groupId>junit</groupId>
   121         </exclusion>
   122       </exclusions>
   123     </dependency>
   124     <dependency>
   125       <groupId>${project.groupId}</groupId>
   126       <artifactId>core</artifactId>
   127       <version>${project.version}</version>
   128       <type>jar</type>
   129     </dependency>
   130     <dependency>
   131       <groupId>${project.groupId}</groupId>
   132       <artifactId>emul.mini</artifactId>
   133       <version>${project.version}</version>
   134       <scope>compile</scope>
   135     </dependency>
   136     <dependency>
   137       <groupId>${project.groupId}</groupId>
   138       <artifactId>javap</artifactId>
   139       <version>${project.version}</version>
   140       <scope>compile</scope>
   141     </dependency>
   142   </dependencies>
   143 </project>