minesweeper/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 08 Jun 2014 09:22:48 +0200
changeset 159 1b667288ba9c
parent 158 115273e5bb77
child 160 be13d9823456
permissions -rw-r--r--
Generating Android launcher icons
jtulach@63
     1
<?xml version="1.0" encoding="UTF-8"?>
jtulach@63
     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">
jtulach@63
     3
  <modelVersion>4.0.0</modelVersion>
jtulach@63
     4
jtulach@63
     5
  <groupId>org.apidesign.demo</groupId>
jtulach@63
     6
  <artifactId>minesweeper</artifactId>
jtulach@132
     7
  <version>2.0-SNAPSHOT</version>
jtulach@63
     8
  <packaging>jar</packaging>
jtulach@63
     9
  <parent>
jtulach@63
    10
      <artifactId>demo</artifactId>
jtulach@63
    11
      <groupId>org.apidesign.html</groupId>
jtulach@63
    12
      <version>1.0-SNAPSHOT</version>
jtulach@63
    13
  </parent>
jtulach@63
    14
jtulach@63
    15
  <name>Mine Sweeper</name>
jtulach@128
    16
  <description>
jtulach@128
    17
      Demonstration of DukeScript rendering technology.
jtulach@133
    18
      Plus old, good, simple and entertaining game.
jtulach@130
    19
      Improve your coding skills by playing a game and 
jtulach@130
    20
      meanwhile learn what a rendering technology of the
jtulach@130
    21
      future is going to look like. Learn to use DukeScript:
jtulach@130
    22
      Write once, display (and deploy) anywhere!
jtulach@128
    23
  </description>
jtulach@128
    24
  <url>http://html.java.net/</url>
jtulach@63
    25
  <properties>
jtulach@63
    26
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
jtulach@63
    27
    <brwsr.startpage>pages/index.html</brwsr.startpage>
jtulach@63
    28
    <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
jtulach@63
    29
    <netbeans.compile.on.save>none</netbeans.compile.on.save>
jtulach@63
    30
  </properties>
jtulach@63
    31
  <build>
jtulach@63
    32
      <plugins>
jtulach@63
    33
          <plugin>
jtulach@63
    34
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    35
              <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
    36
              <version>2.3.2</version>
jtulach@63
    37
              <configuration>
jtulach@63
    38
                  <source>1.6</source>
jtulach@63
    39
                  <target>1.6</target>
jtulach@63
    40
              </configuration>
jtulach@63
    41
          </plugin>
jtulach@63
    42
          <plugin>
jtulach@120
    43
              <groupId>org.apache.maven.plugins</groupId>
jtulach@120
    44
              <artifactId>maven-jar-plugin</artifactId>
jtulach@120
    45
              <version>2.4</version>
jtulach@120
    46
              <configuration>
jtulach@120
    47
                  <archive>
jtulach@120
    48
                      <manifest>
jtulach@120
    49
                          <mainClass>${project.mainclass}</mainClass>
jtulach@120
    50
                          <addClasspath>true</addClasspath>
jtulach@120
    51
                          <classpathPrefix>lib/</classpathPrefix>
jtulach@120
    52
                      </manifest>
jtulach@120
    53
                  </archive>
jtulach@120
    54
              </configuration>
jtulach@120
    55
          </plugin>
jtulach@120
    56
          <plugin>
jtulach@63
    57
              <groupId>org.codehaus.mojo</groupId>
jtulach@63
    58
              <artifactId>exec-maven-plugin</artifactId>
jtulach@63
    59
              <version>1.2.1</version>
jtulach@63
    60
              <configuration>
jtulach@63
    61
                  <systemProperties>
jtulach@63
    62
                      <systemProperty>
jtulach@63
    63
                          <key>browser.rootdir</key>
jtulach@63
    64
                          <value>${basedir}/src/main/webapp/</value>
jtulach@63
    65
                      </systemProperty>
jtulach@63
    66
                  </systemProperties>
jtulach@63
    67
                  <mainClass>${project.mainclass}</mainClass>
jtulach@63
    68
              </configuration>
jtulach@63
    69
          </plugin>      
jtulach@63
    70
      </plugins>
