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>
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>com.oracle</groupId>
106 <artifactId>javafx</artifactId>
111 <groupId>org.testng</groupId>
112 <artifactId>testng</artifactId>
113 <version>6.7</version>
121 <activeByDefault>true</activeByDefault>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-jar-plugin</artifactId>
128 <version>2.4</version>
132 <mainClass>${project.mainclass}</mainClass>
133 <addClasspath>true</addClasspath>
134 <classpathPrefix>lib/</classpathPrefix>
140 <artifactId>maven-assembly-plugin</artifactId>
141 <version>2.4</version>
144 <id>distro-assembly</id>
145 <phase>package</phase>
151 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
161 <groupId>org.netbeans.html</groupId>
162 <artifactId>net.java.html.boot.fx</artifactId>
163 <version>${net.java.html.version}</version>
164 <scope>runtime</scope>
172 <value>bck2brwsr</value>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-jar-plugin</artifactId>
181 <version>2.4</version>
185 <mainClass>${project.mainclass}</mainClass>
186 <addClasspath>true</addClasspath>
187 <classpathPrefix>lib/</classpathPrefix>
193 <groupId>org.apidesign.bck2brwsr</groupId>
194 <artifactId>bck2brwsr-maven-plugin</artifactId>
195 <version>${bck2brwsr.version}</version>
205 <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
206 <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
207 <startpage>index.html</startpage>
208 <classPathPrefix>lib</classPathPrefix>
209 <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
211 <export>org.apidesign.demo.minesweeper.MinesModel</export>
216 <groupId>org.apache.maven.plugins</groupId>
217 <artifactId>maven-compiler-plugin</artifactId>
220 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
225 <artifactId>maven-assembly-plugin</artifactId>
226 <version>2.4</version>
229 <id>distro-assembly</id>
230 <phase>package</phase>
236 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
246 <groupId>org.apidesign.bck2brwsr</groupId>
247 <artifactId>emul</artifactId>
248 <version>${bck2brwsr.version}</version>
249 <classifier>rt</classifier>
252 <groupId>org.netbeans.html</groupId>
253 <artifactId>net.java.html.boot</artifactId>
254 <version>${net.java.html.version}</version>
257 <artifactId>asm</artifactId>
258 <groupId>org.ow2.asm</groupId>
263 <groupId>org.apidesign.bck2brwsr</groupId>
264 <artifactId>ko-bck2brwsr</artifactId>
265 <version>${bck2brwsr.version}</version>
266 <scope>runtime</scope>
273 <platform.version>4.1.1.4</platform.version>
274 <android.plugin.version>3.7.0</android.plugin.version>
279 <groupId>com.google.android</groupId>
280 <artifactId>android</artifactId>
281 <version>${platform.version}</version>
282 <scope>provided</scope>
285 <groupId>org.apidesign.brwsr</groupId>
286 <artifactId>dlvkbrwsr</artifactId>
287 <version>1.0</version>
291 <groupId>org.netbeans.html</groupId>
292 <artifactId>ko-ws-tyrus</artifactId>
293 <version>${net.java.html.version}</version>
296 <artifactId>org.json-osgi</artifactId>
297 <groupId>de.twentyeleven.skysail</groupId>
305 <groupId>com.filmon.maven</groupId>
306 <artifactId>image-maven-plugin</artifactId>
307 <version>1.1</version>
314 <outputDirectory>target/res</outputDirectory>
317 <source>src/main/icons/DukeSweeper.png</source>
318 <destination>drawable-hdpi/ic_launcher.png</destination>
322 <source>src/main/icons/DukeSweeper.png</source>
323 <destination>drawable-mdpi/ic_launcher.png</destination>
327 <source>src/main/icons/DukeSweeper.png</source>
328 <destination>drawable-xhdpi/ic_launcher.png</destination>
332 <source>src/main/icons/DukeSweeper.png</source>
333 <destination>drawable-xxhdpi/ic_launcher.png</destination>
342 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
343 <artifactId>android-maven-plugin</artifactId>
344 <version>${android.plugin.version}</version>
345 <extensions>true</extensions>
347 <resourceDirectory>target/res</resourceDirectory>
348 <classifier>apk</classifier>
349 <attachJar>false</attachJar>
350 <apkDebug>debug</apkDebug>
351 <assetsDirectory>src/main/webapp</assetsDirectory>
353 <platform>19</platform>
357 <metaInclude>services/org.netbeans.**</metaInclude>
360 <extractDuplicates>true</extractDuplicates>
361 <file>${project.build.directory}/${project.build.finalName}.apk</file>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-install-plugin</artifactId>
376 <version>2.5.1</version>
378 <groupId>${project.groupId}</groupId>
379 <artifactId>${project.artifactId}</artifactId>
380 <version>${project.version}</version>
381 <file>${project.build.directory}/${project.build.finalName}.apk</file>
382 <packaging>apk</packaging>
388 <phase>install</phase>
390 <goal>install-file</goal>
403 <groupId>org.teavm</groupId>
404 <artifactId>teavm-maven-plugin</artifactId>
405 <version>${teavm.version}</version>
408 <groupId>org.teavm</groupId>
409 <artifactId>teavm-classlib</artifactId>
410 <version>${teavm.version}</version>
412 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
413 Also there are some little patches to JCL emulation, that are required to pass TCK -->
415 <groupId>org.teavm</groupId>
416 <artifactId>teavm-html4j</artifactId>
417 <version>${teavm.version}</version>
422 <id>generate-minesweeper</id>
424 <goal>build-javascript</goal>
426 <phase>process-classes</phase>
428 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
429 <minifying>false</minifying>
431 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
432 <html4j.entryPoints>org.apidesign.demo.minesweeper.MinesModel</html4j.entryPoints>
434 <!-- Don't include main page - we created it by ourselves -->
435 <mainPageIncluded>false</mainPageIncluded>
436 <!-- Merge runtime.js instead of putting as a separate file -->
437 <runtime>MERGED</runtime>
438 <!-- Name of the generated file -->
439 <targetFileName>bck2brwsr.js</targetFileName>
440 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
441 <!-- This transformer adds null checks before virtual calls. It is not included
442 by default as we don't always need these null checks -->
444 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
451 <artifactId>maven-assembly-plugin</artifactId>
452 <version>2.4</version>
455 <id>distro-assembly</id>
456 <phase>package</phase>
462 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
475 <groupId>org.apidesign.brwsr</groupId>
476 <artifactId>ibrwsr</artifactId>
477 <version>1.0</version>
478 <scope>runtime</scope>
484 <groupId>com.filmon.maven</groupId>
485 <artifactId>image-maven-plugin</artifactId>
486 <version>1.1</version>
493 <outputDirectory>target/images</outputDirectory>
496 <source>src/main/icons/DukeSweeper.png</source>
497 <destination>Icon.png</destination>
501 <source>src/main/icons/DukeSweeper.png</source>
502 <destination>Icon@2.png</destination>
506 <source>src/main/icons/DukeSweeper.png</source>
507 <destination>Icon-60.png</destination>
511 <source>src/main/icons/DukeSweeper.png</source>
512 <destination>Icon-60@2.png</destination>
516 <source>src/main/icons/DukeSweeper.png</source>
517 <destination>Icon-72.png</destination>
521 <source>src/main/icons/DukeSweeper.png</source>
522 <destination>Icon-76.png</destination>
531 <groupId>org.robovm</groupId>
532 <artifactId>robovm-maven-plugin</artifactId>
533 <version>0.0.14.1</version>
536 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
538 <pattern>java.util.logging.ConsoleHandler</pattern>
539 <pattern>java.util.logging.SimpleFormatter</pattern>
540 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
541 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
542 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
544 <executableName>MineSweeper</executableName>
546 <resource>src/main/webapp/pages</resource>
548 <targetPath>/</targetPath>
549 <directory>src/main/icons/</directory>
551 <include>Default*.png</include>
555 <targetPath>/</targetPath>
556 <directory>target/images/</directory>
558 <include>*.png</include>
562 <iosInfoPList>Info.plist.xml</iosInfoPList>
564 <includeJFX>false</includeJFX>
566 <iosSignIdentity>iPhone Distribution</iosSignIdentity>
567 <iosProvisioningProfile>9728E91B-1BB7-40D6-8922-3DD3BA5E6ECD</iosProvisioningProfile>
578 <groupId>org.netbeans.html</groupId>
579 <artifactId>nbrwsr</artifactId>
580 <version>${nb.html.version}</version>
581 <scope>compile</scope>
587 <groupId>org.apache.maven.plugins</groupId>
588 <artifactId>maven-resources-plugin</artifactId>
589 <version>2.6</version>
592 <id>include-webpages</id>
594 <goal>copy-resources</goal>
596 <phase>process-resources</phase>
598 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
599 <overwrite>true</overwrite>
602 <directory>src/main/webapp/pages</directory>
610 <groupId>org.codehaus.mojo</groupId>
611 <artifactId>nbm-maven-plugin</artifactId>
612 <version>3.13</version>
613 <extensions>true</extensions>
616 <id>default-manifest</id>
617 <phase>process-classes</phase>
619 <goal>manifest</goal>
622 <useOSGiDependencies>true</useOSGiDependencies>
623 <brandingToken>html4j4nb</brandingToken>
624 <cluster>extra</cluster>
625 <verifyIntegrity>false</verifyIntegrity>
630 <phase>package</phase>
635 <useOSGiDependencies>true</useOSGiDependencies>
636 <cluster>extra</cluster>
637 <verifyIntegrity>false</verifyIntegrity>
642 <useOSGiDependencies>true</useOSGiDependencies>
643 <brandingToken>html4j4nb</brandingToken>
644 <cluster>html4j4nb</cluster>
645 <verifyIntegrity>false</verifyIntegrity>
650 <groupId>org.apache.maven.plugins</groupId>
651 <artifactId>maven-jar-plugin</artifactId>
653 <!-- to have the jar plugin pickup the nbm generated manifest -->
654 <useDefaultManifestFile>true</useDefaultManifestFile>