minesweeper/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Tue, 04 Mar 2014 09:59:53 +0100
branchteavm
changeset 92 8697860c6af0
parent 91 c20135305ad2
child 94 9aab40420432
permissions -rw-r--r--
Use filtering to enabled/disable appropriate section in the index.html
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@63
     7
  <version>1.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@63
    16
jtulach@63
    17
  <properties>
jtulach@63
    18
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
jtulach@63
    19
    <brwsr.startpage>pages/index.html</brwsr.startpage>
jtulach@63
    20
    <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
jtulach@63
    21
    <netbeans.compile.on.save>none</netbeans.compile.on.save>
jtulach@63
    22
  </properties>
jtulach@63
    23
  <build>
jtulach@63
    24
      <plugins>
jtulach@63
    25
          <plugin>
jtulach@63
    26
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    27
              <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
    28
              <version>2.3.2</version>
jtulach@63
    29
              <configuration>
jtulach@63
    30
                  <source>1.6</source>
jtulach@63
    31
                  <target>1.6</target>
jtulach@63
    32
              </configuration>
jtulach@63
    33
          </plugin>
jtulach@63
    34
          <plugin>
jtulach@63
    35
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    36
              <artifactId>maven-jar-plugin</artifactId>
jtulach@63
    37
              <version>2.4</version>
jtulach@63
    38
              <configuration>
jtulach@63
    39
                  <archive>
jtulach@63
    40
                      <manifest>
jtulach@63
    41
                          <mainClass>${project.mainclass}</mainClass>
jtulach@63
    42
                          <addClasspath>true</addClasspath>
jtulach@63
    43
                          <classpathPrefix>lib/</classpathPrefix>
jtulach@63
    44
                      </manifest>
jtulach@63
    45
                  </archive>
jtulach@63
    46
              </configuration>
jtulach@63
    47
          </plugin>
jtulach@63
    48
          <plugin>
jtulach@63
    49
              <groupId>org.codehaus.mojo</groupId>
jtulach@63
    50
              <artifactId>exec-maven-plugin</artifactId>
jtulach@63
    51
              <version>1.2.1</version>
jtulach@63
    52
              <configuration>
jtulach@63
    53
                  <systemProperties>
jtulach@63
    54
                      <systemProperty>
jtulach@63
    55
                          <key>browser.rootdir</key>
jtulach@63
    56
                          <value>${basedir}/src/main/webapp/</value>
jtulach@63
    57
                      </systemProperty>
jtulach@63
    58
                  </systemProperties>
jtulach@63
    59
                  <mainClass>${project.mainclass}</mainClass>
jtulach@63
    60
              </configuration>
jtulach@63
    61
          </plugin>      
jtulach@63
    62
      </plugins>
jtulach@63
    63
  </build>
jtulach@63
    64
  <dependencies>
jtulach@63
    65
    <dependency>
jtulach@63
    66
        <groupId>org.netbeans.html</groupId>
jtulach@63
    67
        <artifactId>net.java.html.json</artifactId>
jtulach@63
    68
        <version>${net.java.html.version}</version>
jtulach@63
    69
    </dependency>
jtulach@63
    70
    <dependency>
jtulach@63
    71
        <groupId>org.netbeans.html</groupId>
jtulach@63
    72
        <artifactId>net.java.html.boot</artifactId>
jtulach@63
    73
        <version>${net.java.html.version}</version>
jtulach@63
    74
    </dependency>
jtulach@63
    75
    <dependency>
jtulach@79
    76
        <groupId>org.netbeans.html</groupId>
jtulach@79
    77
        <artifactId>net.java.html.sound</artifactId>
jtulach@79
    78
        <version>${net.java.html.version}</version>
jtulach@79
    79
    </dependency>
jtulach@79
    80
    <dependency>
jtulach@81
    81
        <groupId>org.netbeans.html</groupId>
jtulach@81
    82
        <artifactId>ko4j</artifactId>
jtulach@81
    83
        <version>${net.java.html.version}</version>
jtulach@81
    84
    </dependency>
jtulach@81
    85
    <dependency>
jtulach@63
    86
      <groupId>org.testng</groupId>
jtulach@63
    87
      <artifactId>testng</artifactId>
jtulach@63
    88
      <version>6.7</version>
jtulach@63
    89
      <scope>test</scope>
jtulach@63
    90
    </dependency>
jtulach@63
    91
  </dependencies>
jtulach@63
    92
  <profiles>
jtulach@63
    93
      <profile>
jtulach@63
    94
          <id>fxbrwsr</id>
