1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.apidesign.demo</groupId>
6 <artifactId>minesweeper</artifactId>
7 <version>2.0-SNAPSHOT</version>
8 <packaging>jar</packaging>
10 <artifactId>demo</artifactId>
11 <groupId>org.apidesign.html</groupId>
12 <version>1.0-SNAPSHOT</version>
15 <name>Mine Sweeper</name>
17 Demonstration of DukeScript rendering technology.
18 Plus old, good, simple and entertaining game.
19 Improve your coding skills by playing a game and
20 meanwhile learn what a rendering technology of the
21 future is going to look like. Learn to use DukeScript:
22 Write once, display (and deploy) anywhere!
24 <url>http://html.java.net/</url>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27 <brwsr.startpage>pages/index.html</brwsr.startpage>
28 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
29 <netbeans.compile.on.save>none</netbeans.compile.on.save>
34 <groupId>org.apache.maven.plugins</groupId>
35 <artifactId>maven-compiler-plugin</artifactId>
36 <version>2.3.2</version>
43 <groupId>org.apache.maven.plugins</groupId>
44 <artifactId>maven-jar-plugin</artifactId>
45 <version>2.4</version>
49 <mainClass>${project.mainclass}</mainClass>
50 <addClasspath>true</addClasspath>
51 <classpathPrefix>lib/</classpathPrefix>
57 <groupId>org.codehaus.mojo</groupId>
58 <artifactId>exec-maven-plugin</artifactId>
59 <version>1.2.1</version>
63 <key>browser.rootdir</key>
64 <value>${basedir}/src/main/webapp/</value>
67 <mainClass>${project.mainclass}</mainClass>
74 <groupId>org.netbeans.html</groupId>
75 <artifactId>net.java.html.json</artifactId>
76 <version>${net.java.html.version}</version>
79 <groupId>org.netbeans.html</groupId>
80 <artifactId>net.java.html.boot</artifactId>
81 <version>${net.java.html.version}</version>
84 <groupId>org.netbeans.html</groupId>
85 <artifactId>net.java.html</artifactId>
86 <version>${net.java.html.version}</version>
89 <groupId>org.netbeans.html</groupId>
90 <artifactId>net.java.html.sound</artifactId>
91 <version>${net.java.html.version}</version>
94 <groupId>org.netbeans.html</groupId>
95 <artifactId>ko4j</artifactId>
96 <version>${net.java.html.version}</version>
99 <groupId>org.netbeans.html</groupId>
100 <artifactId>nbrwsr</artifactId>
101 <version>${nb.html.version}</version>
102 <scope>provided</scope>
105 <groupId>org.testng</groupId>
106 <artifactId>testng</artifactId>
107 <version>6.7</version>
115 <activeByDefault>true</activeByDefault>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-jar-plugin</artifactId>
122 <version>2.4</version>
126 <mainClass>${project.mainclass}</mainClass>
127 <addClasspath>true</addClasspath>
128 <classpathPrefix>lib/</classpathPrefix>
134 <artifactId>maven-assembly-plugin</artifactId>
135 <version>2.4</version>
138 <id>distro-assembly</id>
139 <phase>package</phase>
145 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
155 <groupId>org.netbeans.html</groupId>
156 <artifactId>net.java.html.boot.fx</artifactId>
157 <version>${net.java.html.version}</version>
158 <scope>runtime</scope>
167 <value>bck2brwsr</value>
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-jar-plugin</artifactId>
175 <version>2.4</version>
179 <mainClass>${project.mainclass}</mainClass>
180 <addClasspath>true</addClasspath>
181 <classpathPrefix>lib/</classpathPrefix>
187 <groupId>org.apidesign.bck2brwsr</groupId>
188 <artifactId>bck2brwsr-maven-plugin</artifactId>
189 <version>${bck2brwsr.version}</version>
198 <directory>${basedir}/src/main/webapp/</directory>
199 <startpage>${brwsr.startpage}</startpage>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-compiler-plugin</artifactId>
207 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
212 <artifactId>maven-assembly-plugin</artifactId>
213 <version>2.4</version>
216 <id>distro-assembly</id>
217 <phase>package</phase>
223 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
233 <groupId>org.apidesign.bck2brwsr</groupId>
234 <artifactId>emul</artifactId>
235 <version>${bck2brwsr.version}</version>
236 <classifier>rt</classifier>
239 <groupId>org.apidesign.bck2brwsr</groupId>
240 <artifactId>ko-bck2brwsr</artifactId>
241 <version>${bck2brwsr.version}</version>
242 <scope>runtime</scope>
245 <groupId>org.apidesign.bck2brwsr</groupId>
246 <artifactId>vm4brwsr</artifactId>
247 <classifier>js</classifier>
249 <version>${bck2brwsr.version}</version>
250 <scope>provided</scope>
257 <platform.version>4.1.1.4</platform.version>
258 <android.plugin.version>3.7.0</android.plugin.version>
263 <groupId>com.google.android</groupId>
264 <artifactId>android</artifactId>
265 <version>${platform.version}</version>
266 <scope>provided</scope>
269 <groupId>org.apidesign.brwsr</groupId>
270 <artifactId>dlvkbrwsr</artifactId>
271 <version>0.5</version>
275 <groupId>org.netbeans.html</groupId>
276 <artifactId>ko-ws-tyrus</artifactId>
277 <version>${net.java.html.version}</version>
280 <artifactId>org.json-osgi</artifactId>
281 <groupId>de.twentyeleven.skysail</groupId>
289 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
290 <artifactId>android-maven-plugin</artifactId>
291 <version>${android.plugin.version}</version>
292 <extensions>true</extensions>
294 <classifier>apk</classifier>
295 <attachJar>false</attachJar>
296 <apkDebug>debug</apkDebug>
297 <assetsDirectory>src/main/webapp</assetsDirectory>
299 <platform>16</platform>
303 <metaInclude>services/org.apidesign.**</metaInclude>
306 <extractDuplicates>true</extractDuplicates>
307 <file>${project.build.directory}/${project.build.finalName}.apk</file>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-install-plugin</artifactId>
322 <version>2.5.1</version>
324 <groupId>${project.groupId}</groupId>
325 <artifactId>${project.artifactId}</artifactId>
326 <version>${project.version}</version>
327 <file>${project.build.directory}/${project.build.finalName}.apk</file>
328 <packaging>apk</packaging>
334 <phase>install</phase>
336 <goal>install-file</goal>
349 <groupId>org.teavm</groupId>
350 <artifactId>teavm-maven-plugin</artifactId>
351 <version>${teavm.version}</version>
354 <groupId>org.teavm</groupId>
355 <artifactId>teavm-classlib</artifactId>
356 <version>${teavm.version}</version>
358 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
359 Also there are some little patches to JCL emulation, that are required to pass TCK -->
361 <groupId>org.teavm</groupId>
362 <artifactId>teavm-html4j</artifactId>
363 <version>${teavm.version}</version>
368 <id>generate-minesweeper</id>
370 <goal>build-javascript</goal>
372 <phase>process-classes</phase>
374 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
375 <minifying>false</minifying>
377 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
378 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
380 <!-- Don't include main page - we created it by ourselves -->
381 <mainPageIncluded>false</mainPageIncluded>
382 <!-- Merge runtime.js instead of putting as a separate file -->
383 <runtime>MERGED</runtime>
384 <!-- Name of the generated file -->
385 <targetFileName>bck2brwsr.js</targetFileName>
386 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
387 <!-- This transformer adds null checks before virtual calls. It is not included
388 by default as we don't always need these null checks -->
390 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
397 <artifactId>maven-assembly-plugin</artifactId>
398 <version>2.4</version>
401 <id>distro-assembly</id>
402 <phase>package</phase>
408 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
421 <groupId>org.apidesign.brwsr</groupId>
422 <artifactId>ibrwsr</artifactId>
423 <version>1.0-SNAPSHOT</version>
424 <scope>runtime</scope>
430 <groupId>org.robovm</groupId>
431 <artifactId>robovm-maven-plugin</artifactId>
432 <version>0.0.11.1</version>
435 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
437 <pattern>java.util.logging.ConsoleHandler</pattern>
438 <pattern>java.util.logging.SimpleFormatter</pattern>
439 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
440 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
441 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
443 <executableName>MineSweeper</executableName>
445 <resource>src/main/webapp/pages/</resource>
448 <includeJFX>false</includeJFX>
458 <groupId>org.netbeans.html</groupId>
459 <artifactId>nbrwsr</artifactId>
460 <version>${nb.html.version}</version>
461 <scope>compile</scope>
467 <groupId>org.apache.maven.plugins</groupId>
468 <artifactId>maven-resources-plugin</artifactId>
469 <version>2.6</version>
472 <id>include-webpages</id>
474 <goal>copy-resources</goal>
476 <phase>process-resources</phase>
478 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
479 <overwrite>true</overwrite>
482 <directory>src/main/webapp/pages</directory>
490 <groupId>org.codehaus.mojo</groupId>
491 <artifactId>nbm-maven-plugin</artifactId>
492 <version>3.13</version>
493 <extensions>true</extensions>
496 <id>default-manifest</id>
497 <phase>process-classes</phase>
499 <goal>manifest</goal>
502 <useOSGiDependencies>true</useOSGiDependencies>
503 <brandingToken>html4j4nb</brandingToken>
504 <cluster>extra</cluster>
505 <verifyIntegrity>false</verifyIntegrity>
510 <phase>package</phase>
515 <useOSGiDependencies>true</useOSGiDependencies>
516 <cluster>extra</cluster>
517 <verifyIntegrity>false</verifyIntegrity>
522 <useOSGiDependencies>true</useOSGiDependencies>
523 <brandingToken>html4j4nb</brandingToken>
524 <cluster>html4j4nb</cluster>
525 <verifyIntegrity>false</verifyIntegrity>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-jar-plugin</artifactId>
533 <!-- to have the jar plugin pickup the nbm generated manifest -->
534 <useDefaultManifestFile>true</useDefaultManifestFile>