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.
20 <url>http://html.java.net/</url>
22 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23 <brwsr.startpage>pages/index.html</brwsr.startpage>
24 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
25 <netbeans.compile.on.save>none</netbeans.compile.on.save>
30 <groupId>org.apache.maven.plugins</groupId>
31 <artifactId>maven-compiler-plugin</artifactId>
32 <version>2.3.2</version>
39 <groupId>org.apache.maven.plugins</groupId>
40 <artifactId>maven-jar-plugin</artifactId>
41 <version>2.4</version>
45 <mainClass>${project.mainclass}</mainClass>
46 <addClasspath>true</addClasspath>
47 <classpathPrefix>lib/</classpathPrefix>
53 <groupId>org.codehaus.mojo</groupId>
54 <artifactId>exec-maven-plugin</artifactId>
55 <version>1.2.1</version>
59 <key>browser.rootdir</key>
60 <value>${basedir}/src/main/webapp/</value>
63 <mainClass>${project.mainclass}</mainClass>
70 <groupId>org.netbeans.html</groupId>
71 <artifactId>net.java.html.json</artifactId>
72 <version>${net.java.html.version}</version>
75 <groupId>org.netbeans.html</groupId>
76 <artifactId>net.java.html.boot</artifactId>
77 <version>${net.java.html.version}</version>
80 <groupId>org.netbeans.html</groupId>
81 <artifactId>net.java.html</artifactId>
82 <version>${net.java.html.version}</version>
85 <groupId>org.netbeans.html</groupId>
86 <artifactId>net.java.html.sound</artifactId>
87 <version>${net.java.html.version}</version>
90 <groupId>org.netbeans.html</groupId>
91 <artifactId>ko4j</artifactId>
92 <version>${net.java.html.version}</version>
95 <groupId>org.netbeans.html</groupId>
96 <artifactId>nbrwsr</artifactId>
97 <version>${net.java.html.version}</version>
98 <scope>provided</scope>
101 <groupId>org.testng</groupId>
102 <artifactId>testng</artifactId>
103 <version>6.7</version>
111 <activeByDefault>true</activeByDefault>
116 <artifactId>maven-assembly-plugin</artifactId>
117 <version>2.4</version>
120 <id>distro-assembly</id>
121 <phase>package</phase>
127 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
137 <groupId>org.netbeans.html</groupId>
138 <artifactId>net.java.html.boot.fx</artifactId>
139 <version>${net.java.html.version}</version>
140 <scope>runtime</scope>
149 <value>bck2brwsr</value>
155 <groupId>org.apidesign.bck2brwsr</groupId>
156 <artifactId>bck2brwsr-maven-plugin</artifactId>
157 <version>${bck2brwsr.version}</version>
166 <directory>${basedir}/src/main/webapp/</directory>
167 <startpage>${brwsr.startpage}</startpage>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-compiler-plugin</artifactId>
175 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
180 <artifactId>maven-assembly-plugin</artifactId>
181 <version>2.4</version>
184 <id>distro-assembly</id>
185 <phase>package</phase>
191 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
201 <groupId>org.apidesign.bck2brwsr</groupId>
202 <artifactId>emul</artifactId>
203 <version>${bck2brwsr.version}</version>
204 <classifier>rt</classifier>
207 <groupId>org.apidesign.bck2brwsr</groupId>
208 <artifactId>ko-bck2brwsr</artifactId>
209 <version>${bck2brwsr.version}</version>
210 <scope>runtime</scope>
213 <groupId>org.apidesign.bck2brwsr</groupId>
214 <artifactId>vm4brwsr</artifactId>
215 <classifier>js</classifier>
217 <version>${bck2brwsr.version}</version>
218 <scope>provided</scope>
225 <platform.version>4.1.1.4</platform.version>
226 <android.plugin.version>3.7.0</android.plugin.version>
231 <groupId>com.google.android</groupId>
232 <artifactId>android</artifactId>
233 <version>${platform.version}</version>
234 <scope>provided</scope>
237 <groupId>org.apidesign.brwsr</groupId>
238 <artifactId>dlvkbrwsr</artifactId>
239 <version>0.5</version>
243 <groupId>org.netbeans.html</groupId>
244 <artifactId>ko-ws-tyrus</artifactId>
245 <version>${net.java.html.version}</version>
248 <artifactId>org.json-osgi</artifactId>
249 <groupId>de.twentyeleven.skysail</groupId>
257 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
258 <artifactId>android-maven-plugin</artifactId>
259 <version>${android.plugin.version}</version>
260 <extensions>true</extensions>
262 <classifier>apk</classifier>
263 <attachJar>false</attachJar>
264 <apkDebug>debug</apkDebug>
265 <assetsDirectory>src/main/webapp</assetsDirectory>
267 <platform>16</platform>
271 <metaInclude>services/org.apidesign.**</metaInclude>
274 <extractDuplicates>true</extractDuplicates>
275 <file>${project.build.directory}/${project.build.finalName}.apk</file>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-install-plugin</artifactId>
290 <version>2.5.1</version>
292 <groupId>${project.groupId}</groupId>
293 <artifactId>${project.artifactId}</artifactId>
294 <version>${project.version}</version>
295 <file>${project.build.directory}/${project.build.finalName}.apk</file>
296 <packaging>apk</packaging>
302 <phase>install</phase>
304 <goal>install-file</goal>
317 <groupId>org.teavm</groupId>
318 <artifactId>teavm-maven-plugin</artifactId>
319 <version>${teavm.version}</version>
322 <groupId>org.teavm</groupId>
323 <artifactId>teavm-classlib</artifactId>
324 <version>${teavm.version}</version>
326 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
327 Also there are some little patches to JCL emulation, that are required to pass TCK -->
329 <groupId>org.teavm</groupId>
330 <artifactId>teavm-html4j</artifactId>
331 <version>${teavm.version}</version>
336 <id>generate-minesweeper</id>
338 <goal>build-javascript</goal>
340 <phase>process-classes</phase>
342 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
343 <minifying>false</minifying>
345 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
346 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
348 <!-- Don't include main page - we created it by ourselves -->
349 <mainPageIncluded>false</mainPageIncluded>
350 <!-- Merge runtime.js instead of putting as a separate file -->
351 <runtime>MERGED</runtime>
352 <!-- Name of the generated file -->
353 <targetFileName>bck2brwsr.js</targetFileName>
354 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
355 <!-- This transformer adds null checks before virtual calls. It is not included
356 by default as we don't always need these null checks -->
358 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
365 <artifactId>maven-assembly-plugin</artifactId>
366 <version>2.4</version>
369 <id>distro-assembly</id>
370 <phase>package</phase>
376 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
389 <groupId>org.netbeans.html</groupId>
390 <artifactId>nbrwsr</artifactId>
391 <version>${net.java.html.version}</version>
392 <scope>compile</scope>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-resources-plugin</artifactId>
400 <version>2.6</version>
403 <id>include-webpages</id>
405 <goal>copy-resources</goal>
407 <phase>process-resources</phase>
409 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
410 <overwrite>true</overwrite>
413 <directory>src/main/webapp/pages</directory>
421 <groupId>org.codehaus.mojo</groupId>
422 <artifactId>nbm-maven-plugin</artifactId>
423 <version>3.13</version>
424 <extensions>true</extensions>
427 <id>default-manifest</id>
428 <phase>process-classes</phase>
430 <goal>manifest</goal>
433 <useOSGiDependencies>true</useOSGiDependencies>
434 <brandingToken>html4j4nb</brandingToken>
435 <cluster>html4j4nb</cluster>
436 <verifyIntegrity>false</verifyIntegrity>
441 <phase>package</phase>
446 <useOSGiDependencies>true</useOSGiDependencies>
447 <cluster>html4j4nb</cluster>
448 <verifyIntegrity>false</verifyIntegrity>
453 <useOSGiDependencies>true</useOSGiDependencies>
454 <brandingToken>html4j4nb</brandingToken>
455 <cluster>html4j4nb</cluster>
456 <verifyIntegrity>false</verifyIntegrity>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-jar-plugin</artifactId>
464 <!-- to have the jar plugin pickup the nbm generated manifest -->
465 <useDefaultManifestFile>true</useDefaultManifestFile>