jtulach@63
    95
          <activation>
jtulach@63
    96
              <activeByDefault>true</activeByDefault>
jtulach@63
    97
          </activation>
jtulach@63
    98
          <build>
jtulach@63
    99
            <plugins>
jtulach@63
   100
                <plugin>
jtulach@63
   101
                    <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   102
                    <version>2.4</version>
jtulach@63
   103
                    <executions>
jtulach@63
   104
                        <execution>
jtulach@63
   105
                            <id>distro-assembly</id>
jtulach@63
   106
                            <phase>package</phase>
jtulach@63
   107
                            <goals>
jtulach@63
   108
                                <goal>single</goal>
jtulach@63
   109
                            </goals>
jtulach@63
   110
                            <configuration>
jtulach@63
   111
                                <descriptors>
jtulach@63
   112
                                    <descriptor>src/main/assembly/html.java.net.xml</descriptor>
jtulach@63
   113
                                </descriptors>
jtulach@63
   114
                            </configuration>
jtulach@63
   115
                        </execution>
jtulach@63
   116
                    </executions>                
jtulach@63
   117
                </plugin>      
jtulach@63
   118
            </plugins>
jtulach@63
   119
          </build>
jtulach@63
   120
          <dependencies>
jtulach@63
   121
            <dependency>
jtulach@63
   122
                <groupId>org.netbeans.html</groupId>
jtulach@63
   123
                <artifactId>net.java.html.boot.fx</artifactId>
jtulach@63
   124
                <version>${net.java.html.version}</version>
jtulach@63
   125
                <scope>runtime</scope>
jtulach@63
   126
            </dependency>
jtulach@63
   127
          </dependencies>
jtulach@63
   128
      </profile>
jtulach@63
   129
      <profile>
jtulach@63
   130
          <id>bck2brwsr</id>
jtulach@63
   131
          <activation>
jtulach@63
   132
              <property>
jtulach@63
   133
                  <name>brwsr</name>
jtulach@63
   134
                  <value>bck2brwsr</value>
jtulach@63
   135
              </property>
jtulach@63
   136
          </activation>
jtulach@92
   137
          <properties>
jtulach@92
   138
              <bck2brwsr>--</bck2brwsr>
jtulach@92
   139
          </properties>
jtulach@63
   140
          <build>
jtulach@63
   141
              <plugins>
jtulach@63
   142
                  <plugin>
jtulach@63
   143
                      <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   144
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jtulach@63
   145
                      <version>${bck2brwsr.version}</version>
jtulach@63
   146
                      <executions>
jtulach@63
   147
                          <execution>
jtulach@63
   148
                              <goals>
jtulach@63
   149
                                  <goal>brwsr</goal>
jtulach@63
   150
                              </goals>
jtulach@63
   151
                          </execution>
jtulach@63
   152
                      </executions>
jtulach@63
   153
                      <configuration>
jtulach@63
   154
                          <directory>${basedir}/src/main/webapp/</directory>
jtulach@63
   155
                          <startpage>${brwsr.startpage}</startpage>
jtulach@63
   156
                      </configuration>
jtulach@63
   157
                  </plugin>
jtulach@63
   158
                  <plugin>
jtulach@63
   159
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@63
   160
                      <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
   161
                      <configuration>
jtulach@63
   162
                          <compilerArguments>
jtulach@63
   163
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jtulach@63
   164
                          </compilerArguments>
jtulach@63
   165
                      </configuration>
jtulach@63
   166
                  </plugin>
jtulach@63
   167
                  <plugin>
jtulach@63
   168
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   169
                      <version>2.4</version>
jtulach@63
   170
                      <executions>
jtulach@63
   171
                          <execution>
jtulach@63
   172
                              <id>distro-assembly</id>
jtulach@63
   173
                              <phase>package</phase>
jtulach@63
   174
                              <goals>
jtulach@63
   175
                                  <goal>single</goal>
jtulach@63
   176
                              </goals>
jtulach@63
   177
                              <configuration>
jtulach@63
   178
                                  <descriptors>
jtulach@63
   179
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jtulach@63
   180
                                  </descriptors>
jtulach@63
   181
                              </configuration>
jtulach@63
   182
                          </execution>
jtulach@63
   183
                      </executions>                
jtulach@63
   184
                  </plugin>      
jtulach@63
   185
              </plugins>
jtulach@63
   186
          </build>
jtulach@63
   187
          <dependencies>
jtulach@63
   188
              <dependency>
jtulach@63
   189
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   190
                  <artifactId>emul</artifactId>
