minesweeper/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Tue, 04 Mar 2014 10:04:42 +0100
branchteavm
changeset 94 9aab40420432
parent 92 8697860c6af0
child 97 1a8a5abe1adb
permissions -rw-r--r--
Alas, the bck2brwsr:brwsr plugin does not do substitutions. Need to include the section all the time.
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@63
   137
          <build>
jtulach@63
   138
              <plugins>
jtulach@63
   139
                  <plugin>
jtulach@63
   140
                      <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   141
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jtulach@63
   142
                      <version>${bck2brwsr.version}</version>
jtulach@63
   143
                      <executions>
jtulach@63
   144
                          <execution>
jtulach@63
   145
                              <goals>
jtulach@63
   146
                                  <goal>brwsr</goal>
jtulach@63
   147
                              </goals>
jtulach@63
   148
                          </execution>
jtulach@63
   149
                      </executions>
jtulach@63
   150
                      <configuration>
jtulach@63
   151
                          <directory>${basedir}/src/main/webapp/</directory>
jtulach@63
   152
                          <startpage>${brwsr.startpage}</startpage>
jtulach@63
   153
                      </configuration>
jtulach@63
   154
                  </plugin>
jtulach@63
   155
                  <plugin>
jtulach@63
   156
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@63
   157
                      <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
   158
                      <configuration>
jtulach@63
   159
                          <compilerArguments>
jtulach@63
   160
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jtulach@63
   161
                          </compilerArguments>
jtulach@63
   162
                      </configuration>
jtulach@63
   163
                  </plugin>
jtulach@63
   164
                  <plugin>
jtulach@63
   165
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   166
                      <version>2.4</version>
jtulach@63
   167
                      <executions>
jtulach@63
   168
                          <execution>
jtulach@63
   169
                              <id>distro-assembly</id>
jtulach@63
   170
                              <phase>package</phase>
jtulach@63
   171
                              <goals>
jtulach@63
   172
                                  <goal>single</goal>
jtulach@63
   173
                              </goals>
jtulach@63
   174
                              <configuration>
jtulach@63
   175
                                  <descriptors>
jtulach@63
   176
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jtulach@63
   177
                                  </descriptors>
jtulach@63
   178
                              </configuration>
jtulach@63
   179
                          </execution>
jtulach@63
   180
                      </executions>                
jtulach@63
   181
                  </plugin>      
jtulach@63
   182
              </plugins>
jtulach@63
   183
          </build>
jtulach@63
   184
          <dependencies>
jtulach@63
   185
              <dependency>
jtulach@63
   186
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   187
                  <artifactId>emul</artifactId>
jtulach@63
   188
                  <version>${bck2brwsr.version}</version>
jtulach@63
   189
                  <classifier>rt</classifier>
jtulach@63
   190
              </dependency>
jtulach@63
   191
              <dependency>
jtulach@63
   192
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   193
                  <artifactId>ko-bck2brwsr</artifactId>
jtulach@63
   194
                  <version>${bck2brwsr.version}</version>
jtulach@63
   195
                  <scope>runtime</scope>
jtulach@63
   196
              </dependency>
jtulach@63
   197
              <dependency>
jtulach@63
   198
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   199
                  <artifactId>vm4brwsr</artifactId>
jtulach@63
   200
                  <classifier>js</classifier>
jtulach@63
   201
                  <type>zip</type>
jtulach@63
   202
                  <version>${bck2brwsr.version}</version>
jtulach@63
   203
                  <scope>provided</scope>
jtulach@63
   204
              </dependency>
jtulach@63
   205
          </dependencies>
jtulach@63
   206
      </profile>
jtulach@81
   207
      <profile>
jtulach@81
   208
          <id>dlvkbrwsr</id>
jtulach@81
   209
          <activation>
jtulach@81
   210
              <property>
jtulach@81
   211
                  <name>android.sdk.path</name>