jtulach@63
    71
  </build>
jtulach@63
    72
  <dependencies>
jtulach@63
    73
    <dependency>
jtulach@63
    74
        <groupId>org.netbeans.html</groupId>
jtulach@63
    75
        <artifactId>net.java.html.json</artifactId>
jtulach@63
    76
        <version>${net.java.html.version}</version>
jtulach@63
    77
    </dependency>
jtulach@63
    78
    <dependency>
jtulach@63
    79
        <groupId>org.netbeans.html</groupId>
jtulach@63
    80
        <artifactId>net.java.html.boot</artifactId>
jtulach@63
    81
        <version>${net.java.html.version}</version>
jtulach@63
    82
    </dependency>
jtulach@63
    83
    <dependency>
jtulach@79
    84
        <groupId>org.netbeans.html</groupId>
jtulach@111
    85
        <artifactId>net.java.html</artifactId>
jtulach@111
    86
        <version>${net.java.html.version}</version>
jtulach@111
    87
    </dependency>
jtulach@111
    88
    <dependency>
jtulach@111
    89
        <groupId>org.netbeans.html</groupId>
jtulach@79
    90
        <artifactId>net.java.html.sound</artifactId>
jtulach@79
    91
        <version>${net.java.html.version}</version>
jtulach@79
    92
    </dependency>
jtulach@79
    93
    <dependency>
jtulach@81
    94
        <groupId>org.netbeans.html</groupId>
jtulach@81
    95
        <artifactId>ko4j</artifactId>
jtulach@81
    96
        <version>${net.java.html.version}</version>
jtulach@81
    97
    </dependency>
jtulach@81
    98
    <dependency>
jtulach@118
    99
      <groupId>org.netbeans.html</groupId>
jtulach@118
   100
      <artifactId>nbrwsr</artifactId>
jtulach@144
   101
      <version>${nb.html.version}</version>
jtulach@112
   102
      <scope>provided</scope>
jtulach@112
   103
    </dependency>
jtulach@112
   104
    <dependency>
jtulach@63
   105
      <groupId>org.testng</groupId>
jtulach@63
   106
      <artifactId>testng</artifactId>
jtulach@63
   107
      <version>6.7</version>
jtulach@63
   108
      <scope>test</scope>
jtulach@63
   109
    </dependency>
jtulach@63
   110
  </dependencies>
jtulach@63
   111
  <profiles>
jtulach@63
   112
      <profile>
jtulach@63
   113
          <id>fxbrwsr</id>
jtulach@63
   114
          <activation>
jtulach@63
   115
              <activeByDefault>true</activeByDefault>
jtulach@63
   116
          </activation>
jtulach@63
   117
          <build>
jtulach@63
   118
            <plugins>
jtulach@63
   119
                <plugin>
jtulach@131
   120
                    <groupId>org.apache.maven.plugins</groupId>
jtulach@131
   121
                    <artifactId>maven-jar-plugin</artifactId>
jtulach@131
   122
                    <version>2.4</version>
jtulach@131
   123
                    <configuration>
jtulach@131
   124
                        <archive>
jtulach@131
   125
                            <manifest>
jtulach@131
   126
                                <mainClass>${project.mainclass}</mainClass>
jtulach@131
   127
                                <addClasspath>true</addClasspath>
jtulach@131
   128
                                <classpathPrefix>lib/</classpathPrefix>
jtulach@131
   129
                            </manifest>
jtulach@131
   130
                        </archive>
jtulach@131
   131
                    </configuration>
jtulach@131
   132
                </plugin>
jtulach@131
   133
                <plugin>
jtulach@63
   134
                    <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   135
                    <version>2.4</version>
jtulach@63
   136
                    <executions>
jtulach@63
   137
                        <execution>
jtulach@63
   138
                            <id>distro-assembly</id>
jtulach@63
   139
                            <phase>package</phase>
jtulach@63
   140
                            <goals>
jtulach@63
   141
                                <goal>single</goal>
jtulach@63
   142
                            </goals>
jtulach@63
   143
                            <configuration>
jtulach@63
   144
                                <descriptors>
jtulach@63
   145
                                    <descriptor>src/main/assembly/html.java.net.xml</descriptor>
