vm/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 06 Feb 2013 17:52:31 +0100
branchemul
changeset 691 10194cb7ffc2
parent 673 62b514a70382
child 692 d088fc482c65
permissions -rw-r--r--
Don't include vm4brwsr.jar in the final calculator zip file
     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                  <classpathScope>provided</classpathScope>
    86                  <mainClass>org.apidesign.vm4brwsr.Main</mainClass>
    87                  <arguments>
    88                      <argument>${project.build.directory}/bck2brwsr.js</argument>
    89                      <argument>org/apidesign/vm4brwsr/Bck2Brwsr</argument>
    90                  </arguments>
    91              </configuration>
    92          </plugin>
    93          <plugin>
    94              <artifactId>maven-assembly-plugin</artifactId>
    95              <version>2.4</version>
    96              <executions>
    97                  <execution>
    98                      <id>js</id>
    99                      <phase>package</phase>
   100                      <goals>
   101                          <goal>single</goal>
   102                      </goals>
   103                      <configuration>
   104                          <descriptors>
   105                              <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   106                          </descriptors>
   107                      </configuration>
   108                  </execution>
   109              </executions>                
   110          </plugin>      
   111       </plugins>
   112   </build>
   113   <dependencies>
   114     <dependency>
   115       <groupId>org.testng</groupId>
   116       <artifactId>testng</artifactId>
   117       <scope>test</scope>
   118       <exclusions>
   119         <exclusion>
   120           <artifactId>junit</artifactId>
   121           <groupId>junit</groupId>
   122         </exclusion>
   123       </exclusions>
   124     </dependency>
   125     <dependency>
   126       <groupId>${project.groupId}</groupId>
   127       <artifactId>core</artifactId>
   128       <version>${project.version}</version>
   129       <type>jar</type>
   130     </dependency>
   131     <dependency>
   132       <groupId>${project.groupId}</groupId>
   133       <artifactId>emul.mini</artifactId>
   134       <version>${project.version}</version>
   135       <scope>compile</scope>
   136     </dependency>
   137     <dependency>
   138       <groupId>${project.groupId}</groupId>
   139       <artifactId>javap</artifactId>
   140       <version>${project.version}</version>
   141       <scope>provided</scope>
   142     </dependency>
   143   </dependencies>
   144 </project>