Need to use 0.8.1 version of ibrwsr, as that one opens URLs in separate Safari window, which is needed for smooth operations of the current, links-rich main minesweeper page
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 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
28 <netbeans.compile.on.save>none</netbeans.compile.on.save>
29 <bck2brwsr.obfuscationlevel>FULL</bck2brwsr.obfuscationlevel>
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>
166 <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>
199 <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
200 <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
201 <startpage>index.html</startpage>
202 <classPathPrefix>lib</classPathPrefix>
203 <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
205 <export>org.apidesign.demo.minesweeper.MinesModel</export>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-compiler-plugin</artifactId>
214 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
219 <artifactId>maven-assembly-plugin</artifactId>
220 <version>2.4</version>
223 <id>distro-assembly</id>
224 <phase>package</phase>
230 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
240 <groupId>org.apidesign.bck2brwsr</groupId>
241 <artifactId>emul</artifactId>
242 <version>${bck2brwsr.version}</version>
243 <classifier>rt</classifier>
246 <groupId>org.netbeans.html</groupId>
247 <artifactId>net.java.html.boot</artifactId>
248 <version>${net.java.html.version}</version>
251 <artifactId>asm</artifactId>
252 <groupId>org.ow2.asm</groupId>
257 <groupId>org.apidesign.bck2brwsr</groupId>
258 <artifactId>ko-bck2brwsr</artifactId>
259 <version>${bck2brwsr.version}</version>
260 <scope>runtime</scope>
263 <groupId>org.apidesign.bck2brwsr</groupId>
264 <artifactId>vm4brwsr</artifactId>
265 <classifier>js</classifier>
267 <version>${bck2brwsr.version}</version>
268 <scope>provided</scope>
275 <platform.version>4.1.1.4</platform.version>
276 <android.plugin.version>3.7.0</android.plugin.version>
281 <groupId>com.google.android</groupId>
282 <artifactId>android</artifactId>
283 <version>${platform.version}</version>
284 <scope>provided</scope>
287 <groupId>org.apidesign.brwsr</groupId>
288 <artifactId>dlvkbrwsr</artifactId>
289 <version>0.8.1</version>
293 <groupId>org.netbeans.html</groupId>
294 <artifactId>ko-ws-tyrus</artifactId>
295 <version>${net.java.html.version}</version>
298 <artifactId>org.json-osgi</artifactId>
299 <groupId>de.twentyeleven.skysail</groupId>
307 <groupId>com.filmon.maven</groupId>
308 <artifactId>image-maven-plugin</artifactId>
309 <version>1.1</version>
316 <outputDirectory>target/res</outputDirectory>
319 <source>src/main/icons/DukeSweeper.png</source>
320 <destination>drawable-hdpi/ic_launcher.png</destination>
324 <source>src/main/icons/DukeSweeper.png</source>
325 <destination>drawable-mdpi/ic_launcher.png</destination>
329 <source>src/main/icons/DukeSweeper.png</source>
330 <destination>drawable-xhdpi/ic_launcher.png</destination>
334 <source>src/main/icons/DukeSweeper.png</source>
335 <destination>drawable-xxhdpi/ic_launcher.png</destination>
344 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
345 <artifactId>android-maven-plugin</artifactId>
346 <version>${android.plugin.version}</version>
347 <extensions>true</extensions>
349 <resourceDirectory>target/res</resourceDirectory>
350 <classifier>apk</classifier>
351 <attachJar>false</attachJar>
352 <apkDebug>debug</apkDebug>
353 <assetsDirectory>src/main/webapp</assetsDirectory>
355 <platform>19</platform>
359 <metaInclude>services/org.apidesign.**</metaInclude>
362 <extractDuplicates>true</extractDuplicates>
363 <file>${project.build.directory}/${project.build.finalName}.apk</file>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-install-plugin</artifactId>
378 <version>2.5.1</version>
380 <groupId>${project.groupId}</groupId>
381 <artifactId>${project.artifactId}</artifactId>
382 <version>${project.version}</version>
383 <file>${project.build.directory}/${project.build.finalName}.apk</file>
384 <packaging>apk</packaging>
390 <phase>install</phase>
392 <goal>install-file</goal>
405 <groupId>org.teavm</groupId>
406 <artifactId>teavm-maven-plugin</artifactId>
407 <version>${teavm.version}</version>
410 <groupId>org.teavm</groupId>
411 <artifactId>teavm-classlib</artifactId>
412 <version>${teavm.version}</version>
414 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
415 Also there are some little patches to JCL emulation, that are required to pass TCK -->
417 <groupId>org.teavm</groupId>
418 <artifactId>teavm-html4j</artifactId>
419 <version>${teavm.version}</version>
424 <id>generate-minesweeper</id>
426 <goal>build-javascript</goal>
428 <phase>process-classes</phase>
430 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
431 <minifying>false</minifying>
433 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
434 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
436 <!-- Don't include main page - we created it by ourselves -->
437 <mainPageIncluded>false</mainPageIncluded>
438 <!-- Merge runtime.js instead of putting as a separate file -->
439 <runtime>MERGED</runtime>
440 <!-- Name of the generated file -->
441 <targetFileName>bck2brwsr.js</targetFileName>
442 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
443 <!-- This transformer adds null checks before virtual calls. It is not included
444 by default as we don't always need these null checks -->
446 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
453 <artifactId>maven-assembly-plugin</artifactId>
454 <version>2.4</version>
457 <id>distro-assembly</id>
458 <phase>package</phase>
464 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
477 <groupId>org.apidesign.brwsr</groupId>
478 <artifactId>ibrwsr</artifactId>
479 <version>0.8.1</version>
480 <scope>runtime</scope>
486 <groupId>com.filmon.maven</groupId>
487 <artifactId>image-maven-plugin</artifactId>
488 <version>1.1</version>
495 <outputDirectory>target/images</outputDirectory>
498 <source>src/main/icons/DukeSweeper.png</source>
499 <destination>Icon.png</destination>
503 <source>src/main/icons/DukeSweeper.png</source>
504 <destination>Icon@2.png</destination>
508 <source>src/main/icons/DukeSweeper.png</source>
509 <destination>Icon-60.png</destination>
513 <source>src/main/icons/DukeSweeper.png</source>
514 <destination>Icon-60@2.png</destination>
518 <source>src/main/icons/DukeSweeper.png</source>
519 <destination>Icon-72.png</destination>
523 <source>src/main/icons/DukeSweeper.png</source>
524 <destination>Icon-76.png</destination>
533 <groupId>org.robovm</groupId>
534 <artifactId>robovm-maven-plugin</artifactId>
535 <version>0.0.13.1</version>
538 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
540 <pattern>java.util.logging.ConsoleHandler</pattern>
541 <pattern>java.util.logging.SimpleFormatter</pattern>
542 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
543 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
544 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
546 <executableName>MineSweeper</executableName>
548 <resource>src/main/webapp/pages</resource>
550 <targetPath>/</targetPath>
551 <directory>src/main/icons/</directory>
553 <include>Default*.png</include>
557 <targetPath>/</targetPath>
558 <directory>target/images/</directory>
560 <include>*.png</include>
565 <includeJFX>false</includeJFX>
575 <groupId>org.netbeans.html</groupId>
576 <artifactId>nbrwsr</artifactId>
577 <version>${nb.html.version}</version>
578 <scope>compile</scope>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-resources-plugin</artifactId>
586 <version>2.6</version>
589 <id>include-webpages</id>
591 <goal>copy-resources</goal>
593 <phase>process-resources</phase>
595 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
596 <overwrite>true</overwrite>
599 <directory>src/main/webapp/pages</directory>
607 <groupId>org.codehaus.mojo</groupId>
608 <artifactId>nbm-maven-plugin</artifactId>
609 <version>3.13</version>
610 <extensions>true</extensions>
613 <id>default-manifest</id>
614 <phase>process-classes</phase>
616 <goal>manifest</goal>
619 <useOSGiDependencies>true</useOSGiDependencies>
620 <brandingToken>html4j4nb</brandingToken>
621 <cluster>extra</cluster>
622 <verifyIntegrity>false</verifyIntegrity>
627 <phase>package</phase>
632 <useOSGiDependencies>true</useOSGiDependencies>
633 <cluster>extra</cluster>
634 <verifyIntegrity>false</verifyIntegrity>
639 <useOSGiDependencies>true</useOSGiDependencies>
640 <brandingToken>html4j4nb</brandingToken>
641 <cluster>html4j4nb</cluster>
642 <verifyIntegrity>false</verifyIntegrity>
647 <groupId>org.apache.maven.plugins</groupId>
648 <artifactId>maven-jar-plugin</artifactId>
650 <!-- to have the jar plugin pickup the nbm generated manifest -->
651 <useDefaultManifestFile>true</useDefaultManifestFile>