jtulach@63
   146
                                </descriptors>
jtulach@63
   147
                            </configuration>
jtulach@63
   148
                        </execution>
jtulach@63
   149
                    </executions>                
jtulach@63
   150
                </plugin>      
jtulach@63
   151
            </plugins>
jtulach@63
   152
          </build>
jtulach@63
   153
          <dependencies>
jtulach@63
   154
            <dependency>
jtulach@63
   155
                <groupId>org.netbeans.html</groupId>
jtulach@63
   156
                <artifactId>net.java.html.boot.fx</artifactId>
jtulach@63
   157
                <version>${net.java.html.version}</version>
jtulach@63
   158
                <scope>runtime</scope>
jtulach@63
   159
            </dependency>
jtulach@63
   160
          </dependencies>
jtulach@63
   161
      </profile>
jtulach@63
   162
      <profile>
jtulach@63
   163
          <id>bck2brwsr</id>
jtulach@63
   164
          <activation>
jtulach@63
   165
              <property>
jtulach@63
   166
                  <name>brwsr</name>
jtulach@63
   167
                  <value>bck2brwsr</value>
jtulach@63
   168
              </property>
jtulach@63
   169
          </activation>
jtulach@63
   170
          <build>
jtulach@63
   171
              <plugins>
jtulach@63
   172
                  <plugin>
jtulach@131
   173
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@131
   174
                      <artifactId>maven-jar-plugin</artifactId>
jtulach@131
   175
                      <version>2.4</version>
jtulach@131
   176
                      <configuration>
jtulach@131
   177
                          <archive>
jtulach@131
   178
                              <manifest>
jtulach@131
   179
                                  <mainClass>${project.mainclass}</mainClass>
jtulach@131
   180
                                  <addClasspath>true</addClasspath>
jtulach@131
   181
                                  <classpathPrefix>lib/</classpathPrefix>
jtulach@131
   182
                              </manifest>
jtulach@131
   183
                          </archive>
jtulach@131
   184
                      </configuration>
jtulach@131
   185
                  </plugin>
jtulach@131
   186
                  <plugin>
jtulach@63
   187
                      <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   188
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jtulach@63
   189
                      <version>${bck2brwsr.version}</version>
jtulach@63
   190
                      <executions>
jtulach@63
   191
                          <execution>
jtulach@63
   192
                              <goals>
jtulach@63
   193
                                  <goal>brwsr</goal>
jtulach@63
   194
                              </goals>
jtulach@63
   195
                          </execution>
jtulach@63
   196
                      </executions>
jtulach@63
   197
                      <configuration>
jtulach@63
   198
                          <directory>${basedir}/src/main/webapp/</directory>
jtulach@63
   199
                          <startpage>${brwsr.startpage}</startpage>
jtulach@63
   200
                      </configuration>
jtulach@63
   201
                  </plugin>
jtulach@63
   202
                  <plugin>
jtulach@63
   203
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@63
   204
                      <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
   205
                      <configuration>
jtulach@63
   206
                          <compilerArguments>
jtulach@63
   207
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jtulach@63
   208
                          </compilerArguments>
jtulach@63
   209
                      </configuration>
jtulach@63
   210
                  </plugin>
jtulach@63
   211
                  <plugin>
jtulach@63
   212
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   213
                      <version>2.4</version>
jtulach@63
   214
                      <executions>
jtulach@63
   215
                          <execution>
jtulach@63
   216
                              <id>distro-assembly</id>
jtulach@63
   217
                              <phase>package</phase>
jtulach@63
   218
                              <goals>
jtulach@63
   219
                                  <goal>single</goal>
jtulach@63
   220
                              </goals>
jtulach@63
   221
                              <configuration>
jtulach@63
   222
                                  <descriptors>
jtulach@63
   223
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jtulach@63
   224
                                  </descriptors>
jtulach@63
   225
                              </configuration>
jtulach@63
   226
                          </execution>
jtulach@63
   227
                      </executions>                
jtulach@63
   228
                  </plugin>      
jtulach@63
   229
              </plugins>
jtulach@63
   230
          </build>