jtulach@81
   212
              </property>
jtulach@81
   213
          </activation>
jtulach@81
   214
          <properties>
jtulach@81
   215
              <platform.version>4.1.1.4</platform.version>
jtulach@81
   216
              <android.plugin.version>3.7.0</android.plugin.version>
jtulach@81
   217
              <debug>false</debug>
jtulach@81
   218
          </properties>
jtulach@81
   219
          <dependencies>
jtulach@81
   220
              <dependency>
jtulach@81
   221
                  <groupId>com.google.android</groupId>
jtulach@81
   222
                  <artifactId>android</artifactId>
jtulach@81
   223
                  <version>${platform.version}</version>
jtulach@81
   224
                  <scope>provided</scope>
jtulach@81
   225
              </dependency>
jtulach@81
   226
              <dependency>
jtulach@81
   227
                  <groupId>org.netbeans.html</groupId>
jtulach@81
   228
                  <artifactId>ko-ws-tyrus</artifactId>
jtulach@81
   229
                  <version>${net.java.html.version}</version>
jtulach@81
   230
                  <exclusions>
jtulach@81
   231
                      <exclusion>
jtulach@81
   232
                          <artifactId>org.json-osgi</artifactId>
jtulach@81
   233
                          <groupId>de.twentyeleven.skysail</groupId>
jtulach@81
   234
                      </exclusion>
jtulach@81
   235
                  </exclusions>
jtulach@81
   236
              </dependency>
jtulach@81
   237
              <dependency>
jtulach@81
   238
                  <groupId>org.apidesign.html</groupId>
jtulach@81
   239
                  <artifactId>dlvkbrwsr</artifactId>
jtulach@81
   240
                  <version>0.1-SNAPSHOT</version>
jtulach@81
   241
                  <type>jar</type>
jtulach@81
   242
              </dependency>
jtulach@81
   243
          </dependencies>
jtulach@81
   244
          <build>
jtulach@81
   245
              <plugins>
jtulach@81
   246
                  <plugin>
jtulach@81
   247
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   248
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   249
                      <version>${android.plugin.version}</version>
jtulach@81
   250
                      <extensions>true</extensions>
jtulach@81
   251
                      <configuration>
jtulach@81
   252
                          <classifier>apk</classifier>
jtulach@81
   253
                          <attachJar>false</attachJar>
jtulach@81
   254
                          <apkDebug>debug</apkDebug>
jtulach@81
   255
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   256
                          <sdk>
jtulach@81
   257
                              <platform>16</platform>
jtulach@81
   258
                          </sdk>
jtulach@81
   259
                          <apk>
jtulach@81
   260
                              <metaIncludes>
jtulach@81
   261
                                  <metaInclude>services/org.apidesign.**</metaInclude>
jtulach@81
   262
                              </metaIncludes>
jtulach@81
   263
                          </apk>
jtulach@81
   264
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   265
                      </configuration>
jtulach@81
   266
                      <executions>
jtulach@81
   267
                          <execution>
jtulach@81
   268
                              <id>apk</id>
jtulach@81
   269
                              <goals>
jtulach@81
   270
                                  <goal>apk</goal>
jtulach@81
   271
                                  <goal>dex</goal>
jtulach@81
   272
                              </goals>
jtulach@81
   273
                          </execution>
jtulach@81
   274
                      </executions>
jtulach@81
   275
                  </plugin>
jtulach@81
   276
                  <plugin>
jtulach@81
   277
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   278
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   279
                      <version>2.5.1</version>
jtulach@81
   280
                      <configuration>
jtulach@81
   281
                          <groupId>${project.groupId}</groupId>
jtulach@81
   282
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   283
                          <version>${project.version}</version>
jtulach@81
   284
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   285
                          <packaging>apk</packaging>
jtulach@81
   286
                          <skip>true</skip>
jtulach@81
   287
                      </configuration>
jtulach@81
   288
                      <executions>
