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.6</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.filmon.maven</groupId>
290 <artifactId>image-maven-plugin</artifactId>
291 <version>1.1</version>
298 <outputDirectory>target/res</outputDirectory>
301 <source>src/main/icons/DukeSweeper.png</source>
302 <destination>drawable-hdpi/ic_launcher.png</destination>
306 <source>src/main/icons/DukeSweeper.png</source>
307 <destination>drawable-mdpi/ic_launcher.png</destination>
311 <source>src/main/icons/DukeSweeper.png</source>
312 <destination>drawable-xhdpi/ic_launcher.png</destination>
316 <source>src/main/icons/DukeSweeper.png</source>
317 <destination>drawable-xxhdpi/ic_launcher.png</destination>
326 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
327 <artifactId>android-maven-plugin</artifactId>
328 <version>${android.plugin.version}</version>
329 <extensions>true</extensions>
331 <resourceDirectory>target/res</resourceDirectory>
332 <classifier>apk</classifier>
333 <attachJar>false</attachJar>
334 <apkDebug>debug</apkDebug>
335 <assetsDirectory>src/main/webapp</assetsDirectory>
337 <platform>19</platform>
341 <metaInclude>services/org.apidesign.**</metaInclude>
344 <extractDuplicates>true</extractDuplicates>
345 <file>${project.build.directory}/${project.build.finalName}.apk</file>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-install-plugin</artifactId>
360 <version>2.5.1</version>
362 <groupId>${project.groupId}</groupId>
363 <artifactId>${project.artifactId}</artifactId>
364 <version>${project.version}</version>
365 <file>${project.build.directory}/${project.build.finalName}.apk</file>
366 <packaging>apk</packaging>
372 <phase>install</phase>
374 <goal>install-file</goal>
387 <groupId>org.teavm</groupId>
388 <artifactId>teavm-maven-plugin</artifactId>
389 <version>${teavm.version}</version>
392 <groupId>org.teavm</groupId>
393 <artifactId>teavm-classlib</artifactId>
394 <version>${teavm.version}</version>
396 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
397 Also there are some little patches to JCL emulation, that are required to pass TCK -->
399 <groupId>org.teavm</groupId>
400 <artifactId>teavm-html4j</artifactId>
401 <version>${teavm.version}</version>
406 <id>generate-minesweeper</id>
408 <goal>build-javascript</goal>
410 <phase>process-classes</phase>
412 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
413 <minifying>false</minifying>
415 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
416 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
418 <!-- Don't include main page - we created it by ourselves -->
419 <mainPageIncluded>false</mainPageIncluded>
420 <!-- Merge runtime.js instead of putting as a separate file -->
421 <runtime>MERGED</runtime>
422 <!-- Name of the generated file -->
423 <targetFileName>bck2brwsr.js</targetFileName>
424 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
425 <!-- This transformer adds null checks before virtual calls. It is not included
426 by default as we don't always need these null checks -->
428 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
435 <artifactId>maven-assembly-plugin</artifactId>
436 <version>2.4</version>
439 <id>distro-assembly</id>
440 <phase>package</phase>
446 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
459 <groupId>org.apidesign.brwsr</groupId>
460 <artifactId>ibrwsr</artifactId>
461 <version>0.6</version>
462 <scope>runtime</scope>
468 <groupId>com.filmon.maven</groupId>
469 <artifactId>image-maven-plugin</artifactId>
470 <version>1.1</version>
477 <outputDirectory>target/images</outputDirectory>
480 <source>src/main/icons/DukeSweeper.png</source>
481 <destination>Icon.png</destination>
485 <source>src/main/icons/DukeSweeper.png</source>
486 <destination>Icon@2.png</destination>
490 <source>src/main/icons/DukeSweeper.png</source>
491 <destination>Icon-60.png</destination>
495 <source>src/main/icons/DukeSweeper.png</source>
496 <destination>Icon-60@2.png</destination>
500 <source>src/main/icons/DukeSweeper.png</source>
501 <destination>Icon-72.png</destination>
505 <source>src/main/icons/DukeSweeper.png</source>
506 <destination>Icon-76.png</destination>
515 <groupId>org.robovm</groupId>
516 <artifactId>robovm-maven-plugin</artifactId>
517 <version>0.0.11.1</version>
520 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
522 <pattern>java.util.logging.ConsoleHandler</pattern>
523 <pattern>java.util.logging.SimpleFormatter</pattern>
524 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
525 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
526 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
528 <executableName>MineSweeper</executableName>
530 <resource>src/main/webapp/pages</resource>
532 <targetPath>/</targetPath>
533 <directory>src/main/icons/</directory>
535 <include>Default*.png</include>
539 <targetPath>/</targetPath>
540 <directory>target/images/</directory>
542 <include>*.png</include>
547 <includeJFX>false</includeJFX>
557 <groupId>org.netbeans.html</groupId>
558 <artifactId>nbrwsr</artifactId>
559 <version>${nb.html.version}</version>
560 <scope>compile</scope>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-resources-plugin</artifactId>
568 <version>2.6</version>
571 <id>include-webpages</id>
573 <goal>copy-resources</goal>
575 <phase>process-resources</phase>
577 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
578 <overwrite>true</overwrite>
581 <directory>src/main/webapp/pages</directory>
589 <groupId>org.codehaus.mojo</groupId>
590 <artifactId>nbm-maven-plugin</artifactId>
591 <version>3.13</version>
592 <extensions>true</extensions>
595 <id>default-manifest</id>
596 <phase>process-classes</phase>
598 <goal>manifest</goal>
601 <useOSGiDependencies>true</useOSGiDependencies>
602 <brandingToken>html4j4nb</brandingToken>
603 <cluster>extra</cluster>
604 <verifyIntegrity>false</verifyIntegrity>
609 <phase>package</phase>
614 <useOSGiDependencies>true</useOSGiDependencies>
615 <cluster>extra</cluster>
616 <verifyIntegrity>false</verifyIntegrity>
621 <useOSGiDependencies>true</useOSGiDependencies>
622 <brandingToken>html4j4nb</brandingToken>
623 <cluster>html4j4nb</cluster>
624 <verifyIntegrity>false</verifyIntegrity>
629 <groupId>org.apache.maven.plugins</groupId>
630 <artifactId>maven-jar-plugin</artifactId>
632 <!-- to have the jar plugin pickup the nbm generated manifest -->
633 <useDefaultManifestFile>true</useDefaultManifestFile>