jtulach@63
   231
          <dependencies>
jtulach@63
   232
              <dependency>
jtulach@63
   233
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   234
                  <artifactId>emul</artifactId>
jtulach@63
   235
                  <version>${bck2brwsr.version}</version>
jtulach@63
   236
                  <classifier>rt</classifier>
jtulach@63
   237
              </dependency>
jtulach@63
   238
              <dependency>
jtulach@63
   239
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   240
                  <artifactId>ko-bck2brwsr</artifactId>
jtulach@63
   241
                  <version>${bck2brwsr.version}</version>
jtulach@63
   242
                  <scope>runtime</scope>
jtulach@63
   243
              </dependency>
jtulach@63
   244
              <dependency>
jtulach@63
   245
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   246
                  <artifactId>vm4brwsr</artifactId>
jtulach@63
   247
                  <classifier>js</classifier>
jtulach@63
   248
                  <type>zip</type>
jtulach@63
   249
                  <version>${bck2brwsr.version}</version>
jtulach@63
   250
                  <scope>provided</scope>
jtulach@63
   251
              </dependency>
jtulach@63
   252
          </dependencies>
jtulach@63
   253
      </profile>
jtulach@81
   254
      <profile>
jtulach@81
   255
          <id>dlvkbrwsr</id>
jtulach@81
   256
          <properties>
jtulach@81
   257
              <platform.version>4.1.1.4</platform.version>
jtulach@81
   258
              <android.plugin.version>3.7.0</android.plugin.version>
jtulach@81
   259
              <debug>false</debug>
jtulach@81
   260
          </properties>
jtulach@81
   261
          <dependencies>
jtulach@81
   262
              <dependency>
jtulach@81
   263
                  <groupId>com.google.android</groupId>
jtulach@81
   264
                  <artifactId>android</artifactId>
jtulach@81
   265
                  <version>${platform.version}</version>
jtulach@81
   266
                  <scope>provided</scope>
jtulach@81
   267
              </dependency>
jtulach@81
   268
              <dependency>
jtulach@107
   269
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@107
   270
                  <artifactId>dlvkbrwsr</artifactId>
jtulach@149
   271
                  <version>0.6</version>
jtulach@107
   272
                  <type>jar</type>
jtulach@107
   273
              </dependency>
jtulach@107
   274
              <dependency>
jtulach@81
   275
                  <groupId>org.netbeans.html</groupId>
jtulach@81
   276
                  <artifactId>ko-ws-tyrus</artifactId>
jtulach@81
   277
                  <version>${net.java.html.version}</version>
jtulach@81
   278
                  <exclusions>
jtulach@81
   279
                      <exclusion>
jtulach@81
   280
                          <artifactId>org.json-osgi</artifactId>
jtulach@81
   281
                          <groupId>de.twentyeleven.skysail</groupId>
jtulach@81
   282
                      </exclusion>
jtulach@81
   283
                  </exclusions>
jtulach@81
   284
              </dependency>
jtulach@81
   285
          </dependencies>
jtulach@81
   286
          <build>
jtulach@81
   287
              <plugins>
jtulach@81
   288
                  <plugin>
jaroslav@159
   289
                      <groupId>com.filmon.maven</groupId>
jaroslav@159
   290
                      <artifactId>image-maven-plugin</artifactId>
jaroslav@159
   291
                      <version>1.1</version>
jaroslav@159
   292
                      <executions>
jaroslav@159
   293
                          <execution>
jaroslav@159
   294
                              <goals>
jaroslav@159
   295
                                  <goal>scale</goal>
jaroslav@159
   296
                              </goals>
jaroslav@159
   297
                              <configuration>
jaroslav@159
   298
                                  <outputDirectory>target/res</outputDirectory>
jaroslav@159
   299
                                  <images>
jaroslav@159
   300
                                      <image>
jaroslav@159
   301
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   302
                                          <destination>drawable-hdpi/ic_launcher.png</destination>
jaroslav@159
   303
                                          <width>72</width>
jaroslav@159
   304
                                      </image>
jaroslav@159
   305
                                      <image>
jaroslav@159
   306
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   307
                                          <destination>drawable-mdpi/ic_launcher.png</destination>
