minesweeper/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 20 May 2014 08:47:01 +0200
changeset 151 3bad49b62dfa
parent 150 95639e5c0e28
child 154 b37d0281edf8
permissions -rw-r--r--
Platform 16 is said to be obsolete. Switching to 19.
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>
jtulach@81
   289
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   290
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   291
                      <version>${android.plugin.version}</version>
jtulach@81
   292
                      <extensions>true</extensions>
jtulach@81
   293
                      <configuration>
jtulach@81
   294
                          <classifier>apk</classifier>
jtulach@81
   295
                          <attachJar>false</attachJar>
jtulach@81
   296
                          <apkDebug>debug</apkDebug>
jtulach@81
   297
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   298
                          <sdk>
jaroslav@151
   299
                              <platform>19</platform>
jtulach@81
   300
                          </sdk>
jtulach@81
   301
                          <apk>
jtulach@81
   302
                              <metaIncludes>
jtulach@81
   303
                                  <metaInclude>services/org.apidesign.**</metaInclude>
jtulach@81
   304
                              </metaIncludes>
jtulach@81
   305
                          </apk>
jtulach@110
   306
                          <extractDuplicates>true</extractDuplicates>
jtulach@81
   307
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   308
                      </configuration>
jtulach@81
   309
                      <executions>
jtulach@81
   310
                          <execution>
jtulach@81
   311
                              <id>apk</id>
jtulach@81
   312
                              <goals>
jtulach@81
   313
                                  <goal>apk</goal>
jtulach@81
   314
                                  <goal>dex</goal>
jtulach@81
   315
                              </goals>
jtulach@81
   316
                          </execution>
jtulach@81
   317
                      </executions>
jtulach@81
   318
                  </plugin>
jtulach@81
   319
                  <plugin>
jtulach@81
   320
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   321
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   322
                      <version>2.5.1</version>
jtulach@81
   323
                      <configuration>
jtulach@81
   324
                          <groupId>${project.groupId}</groupId>
jtulach@81
   325
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   326
                          <version>${project.version}</version>
jtulach@81
   327
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   328
                          <packaging>apk</packaging>
jtulach@81
   329
                          <skip>true</skip>
jtulach@81
   330
                      </configuration>
jtulach@81
   331
                      <executions>
jtulach@81
   332
                          <execution>
jtulach@81
   333
                              <id>install-apk</id>
jtulach@81
   334
                              <phase>install</phase>
jtulach@81
   335
                              <goals>
jtulach@81
   336
                                  <goal>install-file</goal>
jtulach@81
   337
                              </goals>
jtulach@81
   338
                          </execution>
jtulach@81
   339
                      </executions>
jtulach@81
   340
                  </plugin>
jtulach@81
   341
              </plugins>
jtulach@81
   342
          </build>
jtulach@91
   343
      </profile>
jtulach@91
   344
      <profile>
jtulach@91
   345
          <id>teabrwsr</id>
jtulach@91
   346
          <build>
jtulach@91
   347
              <plugins>
jtulach@91
   348
                  <plugin>
jtulach@91
   349
                      <groupId>org.teavm</groupId>
jtulach@91
   350
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@115
   351
                      <version>${teavm.version}</version>
jtulach@91
   352
                      <dependencies>
jtulach@91
   353
                          <dependency>
jtulach@91
   354
                              <groupId>org.teavm</groupId>
jtulach@91
   355
                              <artifactId>teavm-classlib</artifactId>
jtulach@115
   356
                              <version>${teavm.version}</version>
jtulach@91
   357
                          </dependency>
jtulach@91
   358
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@91
   359
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@91
   360
                          <dependency>
jtulach@91
   361
                              <groupId>org.teavm</groupId>
jtulach@91
   362
                              <artifactId>teavm-html4j</artifactId>
jtulach@115
   363
                              <version>${teavm.version}</version>
jtulach@91
   364
                          </dependency>
jtulach@91
   365
                      </dependencies>
jtulach@91
   366
                      <executions>
jtulach@91
   367
                          <execution>
jtulach@91
   368
                              <id>generate-minesweeper</id>
jtulach@91
   369
                              <goals>
jtulach@91
   370
                                  <goal>build-javascript</goal>
jtulach@91
   371
                              </goals>