jtulach@63
   191
                  <version>${bck2brwsr.version}</version>
jtulach@63
   192
                  <classifier>rt</classifier>
jtulach@63
   193
              </dependency>
jtulach@63
   194
              <dependency>
jtulach@63
   195
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   196
                  <artifactId>ko-bck2brwsr</artifactId>
jtulach@63
   197
                  <version>${bck2brwsr.version}</version>
jtulach@63
   198
                  <scope>runtime</scope>
jtulach@63
   199
              </dependency>
jtulach@63
   200
              <dependency>
jtulach@63
   201
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   202
                  <artifactId>vm4brwsr</artifactId>
jtulach@63
   203
                  <classifier>js</classifier>
jtulach@63
   204
                  <type>zip</type>
jtulach@63
   205
                  <version>${bck2brwsr.version}</version>
jtulach@63
   206
                  <scope>provided</scope>
jtulach@63
   207
              </dependency>
jtulach@63
   208
          </dependencies>
jtulach@63
   209
      </profile>
jtulach@81
   210
      <profile>
jtulach@81
   211
          <id>dlvkbrwsr</id>
jtulach@81
   212
          <activation>
jtulach@81
   213
              <property>
jtulach@81
   214
                  <name>android.sdk.path</name>
jtulach@81
   215
              </property>
jtulach@81
   216
          </activation>
jtulach@81
   217
          <properties>
jtulach@81
   218
              <platform.version>4.1.1.4</platform.version>
jtulach@81
   219
              <android.plugin.version>3.7.0</android.plugin.version>
jtulach@81
   220
              <debug>false</debug>
jtulach@81
   221
          </properties>
jtulach@81
   222
          <dependencies>
jtulach@81
   223
              <dependency>
jtulach@81
   224
                  <groupId>com.google.android</groupId>
jtulach@81
   225
                  <artifactId>android</artifactId>
jtulach@81
   226
                  <version>${platform.version}</version>
jtulach@81
   227
                  <scope>provided</scope>
jtulach@81
   228
              </dependency>
jtulach@81
   229
              <dependency>
jtulach@81
   230
                  <groupId>org.netbeans.html</groupId>
jtulach@81
   231
                  <artifactId>ko-ws-tyrus</artifactId>
jtulach@81
   232
                  <version>${net.java.html.version}</version>
jtulach@81
   233
                  <exclusions>
jtulach@81
   234
                      <exclusion>
jtulach@81
   235
                          <artifactId>org.json-osgi</artifactId>
jtulach@81
   236
                          <groupId>de.twentyeleven.skysail</groupId>
jtulach@81
   237
                      </exclusion>
jtulach@81
   238
                  </exclusions>
jtulach@81
   239
              </dependency>
jtulach@81
   240
              <dependency>
jtulach@81
   241
                  <groupId>org.apidesign.html</groupId>
jtulach@81
   242
                  <artifactId>dlvkbrwsr</artifactId>
jtulach@81
   243
                  <version>0.1-SNAPSHOT</version>
jtulach@81
   244
                  <type>jar</type>
jtulach@81
   245
              </dependency>
jtulach@81
   246
          </dependencies>
jtulach@81
   247
          <build>
jtulach@81
   248
              <plugins>
jtulach@81
   249
                  <plugin>
jtulach@81
   250
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   251
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   252
                      <version>${android.plugin.version}</version>
jtulach@81
   253
                      <extensions>true</extensions>
jtulach@81
   254
                      <configuration>
jtulach@81
   255
                          <classifier>apk</classifier>
jtulach@81
   256
                          <attachJar>false</attachJar>
jtulach@81
   257
                          <apkDebug>debug</apkDebug>
jtulach@81
   258
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   259
                          <sdk>
jtulach@81
   260
                              <platform>16</platform>
jtulach@81
   261
                          </sdk>
jtulach@81
   262
                          <apk>
jtulach@81
   263
                              <metaIncludes>
jtulach@81
   264
                                  <metaInclude>services/org.apidesign.**</metaInclude>
jtulach@81
   265
                              </metaIncludes>
jtulach@81
   266
                          </apk>
jtulach@81
   267
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   268
                      </configuration>
jtulach@81
   269
                      <executions>
jtulach@81
   270
                          <execution>
jtulach@81
   271
                              <id>apk</id>
jtulach@81
   272
                              <goals>
jtulach@81
   273
                                  <goal>apk</goal>
jtulach@81
   274
                                  <goal>dex</goal>
jtulach@81
   275
                              </goals>
