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>1.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 entertainin 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>${net.java.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 <artifactId>maven-assembly-plugin</artifactId>
121 <version>2.4</version>
124 <id>distro-assembly</id>
125 <phase>package</phase>
131 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
141 <groupId>org.netbeans.html</groupId>
142 <artifactId>net.java.html.boot.fx</artifactId>
143 <version>${net.java.html.version}</version>
144 <scope>runtime</scope>
153 <value>bck2brwsr</value>
159 <groupId>org.apidesign.bck2brwsr</groupId>
160 <artifactId>bck2brwsr-maven-plugin</artifactId>
161 <version>${bck2brwsr.version}</version>
170 <directory>${basedir}/src/main/webapp/</directory>
171 <startpage>${brwsr.startpage}</startpage>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-compiler-plugin</artifactId>
179 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
184 <artifactId>maven-assembly-plugin</artifactId>
185 <version>2.4</version>
188 <id>distro-assembly</id>
189 <phase>package</phase>
195 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
205 <groupId>org.apidesign.bck2brwsr</groupId>
206 <artifactId>emul</artifactId>
207 <version>${bck2brwsr.version}</version>
208 <classifier>rt</classifier>
211 <groupId>org.apidesign.bck2brwsr</groupId>
212 <artifactId>ko-bck2brwsr</artifactId>
213 <version>${bck2brwsr.version}</version>
214 <scope>runtime</scope>
217 <groupId>org.apidesign.bck2brwsr</groupId>
218 <artifactId>vm4brwsr</artifactId>
219 <classifier>js</classifier>
221 <version>${bck2brwsr.version}</version>
222 <scope>provided</scope>
229 <platform.version>4.1.1.4</platform.version>
230 <android.plugin.version>3.7.0</android.plugin.version>
235 <groupId>com.google.android</groupId>
236 <artifactId>android</artifactId>
237 <version>${platform.version}</version>
238 <scope>provided</scope>
241 <groupId>org.apidesign.brwsr</groupId>
242 <artifactId>dlvkbrwsr</artifactId>
243 <version>0.5</version>
247 <groupId>org.netbeans.html</groupId>
248 <artifactId>ko-ws-tyrus</artifactId>
249 <version>${net.java.html.version}</version>
252 <artifactId>org.json-osgi</artifactId>
253 <groupId>de.twentyeleven.skysail</groupId>
261 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
262 <artifactId>android-maven-plugin</artifactId>
263 <version>${android.plugin.version}</version>
264 <extensions>true</extensions>
266 <classifier>apk</classifier>
267 <attachJar>false</attachJar>
268 <apkDebug>debug</apkDebug>
269 <assetsDirectory>src/main/webapp</assetsDirectory>
271 <platform>16</platform>
275 <metaInclude>services/org.apidesign.**</metaInclude>
278 <extractDuplicates>true</extractDuplicates>
279 <file>${project.build.directory}/${project.build.finalName}.apk</file>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-install-plugin</artifactId>
294 <version>2.5.1</version>
296 <groupId>${project.groupId}</groupId>
297 <artifactId>${project.artifactId}</artifactId>
298 <version>${project.version}</version>
299 <file>${project.build.directory}/${project.build.finalName}.apk</file>
300 <packaging>apk</packaging>
306 <phase>install</phase>
308 <goal>install-file</goal>
321 <groupId>org.teavm</groupId>
322 <artifactId>teavm-maven-plugin</artifactId>
323 <version>${teavm.version}</version>
326 <groupId>org.teavm</groupId>
327 <artifactId>teavm-classlib</artifactId>
328 <version>${teavm.version}</version>
330 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
331 Also there are some little patches to JCL emulation, that are required to pass TCK -->
333 <groupId>org.teavm</groupId>
334 <artifactId>teavm-html4j</artifactId>
335 <version>${teavm.version}</version>
340 <id>generate-minesweeper</id>
342 <goal>build-javascript</goal>
344 <phase>process-classes</phase>
346 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
347 <minifying>false</minifying>
349 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
350 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
352 <!-- Don't include main page - we created it by ourselves -->
353 <mainPageIncluded>false</mainPageIncluded>
354 <!-- Merge runtime.js instead of putting as a separate file -->
355 <runtime>MERGED</runtime>
356 <!-- Name of the generated file -->
357 <targetFileName>bck2brwsr.js</targetFileName>
358 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
359 <!-- This transformer adds null checks before virtual calls. It is not included
360 by default as we don't always need these null checks -->
362 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
369 <artifactId>maven-assembly-plugin</artifactId>
370 <version>2.4</version>
373 <id>distro-assembly</id>
374 <phase>package</phase>
380 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
393 <groupId>org.netbeans.html</groupId>
394 <artifactId>nbrwsr</artifactId>
395 <version>${net.java.html.version}</version>
396 <scope>compile</scope>
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-resources-plugin</artifactId>
404 <version>2.6</version>
407 <id>include-webpages</id>
409 <goal>copy-resources</goal>
411 <phase>process-resources</phase>
413 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
414 <overwrite>true</overwrite>
417 <directory>src/main/webapp/pages</directory>
425 <groupId>org.codehaus.mojo</groupId>
426 <artifactId>nbm-maven-plugin</artifactId>
427 <version>3.13</version>
428 <extensions>true</extensions>
431 <id>default-manifest</id>
432 <phase>process-classes</phase>
434 <goal>manifest</goal>
437 <useOSGiDependencies>true</useOSGiDependencies>
438 <brandingToken>html4j4nb</brandingToken>
439 <cluster>extra</cluster>
440 <verifyIntegrity>false</verifyIntegrity>
445 <phase>package</phase>
450 <useOSGiDependencies>true</useOSGiDependencies>
451 <cluster>extra</cluster>
452 <verifyIntegrity>false</verifyIntegrity>
457 <useOSGiDependencies>true</useOSGiDependencies>
458 <brandingToken>html4j4nb</brandingToken>
459 <cluster>html4j4nb</cluster>
460 <verifyIntegrity>false</verifyIntegrity>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-jar-plugin</artifactId>
468 <!-- to have the jar plugin pickup the nbm generated manifest -->
469 <useDefaultManifestFile>true</useDefaultManifestFile>