jtulach@91
   372
                              <phase>process-classes</phase>
jtulach@91
   373
                              <configuration>
jtulach@91
   374
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@91
   375
                                  <minifying>false</minifying>
jtulach@97
   376
                                  <properties>
jtulach@97
   377
                                      <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
jtulach@97
   378
                                      <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
jtulach@97
   379
                                  </properties>
jtulach@91
   380
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@91
   381
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@97
   382
                                  <!-- Merge runtime.js instead of putting as a separate file -->
jtulach@97
   383
                                  <runtime>MERGED</runtime>
jtulach@97
   384
                                  <!-- Name of the generated file -->
jtulach@97
   385
                                  <targetFileName>bck2brwsr.js</targetFileName>
jtulach@91
   386
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@91
   387
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@91
   388
                                  by default as we don't always need these null checks -->
jtulach@91
   389
                                  <transformers>
jtulach@91
   390
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@91
   391
                                  </transformers>
jtulach@91
   392
                              </configuration>
jtulach@91
   393
                          </execution>
jtulach@91
   394
                      </executions>
jtulach@91
   395
                  </plugin>
jtulach@91
   396
                  <plugin>
jtulach@91
   397
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@91
   398
                      <version>2.4</version>
jtulach@91
   399
                      <executions>
jtulach@91
   400
                          <execution>
jtulach@91
   401
                              <id>distro-assembly</id>
jtulach@91
   402
                              <phase>package</phase>
jtulach@91
   403
                              <goals>
jtulach@91
   404
                                  <goal>single</goal>
jtulach@91
   405
                              </goals>
jtulach@91
   406
                              <configuration>
jtulach@91
   407
                                  <descriptors>
jtulach@91
   408
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@91
   409
                                  </descriptors>
jtulach@91
   410
                              </configuration>
jtulach@91
   411
                          </execution>
jtulach@91
   412
                      </executions>                
jtulach@91
   413
                  </plugin>      
jtulach@91
   414
              </plugins>
jtulach@91
   415
          </build>
jtulach@81
   416
      </profile>
jtulach@111
   417
      <profile>
jtulach@125
   418
          <id>ibrwsr</id>
jtulach@125
   419
          <dependencies>
jtulach@125
   420
              <dependency>
jtulach@125
   421
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@125
   422
                  <artifactId>ibrwsr</artifactId>
jtulach@150
   423
                  <version>0.6</version>
jtulach@125
   424
                  <scope>runtime</scope>
jtulach@125
   425
              </dependency>
jtulach@125
   426
          </dependencies>
jtulach@125
   427
          <build>
jtulach@125
   428
              <plugins>
jtulach@125
   429
                  <plugin>
jtulach@125
   430
                      <groupId>org.robovm</groupId>
jtulach@125
   431
                      <artifactId>robovm-maven-plugin</artifactId>
jarda@126
   432
                      <version>0.0.11.1</version>
jtulach@125
   433
                      <configuration>
jtulach@125
   434
                          <config>
jtulach@125
   435
                              <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
jtulach@125
   436
                              <forceLinkClasses>
jtulach@125
   437
                                  <pattern>java.util.logging.ConsoleHandler</pattern>
jtulach@125
   438
                                  <pattern>java.util.logging.SimpleFormatter</pattern>
jtulach@125
   439
                                  <pattern>org.netbeans.html.ko4j.KO4J</pattern>
jtulach@125
   440
                                  <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
jtulach@125
   441
                                  <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
jaroslav@134
   442
                              </forceLinkClasses>
jaroslav@134
   443
                              <executableName>MineSweeper</executableName>
jaroslav@134
   444
                              <resources>
jaroslav@134
   445
                                  <resource>src/main/webapp/pages/</resource>
jaroslav@134
   446
                              </resources>
jtulach@125
   447
                          </config>
jtulach@125
   448
                          <includeJFX>false</includeJFX>
jtulach@125
   449
                      </configuration>
jtulach@125
   450
                  </plugin>
jtulach@125
   451
              </plugins>
jtulach@125
   452
          </build>
jtulach@125
   453
      </profile>      
jtulach@125
   454
      <profile>
jtulach@111
   455
          <id>nbrwsr</id>
jtulach@112
   456
          <dependencies>
jtulach@112
   457
              <dependency>