jtulach@81
   289
                          <execution>
jtulach@81
   290
                              <id>install-apk</id>
jtulach@81
   291
                              <phase>install</phase>
jtulach@81
   292
                              <goals>
jtulach@81
   293
                                  <goal>install-file</goal>
jtulach@81
   294
                              </goals>
jtulach@81
   295
                          </execution>
jtulach@81
   296
                      </executions>
jtulach@81
   297
                  </plugin>
jtulach@81
   298
              </plugins>
jtulach@81
   299
          </build>
jtulach@91
   300
      </profile>
jtulach@91
   301
      <profile>
jtulach@91
   302
          <id>teabrwsr</id>
jtulach@92
   303
          <properties>
jtulach@92
   304
              <teabrwsr>--</teabrwsr>
jtulach@92
   305
          </properties>
jtulach@91
   306
          <build>
jtulach@91
   307
              <plugins>
jtulach@91
   308
                  <plugin>
jtulach@91
   309
                      <groupId>org.teavm</groupId>
jtulach@91
   310
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@91
   311
                      <version>0.0.1-SNAPSHOT</version>
jtulach@91
   312
                      <dependencies>
jtulach@91
   313
                          <dependency>
jtulach@91
   314
                              <groupId>org.teavm</groupId>
jtulach@91
   315
                              <artifactId>teavm-classlib</artifactId>
jtulach@91
   316
                              <version>0.0.1-SNAPSHOT</version>
jtulach@91
   317
                          </dependency>
jtulach@91
   318
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@91
   319
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@91
   320
                          <dependency>
jtulach@91
   321
                              <groupId>org.teavm</groupId>
jtulach@91
   322
                              <artifactId>teavm-html4j</artifactId>
jtulach@91
   323
                              <version>0.0.1-SNAPSHOT</version>
jtulach@91
   324
                          </dependency>
jtulach@91
   325
                      </dependencies>
jtulach@91
   326
                      <executions>
jtulach@91
   327
                          <execution>
jtulach@91
   328
                              <id>generate-minesweeper</id>
jtulach@91
   329
                              <goals>
jtulach@91
   330
                                  <goal>build-javascript</goal>
jtulach@91
   331
                              </goals>
jtulach@91
   332
                              <phase>process-classes</phase>
jtulach@91
   333
                              <configuration>
jtulach@91
   334
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@91
   335
                                  <minifying>false</minifying>
jtulach@91
   336
                                  <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
jtulach@91
   337
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@91
   338
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@91
   339
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@91
   340
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@91
   341
                                  by default as we don't always need these null checks -->
jtulach@91
   342
                                  <transformers>
jtulach@91
   343
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@91
   344
                                  </transformers>
jtulach@91
   345
                              </configuration>
jtulach@91
   346
                          </execution>
jtulach@91
   347
                      </executions>
jtulach@91
   348
                  </plugin>
jtulach@91
   349
                  <plugin>
jtulach@91
   350
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@91
   351
                      <version>2.4</version>
jtulach@91
   352
                      <executions>
jtulach@91
   353
                          <execution>
jtulach@91
   354
                              <id>distro-assembly</id>
jtulach@91
   355
                              <phase>package</phase>
jtulach@91
   356
                              <goals>
jtulach@91
   357
                                  <goal>single</goal>
jtulach@91
   358
                              </goals>
jtulach@91
   359
                              <configuration>
jtulach@91
   360
                                  <descriptors>
jtulach@91
   361
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@91
   362
                                  </descriptors>
jtulach@91
   363
                              </configuration>
jtulach@91
   364
                          </execution>
jtulach@91
   365
                      </executions>                
jtulach@91
   366
                  </plugin>      
jtulach@91
   367
              </plugins>
jtulach@91
   368
          </build>
jtulach@81
   369
      </profile>
jtulach@63
   370
  </profiles>  
jtulach@63
   371
</project>