jtulach@81
   276
                          </execution>
jtulach@81
   277
                      </executions>
jtulach@81
   278
                  </plugin>
jtulach@81
   279
                  <plugin>
jtulach@81
   280
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   281
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   282
                      <version>2.5.1</version>
jtulach@81
   283
                      <configuration>
jtulach@81
   284
                          <groupId>${project.groupId}</groupId>
jtulach@81
   285
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   286
                          <version>${project.version}</version>
jtulach@81
   287
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   288
                          <packaging>apk</packaging>
jtulach@81
   289
                          <skip>true</skip>
jtulach@81
   290
                      </configuration>
jtulach@81
   291
                      <executions>
jtulach@81
   292
                          <execution>
jtulach@81
   293
                              <id>install-apk</id>
jtulach@81
   294
                              <phase>install</phase>
jtulach@81
   295
                              <goals>
jtulach@81
   296
                                  <goal>install-file</goal>
jtulach@81
   297
                              </goals>
jtulach@81
   298
                          </execution>
jtulach@81
   299
                      </executions>
jtulach@81
   300
                  </plugin>
jtulach@81
   301
              </plugins>
jtulach@81
   302
          </build>
jtulach@91
   303
      </profile>
jtulach@91
   304
      <profile>
jtulach@91
   305
          <id>teabrwsr</id>
jtulach@92
   306
          <properties>
jtulach@92
   307
              <teabrwsr>--</teabrwsr>
jtulach@92
   308
          </properties>
jtulach@91
   309
          <build>
jtulach@91
   310
              <plugins>
jtulach@91
   311
                  <plugin>
jtulach@91
   312
                      <groupId>org.teavm</groupId>
jtulach@91
   313
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@91
   314
                      <version>0.0.1-SNAPSHOT</version>
jtulach@91
   315
                      <dependencies>
jtulach@91
   316
                          <dependency>
jtulach@91
   317
                              <groupId>org.teavm</groupId>
jtulach@91
   318
                              <artifactId>teavm-classlib</artifactId>
jtulach@91
   319
                              <version>0.0.1-SNAPSHOT</version>
jtulach@91
   320
                          </dependency>
jtulach@91
   321
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@91
   322
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@91
   323
                          <dependency>
jtulach@91
   324
                              <groupId>org.teavm</groupId>
jtulach@91
   325
                              <artifactId>teavm-html4j</artifactId>
jtulach@91
   326
                              <version>0.0.1-SNAPSHOT</version>
jtulach@91
   327
                          </dependency>
jtulach@91
   328
                      </dependencies>
jtulach@91
   329
                      <executions>
jtulach@91
   330
                          <execution>
jtulach@91
   331
                              <id>generate-minesweeper</id>
jtulach@91
   332
                              <goals>
jtulach@91
   333
                                  <goal>build-javascript</goal>
jtulach@91
   334
                              </goals>
jtulach@91
   335
                              <phase>process-classes</phase>
jtulach@91
   336
                              <configuration>
jtulach@91
   337
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@91
   338
                                  <minifying>false</minifying>
jtulach@91
   339
                                  <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
jtulach@91
   340
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@91
   341
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@91
   342
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@91
   343
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@91
   344
                                  by default as we don't always need these null checks -->
jtulach@91
   345
                                  <transformers>
jtulach@91
   346
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@91
   347
                                  </transformers>
jtulach@91
   348
                              </configuration>
jtulach@91
   349
                          </execution>
jtulach@91
   350
                      </executions>
jtulach@91
   351
                  </plugin>
jtulach@91
   352
                  <plugin>
jtulach@91
   353
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@91
   354
                      <version>2.4</version>
jtulach@91
   355
                      <executions>
jtulach@91
   356
                          <execution>
jtulach@91
   357
                              <id>distro-assembly</id>
jtulach@91
   358
                              <phase>package</phase>
jtulach@91
   359
                              <goals>
jtulach@91
   360
                                  <goal>single</goal>
jtulach@91
   361
                              </goals>
jtulach@91
   362
                              <configuration>
jtulach@91
   363
                                  <descriptors>
jtulach@91
   364
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@91
   365
                                  </descriptors>
jtulach@91
   366
                              </configuration>
jtulach@91
   367
                          </execution>
jtulach@91
   368
                      </executions>                
jtulach@91
   369
                  </plugin>      
jtulach@91
   370
              </plugins>
jtulach@91
   371
          </build>
jtulach@81
   372
      </profile>
jtulach@63
   373
  </profiles>  
jtulach@63
   374
</project>