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.4-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>
30 <teavm.debug>false</teavm.debug>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-compiler-plugin</artifactId>
37 <version>2.3.2</version>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-jar-plugin</artifactId>
46 <version>2.4</version>
50 <mainClass>${project.mainclass}</mainClass>
51 <addClasspath>true</addClasspath>
52 <classpathPrefix>lib/</classpathPrefix>
58 <groupId>org.codehaus.mojo</groupId>
59 <artifactId>exec-maven-plugin</artifactId>
60 <version>1.2.1</version>
64 <key>browser.rootdir</key>
65 <value>${basedir}/src/main/webapp/</value>
68 <mainClass>${project.mainclass}</mainClass>
75 <groupId>org.netbeans.html</groupId>
76 <artifactId>net.java.html.json</artifactId>
77 <version>${net.java.html.version}</version>
80 <groupId>org.netbeans.html</groupId>
81 <artifactId>net.java.html.boot</artifactId>
82 <version>${net.java.html.version}</version>
85 <groupId>org.netbeans.html</groupId>
86 <artifactId>net.java.html</artifactId>
87 <version>${net.java.html.version}</version>
90 <groupId>org.netbeans.html</groupId>
91 <artifactId>net.java.html.sound</artifactId>
92 <version>${net.java.html.version}</version>
95 <groupId>org.netbeans.html</groupId>
96 <artifactId>ko4j</artifactId>
97 <version>${net.java.html.version}</version>
100 <groupId>org.netbeans.html</groupId>
101 <artifactId>nbrwsr</artifactId>
102 <version>${nb.html.version}</version>
103 <scope>provided</scope>
106 <groupId>com.oracle</groupId>
107 <artifactId>javafx</artifactId>
110 <groupId>org.netbeans.html</groupId>
111 <artifactId>net.java.html.boot</artifactId>
114 <groupId>org.netbeans.html</groupId>
115 <artifactId>net.java.html.boot.fx</artifactId>
120 <groupId>org.testng</groupId>
121 <artifactId>testng</artifactId>
122 <version>6.7</version>
130 <activeByDefault>true</activeByDefault>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-jar-plugin</artifactId>
137 <version>2.4</version>
141 <mainClass>${project.mainclass}</mainClass>
142 <addClasspath>true</addClasspath>
143 <classpathPrefix>lib/</classpathPrefix>
149 <artifactId>maven-assembly-plugin</artifactId>
150 <version>2.4</version>
153 <id>distro-assembly</id>
154 <phase>package</phase>
160 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
170 <groupId>org.netbeans.html</groupId>
171 <artifactId>net.java.html.boot.fx</artifactId>
172 <version>${net.java.html.version}</version>
173 <scope>runtime</scope>
181 <value>bck2brwsr</value>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-jar-plugin</artifactId>
190 <version>2.4</version>
194 <mainClass>${project.mainclass}</mainClass>
195 <addClasspath>true</addClasspath>
196 <classpathPrefix>lib/</classpathPrefix>
202 <groupId>org.apidesign.bck2brwsr</groupId>
203 <artifactId>bck2brwsr-maven-plugin</artifactId>
204 <version>${bck2brwsr.version}</version>
214 <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
215 <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
216 <startpage>index.html</startpage>
217 <classPathPrefix>lib</classPathPrefix>
218 <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
220 <export>org.apidesign.demo.minesweeper.MinesModel</export>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-compiler-plugin</artifactId>
229 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
234 <artifactId>maven-assembly-plugin</artifactId>
235 <version>2.4</version>
238 <id>distro-assembly</id>
239 <phase>package</phase>
245 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
255 <groupId>org.apidesign.bck2brwsr</groupId>
256 <artifactId>emul</artifactId>
257 <version>${bck2brwsr.version}</version>
258 <classifier>rt</classifier>
261 <groupId>org.netbeans.html</groupId>
262 <artifactId>net.java.html.boot</artifactId>
263 <version>${net.java.html.version}</version>
266 <artifactId>asm</artifactId>
267 <groupId>org.ow2.asm</groupId>
272 <groupId>org.apidesign.bck2brwsr</groupId>
273 <artifactId>ko-bck2brwsr</artifactId>
274 <version>${bck2brwsr.version}</version>
275 <scope>runtime</scope>
282 <platform.version>4.1.1.4</platform.version>
283 <android.plugin.version>3.7.0</android.plugin.version>
288 <groupId>com.google.android</groupId>
289 <artifactId>android</artifactId>
290 <version>${platform.version}</version>
291 <scope>provided</scope>
294 <groupId>org.apidesign.brwsr</groupId>
295 <artifactId>dlvkbrwsr</artifactId>
296 <version>1.0.1</version>
300 <groupId>org.netbeans.html</groupId>
301 <artifactId>ko-ws-tyrus</artifactId>
302 <version>${net.java.html.version}</version>
305 <artifactId>org.json-osgi</artifactId>
306 <groupId>de.twentyeleven.skysail</groupId>
314 <groupId>com.filmon.maven</groupId>
315 <artifactId>image-maven-plugin</artifactId>
316 <version>1.1</version>
323 <outputDirectory>target/res</outputDirectory>
326 <source>src/main/icons/DukeSweeper.png</source>
327 <destination>drawable-hdpi/ic_launcher.png</destination>
331 <source>src/main/icons/DukeSweeper.png</source>
332 <destination>drawable-mdpi/ic_launcher.png</destination>
336 <source>src/main/icons/DukeSweeper.png</source>
337 <destination>drawable-xhdpi/ic_launcher.png</destination>
341 <source>src/main/icons/DukeSweeper.png</source>
342 <destination>drawable-xxhdpi/ic_launcher.png</destination>
351 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
352 <artifactId>android-maven-plugin</artifactId>
353 <version>${android.plugin.version}</version>
354 <extensions>true</extensions>
356 <resourceDirectory>target/res</resourceDirectory>
357 <classifier>apk</classifier>
358 <attachJar>false</attachJar>
359 <apkDebug>debug</apkDebug>
360 <assetsDirectory>src/main/webapp</assetsDirectory>
362 <platform>19</platform>
366 <metaInclude>services/org.netbeans.**</metaInclude>
369 <extractDuplicates>true</extractDuplicates>
370 <file>${project.build.directory}/${project.build.finalName}.apk</file>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-install-plugin</artifactId>
385 <version>2.5.1</version>
387 <groupId>${project.groupId}</groupId>
388 <artifactId>${project.artifactId}</artifactId>
389 <version>${project.version}</version>
390 <file>${project.build.directory}/${project.build.finalName}.apk</file>
391 <packaging>apk</packaging>
397 <phase>install</phase>
399 <goal>install-file</goal>
412 <groupId>org.teavm</groupId>
413 <artifactId>teavm-maven-plugin</artifactId>
414 <version>${teavm.version}</version>
417 <groupId>org.teavm</groupId>
418 <artifactId>teavm-classlib</artifactId>
419 <version>${teavm.version}</version>
421 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
422 Also there are some little patches to JCL emulation, that are required to pass TCK -->
424 <groupId>org.teavm</groupId>
425 <artifactId>teavm-html4j</artifactId>
426 <version>${teavm.version}</version>
431 <id>generate-minesweeper</id>
433 <goal>build-javascript</goal>
435 <phase>process-classes</phase>
437 <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
438 <debugInformationGenerated>${teavm.debug}</debugInformationGenerated>
439 <sourceMapsGenerated>${teavm.debug}</sourceMapsGenerated>
440 <sourceFilesCopied>${teavm.debug}</sourceFilesCopied>
441 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
442 <minifying>false</minifying>
443 <!-- Don't include main page - we created it by ourselves -->
444 <mainPageIncluded>false</mainPageIncluded>
445 <!-- Merge runtime.js instead of putting as a separate file -->
446 <runtime>MERGED</runtime>
447 <!-- Name of the generated file -->
448 <targetFileName>bck2brwsr.js</targetFileName>
449 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
450 <!-- This transformer adds null checks before virtual calls. It is not included
451 by default as we don't always need these null checks -->
453 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
460 <artifactId>maven-assembly-plugin</artifactId>
461 <version>2.4</version>
464 <id>distro-assembly</id>
465 <phase>package</phase>
471 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
484 <groupId>org.apidesign.brwsr</groupId>
485 <artifactId>ibrwsr</artifactId>
486 <version>1.0.1</version>
487 <scope>runtime</scope>
493 <groupId>com.filmon.maven</groupId>
494 <artifactId>image-maven-plugin</artifactId>
495 <version>1.1</version>
502 <outputDirectory>target/images</outputDirectory>
505 <source>src/main/icons/DukeSweeper.png</source>
506 <destination>Icon.png</destination>
510 <source>src/main/icons/DukeSweeper.png</source>
511 <destination>Icon@2.png</destination>
515 <source>src/main/icons/DukeSweeper.png</source>
516 <destination>Icon-60.png</destination>
520 <source>src/main/icons/DukeSweeper.png</source>
521 <destination>Icon-60@2.png</destination>
525 <source>src/main/icons/DukeSweeper.png</source>
526 <destination>Icon-72.png</destination>
530 <source>src/main/icons/DukeSweeper.png</source>
531 <destination>Icon-76.png</destination>
540 <groupId>org.robovm</groupId>
541 <artifactId>robovm-maven-plugin</artifactId>
542 <version>0.0.14.1</version>
545 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
547 <pattern>java.util.logging.ConsoleHandler</pattern>
548 <pattern>java.util.logging.SimpleFormatter</pattern>
549 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
550 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
551 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
553 <executableName>MineSweeper</executableName>
555 <resource>src/main/webapp/pages</resource>
557 <targetPath>/</targetPath>
558 <directory>src/main/icons/</directory>
560 <include>Default*.png</include>
564 <targetPath>/</targetPath>
565 <directory>target/images/</directory>
567 <include>*.png</include>
571 <iosInfoPList>Info.plist.xml</iosInfoPList>
573 <includeJFX>false</includeJFX>
575 <iosSignIdentity>iPhone Distribution</iosSignIdentity>
576 <iosProvisioningProfile>9728E91B-1BB7-40D6-8922-3DD3BA5E6ECD</iosProvisioningProfile>
587 <groupId>org.netbeans.html</groupId>
588 <artifactId>nbrwsr</artifactId>
589 <version>${nb.html.version}</version>
590 <scope>compile</scope>
596 <groupId>org.apache.maven.plugins</groupId>
597 <artifactId>maven-resources-plugin</artifactId>
598 <version>2.6</version>
601 <id>include-webpages</id>
603 <goal>copy-resources</goal>
605 <phase>process-resources</phase>
607 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
608 <overwrite>true</overwrite>
611 <directory>src/main/webapp/pages</directory>
619 <groupId>org.codehaus.mojo</groupId>
620 <artifactId>nbm-maven-plugin</artifactId>
621 <version>3.13</version>
622 <extensions>true</extensions>
625 <id>default-manifest</id>
626 <phase>process-classes</phase>
628 <goal>manifest</goal>
631 <useOSGiDependencies>true</useOSGiDependencies>
632 <brandingToken>html4j4nb</brandingToken>
633 <cluster>extra</cluster>
634 <verifyIntegrity>false</verifyIntegrity>
639 <phase>package</phase>
644 <useOSGiDependencies>true</useOSGiDependencies>
645 <cluster>extra</cluster>
646 <verifyIntegrity>false</verifyIntegrity>
651 <useOSGiDependencies>true</useOSGiDependencies>
652 <brandingToken>html4j4nb</brandingToken>
653 <cluster>html4j4nb</cluster>
654 <verifyIntegrity>false</verifyIntegrity>
659 <groupId>org.apache.maven.plugins</groupId>
660 <artifactId>maven-jar-plugin</artifactId>
662 <!-- to have the jar plugin pickup the nbm generated manifest -->
663 <useDefaultManifestFile>true</useDefaultManifestFile>