jaroslav@159
   308
                                          <width>48</width>
jaroslav@159
   309
                                      </image>
jaroslav@159
   310
                                      <image>
jaroslav@159
   311
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   312
                                          <destination>drawable-xhdpi/ic_launcher.png</destination>
jaroslav@159
   313
                                          <width>96</width>
jaroslav@159
   314
                                      </image>
jaroslav@159
   315
                                      <image>
jaroslav@159
   316
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   317
                                          <destination>drawable-xxhdpi/ic_launcher.png</destination>
jaroslav@159
   318
                                          <width>144</width>
jaroslav@159
   319
                                      </image>
jaroslav@159
   320
                                  </images>
jaroslav@159
   321
                              </configuration>
jaroslav@159
   322
                          </execution>
jaroslav@159
   323
                      </executions>
jaroslav@159
   324
                  </plugin>
jaroslav@159
   325
                  <plugin>
jtulach@81
   326
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   327
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   328
                      <version>${android.plugin.version}</version>
jtulach@81
   329
                      <extensions>true</extensions>
jtulach@81
   330
                      <configuration>
jaroslav@159
   331
                          <resourceDirectory>target/res</resourceDirectory>
jtulach@81
   332
                          <classifier>apk</classifier>
jtulach@81
   333
                          <attachJar>false</attachJar>
jtulach@81
   334
                          <apkDebug>debug</apkDebug>
jtulach@81
   335
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   336
                          <sdk>
jaroslav@151
   337
                              <platform>19</platform>
jtulach@81
   338
                          </sdk>
jtulach@81
   339
                          <apk>
jtulach@81
   340
                              <metaIncludes>
jtulach@81
   341
                                  <metaInclude>services/org.apidesign.**</metaInclude>
jtulach@81
   342
                              </metaIncludes>
jtulach@81
   343
                          </apk>
jtulach@110
   344
                          <extractDuplicates>true</extractDuplicates>
jtulach@81
   345
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   346
                      </configuration>
jtulach@81
   347
                      <executions>
jtulach@81
   348
                          <execution>
jtulach@81
   349
                              <id>apk</id>
jtulach@81
   350
                              <goals>
jtulach@81
   351
                                  <goal>apk</goal>
jtulach@81
   352
                                  <goal>dex</goal>
jtulach@81
   353
                              </goals>
jtulach@81
   354
                          </execution>
jtulach@81
   355
                      </executions>
jtulach@81
   356
                  </plugin>
jtulach@81
   357
                  <plugin>
jtulach@81
   358
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   359
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   360
                      <version>2.5.1</version>
jtulach@81
   361
                      <configuration>
jtulach@81
   362
                          <groupId>${project.groupId}</groupId>
jtulach@81
   363
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   364
                          <version>${project.version}</version>
jtulach@81
   365
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   366
                          <packaging>apk</packaging>
jtulach@81
   367
                          <skip>true</skip>
jtulach@81
   368
                      </configuration>
jtulach@81
   369
                      <executions>
jtulach@81
   370
                          <execution>
jtulach@81
   371
                              <id>install-apk</id>
jtulach@81
   372
                              <phase>install</phase>
jtulach@81
   373
                              <goals>
jtulach@81
   374
                                  <goal>install-file</goal>
jtulach@81
   375
                              </goals>
jtulach@81
   376
                          </execution>
jtulach@81
   377
                      </executions>
jtulach@81
   378
                  </plugin>
jtulach@81
   379
              </plugins>
jtulach@81
   380
          </build>
jtulach@91
   381
      </profile>
jtulach@91
   382
      <profile>
jtulach@91
   383
          <id>teabrwsr</id>
jtulach@91
   384
          <build>
jtulach@91
   385
              <plugins>
jtulach@91
   386
                  <plugin>
jtulach@91
   387
                      <groupId>org.teavm</groupId>
jtulach@91
   388
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@115
   389
                      <version>${teavm.version}</version>
jtulach@91
   390
                      <dependencies>
jtulach@91
   391
                          <dependency>
jtulach@91
   392
                              <groupId>org.teavm</groupId>
jtulach@91
   393
                              <artifactId>teavm-classlib</artifactId>