jtulach@118
   458
                  <groupId>org.netbeans.html</groupId>
jtulach@118
   459
                  <artifactId>nbrwsr</artifactId>
jtulach@144
   460
                  <version>${nb.html.version}</version>
jtulach@112
   461
                  <scope>compile</scope>
jtulach@112
   462
              </dependency>
jtulach@112
   463
          </dependencies>
jtulach@111
   464
          <build>
jtulach@111
   465
              <plugins>
jtulach@111
   466
                  <plugin>
jtulach@113
   467
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@113
   468
                      <artifactId>maven-resources-plugin</artifactId>
jtulach@113
   469
                      <version>2.6</version>
jtulach@113
   470
                      <executions>
jtulach@113
   471
                          <execution>
jtulach@113
   472
                              <id>include-webpages</id>
jtulach@113
   473
                              <goals>
jtulach@113
   474
                                  <goal>copy-resources</goal>
jtulach@113
   475
                              </goals>
jtulach@113
   476
                              <phase>process-resources</phase>
jtulach@113
   477
                              <configuration>
jtulach@113
   478
                                  <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
jtulach@113
   479
                                  <overwrite>true</overwrite>
jtulach@113
   480
                                  <resources>          
jtulach@113
   481
                                      <resource>
jtulach@113
   482
                                          <directory>src/main/webapp/pages</directory>
jtulach@113
   483
                                      </resource>
jtulach@113
   484
                                  </resources>              
jtulach@113
   485
                              </configuration>   
jtulach@113
   486
                          </execution>
jtulach@113
   487
                      </executions>
jtulach@113
   488
                  </plugin>
jtulach@113
   489
                  <plugin>
jtulach@111
   490
                      <groupId>org.codehaus.mojo</groupId>
jtulach@111
   491
                      <artifactId>nbm-maven-plugin</artifactId>
jtulach@111
   492
                      <version>3.13</version>
jtulach@111
   493
                      <extensions>true</extensions>
jtulach@111
   494
                      <executions>
jtulach@111
   495
                          <execution>
jtulach@111
   496
                              <id>default-manifest</id>
jtulach@111
   497
                              <phase>process-classes</phase>
jtulach@111
   498
                              <goals>
jtulach@111
   499
                                  <goal>manifest</goal>
jtulach@111
   500
                              </goals>
jtulach@111
   501
                              <configuration>
jtulach@111
   502
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   503
                                  <brandingToken>html4j4nb</brandingToken>
jtulach@129
   504
                                  <cluster>extra</cluster>
jtulach@111
   505
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   506
                              </configuration>
jtulach@111
   507
                          </execution>                       
jtulach@111
   508
                          <execution>
jtulach@111
   509
                              <id>default-nbm</id>
jtulach@111
   510
                              <phase>package</phase>
jtulach@111
   511
                              <goals>
jtulach@111
   512
                                  <goal>nbm</goal>
jtulach@111
   513
                              </goals>
jtulach@111
   514
                              <configuration>
jtulach@111
   515
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@129
   516
                                  <cluster>extra</cluster>
jtulach@111
   517
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   518
                              </configuration>
jtulach@111
   519
                          </execution>
jtulach@111
   520
                      </executions>
jtulach@111
   521
                      <configuration>
jtulach@111
   522
                          <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   523
                          <brandingToken>html4j4nb</brandingToken>
jtulach@111
   524
                          <cluster>html4j4nb</cluster>
jtulach@111
   525
                          <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   526
                      </configuration>
jtulach@111
   527
                  </plugin>                      
jtulach@111
   528
jtulach@111
   529
                  <plugin>
jtulach@111
   530
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@111
   531
                      <artifactId>maven-jar-plugin</artifactId>
jtulach@111
   532
                      <configuration>
jtulach@111
   533
                          <!-- to have the jar plugin pickup the nbm generated manifest -->
jtulach@111
   534
                          <useDefaultManifestFile>true</useDefaultManifestFile>
jtulach@111
   535
                      </configuration>
jtulach@111
   536
                  </plugin>
jtulach@111
   537
              </plugins>
jtulach@111
   538
          </build>
jtulach@111
   539
      </profile>      
jtulach@63
   540
  </profiles>  
jtulach@63
   541
</project>