minesweeper/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Mon, 10 Feb 2014 16:50:08 +0100
branchminesweeper
changeset 79 03bec9dcc860
parent 63 56477205fdb5
child 81 0d274f085dac
permissions -rw-r--r--
Play a sound when a square in the minefield is made visible
     1 <?xml version="1.0" encoding="UTF-8"?>
     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 
     5   <groupId>org.apidesign.demo</groupId>
     6   <artifactId>minesweeper</artifactId>
     7   <version>1.0-SNAPSHOT</version>
     8   <packaging>jar</packaging>
     9   <parent>
    10       <artifactId>demo</artifactId>
    11       <groupId>org.apidesign.html</groupId>
    12       <version>1.0-SNAPSHOT</version>
    13   </parent>
    14 
    15   <name>Mine Sweeper</name>
    16 
    17   <properties>
    18     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    19     <brwsr.startpage>pages/index.html</brwsr.startpage>
    20     <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
    21     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    22   </properties>
    23   <build>
    24       <plugins>
    25           <plugin>
    26               <groupId>org.apache.maven.plugins</groupId>
    27               <artifactId>maven-compiler-plugin</artifactId>
    28               <version>2.3.2</version>
    29               <configuration>
    30                   <source>1.6</source>
    31                   <target>1.6</target>
    32               </configuration>
    33           </plugin>
    34           <plugin>
    35               <groupId>org.apache.maven.plugins</groupId>
    36               <artifactId>maven-jar-plugin</artifactId>
    37               <version>2.4</version>
    38               <configuration>
    39                   <archive>
    40                       <manifest>
    41                           <mainClass>${project.mainclass}</mainClass>
    42                           <addClasspath>true</addClasspath>
    43                           <classpathPrefix>lib/</classpathPrefix>
    44                       </manifest>
    45                   </archive>
    46               </configuration>
    47           </plugin>
    48           <plugin>
    49               <groupId>org.codehaus.mojo</groupId>
    50               <artifactId>exec-maven-plugin</artifactId>
    51               <version>1.2.1</version>
    52               <configuration>
    53                   <systemProperties>
    54                       <systemProperty>
    55                           <key>browser.rootdir</key>
    56                           <value>${basedir}/src/main/webapp/</value>
    57                       </systemProperty>
    58                   </systemProperties>
    59                   <mainClass>${project.mainclass}</mainClass>
    60               </configuration>
    61           </plugin>      
    62       </plugins>
    63   </build>
    64   <dependencies>
    65     <dependency>
    66         <groupId>org.netbeans.html</groupId>
    67         <artifactId>net.java.html.json</artifactId>
    68         <version>${net.java.html.version}</version>
    69     </dependency>
    70     <dependency>
    71         <groupId>org.netbeans.html</groupId>
    72         <artifactId>net.java.html.boot</artifactId>
    73         <version>${net.java.html.version}</version>
    74     </dependency>
    75     <dependency>
    76         <groupId>org.netbeans.html</groupId>
    77         <artifactId>net.java.html.sound</artifactId>
    78         <version>${net.java.html.version}</version>
    79     </dependency>
    80     <dependency>
    81       <groupId>org.testng</groupId>
    82       <artifactId>testng</artifactId>
    83       <version>6.7</version>
    84       <scope>test</scope>
    85     </dependency>
    86   </dependencies>
    87   <profiles>
    88       <profile>
    89           <id>fxbrwsr</id>
    90           <activation>
    91               <activeByDefault>true</activeByDefault>
    92           </activation>
    93           <build>
    94             <plugins>
    95                 <plugin>
    96                     <artifactId>maven-assembly-plugin</artifactId>
    97                     <version>2.4</version>
    98                     <executions>
    99                         <execution>
   100                             <id>distro-assembly</id>
   101                             <phase>package</phase>
   102                             <goals>
   103                                 <goal>single</goal>
   104                             </goals>
   105                             <configuration>
   106                                 <descriptors>
   107                                     <descriptor>src/main/assembly/html.java.net.xml</descriptor>
   108                                 </descriptors>
   109                             </configuration>
   110                         </execution>
   111                     </executions>                
   112                 </plugin>      
   113             </plugins>
   114           </build>
   115           <dependencies>
   116             <dependency>
   117                 <groupId>org.netbeans.html</groupId>
   118                 <artifactId>ko4j</artifactId>
   119                 <version>${net.java.html.version}</version>
   120                 <scope>runtime</scope>
   121             </dependency>
   122             <dependency>
   123                 <groupId>org.netbeans.html</groupId>
   124                 <artifactId>net.java.html.boot.fx</artifactId>
   125                 <version>${net.java.html.version}</version>
   126                 <scope>runtime</scope>
   127             </dependency>
   128           </dependencies>
   129       </profile>
   130       <profile>
   131           <id>bck2brwsr</id>
   132           <activation>
   133               <property>
   134                   <name>brwsr</name>
   135                   <value>bck2brwsr</value>
   136               </property>
   137           </activation>
   138           <build>
   139               <plugins>
   140                   <plugin>
   141                       <groupId>org.apidesign.bck2brwsr</groupId>
   142                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   143                       <version>${bck2brwsr.version}</version>
   144                       <executions>
   145                           <execution>
   146                               <goals>
   147                                   <goal>brwsr</goal>
   148                               </goals>
   149                           </execution>
   150                       </executions>
   151                       <configuration>
   152                           <directory>${basedir}/src/main/webapp/</directory>
   153                           <startpage>${brwsr.startpage}</startpage>
   154                       </configuration>
   155                   </plugin>
   156                   <plugin>
   157                       <groupId>org.apache.maven.plugins</groupId>
   158                       <artifactId>maven-compiler-plugin</artifactId>
   159                       <configuration>
   160                           <compilerArguments>
   161                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   162                           </compilerArguments>
   163                       </configuration>
   164                   </plugin>
   165                   <plugin>
   166                       <artifactId>maven-assembly-plugin</artifactId>
   167                       <version>2.4</version>
   168                       <executions>
   169                           <execution>
   170                               <id>distro-assembly</id>
   171                               <phase>package</phase>
   172                               <goals>
   173                                   <goal>single</goal>
   174                               </goals>
   175                               <configuration>
   176                                   <descriptors>
   177                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   178                                   </descriptors>
   179                               </configuration>
   180                           </execution>
   181                       </executions>                
   182                   </plugin>      
   183               </plugins>
   184           </build>
   185           <dependencies>
   186               <dependency>
   187                   <groupId>org.apidesign.bck2brwsr</groupId>
   188                   <artifactId>emul</artifactId>
   189                   <version>${bck2brwsr.version}</version>
   190                   <classifier>rt</classifier>
   191               </dependency>
   192               <dependency>
   193                   <groupId>org.apidesign.bck2brwsr</groupId>
   194                   <artifactId>ko-bck2brwsr</artifactId>
   195                   <version>${bck2brwsr.version}</version>
   196                   <scope>runtime</scope>
   197               </dependency>
   198               <dependency>
   199                   <groupId>org.apidesign.bck2brwsr</groupId>
   200                   <artifactId>vm4brwsr</artifactId>
   201                   <classifier>js</classifier>
   202                   <type>zip</type>
   203                   <version>${bck2brwsr.version}</version>
   204                   <scope>provided</scope>
   205               </dependency>
   206           </dependencies>
   207       </profile>
   208   </profiles>  
   209 </project>