jtulach@115
   394
                              <version>${teavm.version}</version>
jtulach@91
   395
                          </dependency>
jtulach@91
   396
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@91
   397
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@91
   398
                          <dependency>
jtulach@91
   399
                              <groupId>org.teavm</groupId>
jtulach@91
   400
                              <artifactId>teavm-html4j</artifactId>
jtulach@115
   401
                              <version>${teavm.version}</version>
jtulach@91
   402
                          </dependency>
jtulach@91
   403
                      </dependencies>
jtulach@91
   404
                      <executions>
jtulach@91
   405
                          <execution>
jtulach@91
   406
                              <id>generate-minesweeper</id>
jtulach@91
   407
                              <goals>
jtulach@91
   408
                                  <goal>build-javascript</goal>
jtulach@91
   409
                              </goals>
jtulach@91
   410
                              <phase>process-classes</phase>
jtulach@91
   411
                              <configuration>
jtulach@91
   412
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@91
   413
                                  <minifying>false</minifying>
jtulach@97
   414
                                  <properties>
jtulach@97
   415
                                      <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
jtulach@97
   416
                                      <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
jtulach@97
   417
                                  </properties>
jtulach@91
   418
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@91
   419
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@97
   420
                                  <!-- Merge runtime.js instead of putting as a separate file -->
jtulach@97
   421
                                  <runtime>MERGED</runtime>
jtulach@97
   422
                                  <!-- Name of the generated file -->
jtulach@97
   423
                                  <targetFileName>bck2brwsr.js</targetFileName>
jtulach@91
   424
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@91
   425
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@91
   426
                                  by default as we don't always need these null checks -->
jtulach@91
   427
                                  <transformers>
jtulach@91
   428
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@91
   429
                                  </transformers>
jtulach@91
   430
                              </configuration>
jtulach@91
   431
                          </execution>
jtulach@91
   432
                      </executions>
jtulach@91
   433
                  </plugin>
jtulach@91
   434
                  <plugin>
jtulach@91
   435
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@91
   436
                      <version>2.4</version>
jtulach@91
   437
                      <executions>
jtulach@91
   438
                          <execution>
jtulach@91
   439
                              <id>distro-assembly</id>
jtulach@91
   440
                              <phase>package</phase>
jtulach@91
   441
                              <goals>
jtulach@91
   442
                                  <goal>single</goal>
jtulach@91
   443
                              </goals>
jtulach@91
   444
                              <configuration>
jtulach@91
   445
                                  <descriptors>
jtulach@91
   446
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@91
   447
                                  </descriptors>
jtulach@91
   448
                              </configuration>
jtulach@91
   449
                          </execution>
jtulach@91
   450
                      </executions>                
jtulach@91
   451
                  </plugin>      
jtulach@91
   452
              </plugins>
jtulach@91
   453
          </build>
jtulach@81
   454
      </profile>
jtulach@111
   455
      <profile>
jtulach@125
   456
          <id>ibrwsr</id>
jtulach@125
   457
          <dependencies>
jtulach@125
   458
              <dependency>
jtulach@125
   459
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@125
   460
                  <artifactId>ibrwsr</artifactId>
jtulach@150
   461
                  <version>0.6</version>
jtulach@125
   462
                  <scope>runtime</scope>
jtulach@125
   463
              </dependency>
jtulach@125
   464
          </dependencies>
jtulach@125
   465
          <build>
jtulach@125
   466
              <plugins>
jtulach@125
   467
                  <plugin>
jaroslav@158
   468
                      <groupId>com.filmon.maven</groupId>
jaroslav@158
   469
                      <artifactId>image-maven-plugin</artifactId>
jaroslav@158
   470
                      <version>1.1</version>
jaroslav@158
   471
                      <executions>
jaroslav@158
   472
                          <execution>
jaroslav@158
   473
                              <goals>
jaroslav@158
   474
                                  <goal>scale</goal>
jaroslav@158
   475
                              </goals>
jaroslav@158
   476
                              <configuration>
jaroslav@158
   477
                                  <outputDirectory>target/images</outputDirectory>
jaroslav@158
   478
                                  <images>
jaroslav@158
   479
                                      <image>
jaroslav@158
   480
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   481
                                          <destination>Icon.png</destination>
jaroslav@158
   482
                                          <width>57</width>
jaroslav@158
   483
                                      </image>
jaroslav@158
   484
                                      <image>
jaroslav@158
   485
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   486
                                          <destination>Icon@2.png</destination>
jaroslav@158
   487
                                          <width>114</width>
jaroslav@158
   488
                                      </image>
jaroslav@158
   489
                                      <image>
jaroslav@158
   490
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   491
                                          <destination>Icon-60.png</destination>
jaroslav@158
   492
                                          <width>60</width>
jaroslav@158
   493
                                      </image>
jaroslav@158
   494
                                      <image>
jaroslav@158
   495
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   496
                                          <destination>Icon-60@2.png</destination>
jaroslav@158
   497
                                          <width>120</width>
jaroslav@158
   498
                                      </image>
jaroslav@158
   499
                                      <image>
jaroslav@158
   500
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   501
                                          <destination>Icon-72.png</destination>
jaroslav@158
   502
                                          <width>72</width>
jaroslav@158
   503
                                      </image>
jaroslav@158
   504
                                      <image>
jaroslav@158
   505
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   506
                                          <destination>Icon-76.png</destination>
jaroslav@158
   507
                                          <width>76</width>
jaroslav@158
   508
                                      </image>
jaroslav@158
   509
                                  </images>
jaroslav@158
   510
                              </configuration>
jaroslav@158
   511
                          </execution>
jaroslav@158
   512
                      </executions>
jaroslav@158
   513
                  </plugin>
jaroslav@158
   514
                  <plugin>
jtulach@125
   515
                      <groupId>org.robovm</groupId>
jtulach@125
   516
                      <artifactId>robovm-maven-plugin</artifactId>
jarda@126
   517
                      <version>0.0.11.1</version>
jtulach@125
   518
                      <configuration>
jtulach@125
   519
                          <config>
jtulach@125
   520
                              <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
jtulach@125
   521
                              <forceLinkClasses>
jtulach@125
   522
                                  <pattern>java.util.logging.ConsoleHandler</pattern>
jtulach@125
   523
                                  <pattern>java.util.logging.SimpleFormatter</pattern>
jtulach@125
   524
                                  <pattern>org.netbeans.html.ko4j.KO4J</pattern>
jtulach@125
   525
                                  <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
jtulach@125
   526
                                  <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
jaroslav@134
   527
                              </forceLinkClasses>
jaroslav@134
   528
                              <executableName>MineSweeper</executableName>
jaroslav@134
   529
                              <resources>
jtulach@154
   530
                                  <resource>src/main/webapp/pages</resource>
jtulach@154
   531
                                  <resource>
jtulach@154
   532
                                      <targetPath>/</targetPath>
jaroslav@158
   533
                                      <directory>src/main/icons/</directory>
jaroslav@158
   534
                                      <includes>
jaroslav@158
   535
                                          <include>Default*.png</include>
jaroslav@158
   536
                                      </includes>
jaroslav@158
   537
                                  </resource>
jaroslav@158
   538
                                  <resource>
jaroslav@158
   539
                                      <targetPath>/</targetPath>
jaroslav@158
   540
                                      <directory>target/images/</directory>
jtulach@154
   541
                                      <includes>
jtulach@154
   542
                                          <include>*.png</include>
jtulach@154
   543
                                      </includes>
jtulach@154
   544
                                  </resource>
jaroslav@134
   545
                              </resources>
jtulach@125
   546
                          </config>
jtulach@125
   547
                          <includeJFX>false</includeJFX>
jtulach@125
   548
                      </configuration>
jtulach@125
   549
                  </plugin>
jtulach@125
   550
              </plugins>
jtulach@125
   551
          </build>
jtulach@125
   552
      </profile>      
jtulach@125
   553
      <profile>
jtulach@111
   554
          <id>nbrwsr</id>
jtulach@112
   555
          <dependencies>
jtulach@112
   556
              <dependency>
jtulach@118
   557
                  <groupId>org.netbeans.html</groupId>
jtulach@118
   558
                  <artifactId>nbrwsr</artifactId>
jtulach@144
   559
                  <version>${nb.html.version}</version>
jtulach@112
   560
                  <scope>compile</scope>
jtulach@112
   561
              </dependency>
jtulach@112
   562
          </dependencies>
jtulach@111
   563
          <build>
jtulach@111
   564
              <plugins>
jtulach@111
   565
                  <plugin>
jtulach@113
   566
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@113
   567
                      <artifactId>maven-resources-plugin</artifactId>
jtulach@113
   568
                      <version>2.6</version>
jtulach@113
   569
                      <executions>
jtulach@113
   570
                          <execution>
jtulach@113
   571
                              <id>include-webpages</id>
jtulach@113
   572
                              <goals>
jtulach@113
   573
                                  <goal>copy-resources</goal>
jtulach@113
   574
                              </goals>
jtulach@113
   575
                              <phase>process-resources</phase>
jtulach@113
   576
                              <configuration>
jtulach@113
   577
                                  <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
jtulach@113
   578
                                  <overwrite>true</overwrite>
jtulach@113
   579
                                  <resources>          
jtulach@113
   580
                                      <resource>
jtulach@113
   581
                                          <directory>src/main/webapp/pages</directory>
jtulach@113
   582
                                      </resource>
jtulach@113
   583
                                  </resources>              
jtulach@113
   584
                              </configuration>   
jtulach@113
   585
                          </execution>
jtulach@113
   586
                      </executions>
jtulach@113
   587
                  </plugin>
jtulach@113
   588
                  <plugin>
jtulach@111
   589
                      <groupId>org.codehaus.mojo</groupId>
jtulach@111
   590
                      <artifactId>nbm-maven-plugin</artifactId>
jtulach@111
   591
                      <version>3.13</version>
jtulach@111
   592
                      <extensions>true</extensions>
jtulach@111
   593
                      <executions>
jtulach@111
   594
                          <execution>
jtulach@111
   595
                              <id>default-manifest</id>
jtulach@111
   596
                              <phase>process-classes</phase>
jtulach@111
   597
                              <goals>
jtulach@111
   598
                                  <goal>manifest</goal>
jtulach@111
   599
                              </goals>
jtulach@111
   600
                              <configuration>
jtulach@111
   601
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   602
                                  <brandingToken>html4j4nb</brandingToken>
jtulach@129
   603
                                  <cluster>extra</cluster>
jtulach@111
   604
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   605
                              </configuration>
jtulach@111
   606
                          </execution>                       
jtulach@111
   607
                          <execution>
jtulach@111
   608
                              <id>default-nbm</id>
jtulach@111
   609
                              <phase>package</phase>
jtulach@111
   610
                              <goals>
jtulach@111
   611
                                  <goal>nbm</goal>
jtulach@111
   612
                              </goals>
jtulach@111
   613
                              <configuration>
jtulach@111
   614
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@129
   615
                                  <cluster>extra</cluster>
jtulach@111
   616
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   617
                              </configuration>
jtulach@111
   618
                          </execution>
jtulach@111
   619
                      </executions>
jtulach@111
   620
                      <configuration>
jtulach@111
   621
                          <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   622
                          <brandingToken>html4j4nb</brandingToken>
jtulach@111
   623
                          <cluster>html4j4nb</cluster>
jtulach@111
   624
                          <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   625
                      </configuration>
jtulach@111
   626
                  </plugin>                      
jtulach@111
   627
jtulach@111
   628
                  <plugin>
jtulach@111
   629
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@111
   630
                      <artifactId>maven-jar-plugin</artifactId>
jtulach@111
   631
                      <configuration>
jtulach@111
   632
                          <!-- to have the jar plugin pickup the nbm generated manifest -->
jtulach@111
   633
                          <useDefaultManifestFile>true</useDefaultManifestFile>
jtulach@111
   634
                      </configuration>
jtulach@111
   635
                  </plugin>
jtulach@111
   636
              </plugins>
jtulach@111
   637
          </build>
jtulach@111
   638
      </profile>      
jtulach@63
   639
  </profiles>  
jtulach@63
   640
</project>