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>
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 <brwsr.startpage>pages/index.html</brwsr.startpage>
20 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
21 <netbeans.compile.on.save>none</netbeans.compile.on.save>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-compiler-plugin</artifactId>
28 <version>2.3.2</version>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-jar-plugin</artifactId>
37 <version>2.4</version>
41 <mainClass>${project.mainclass}</mainClass>
42 <addClasspath>true</addClasspath>
43 <classpathPrefix>lib/</classpathPrefix>
49 <groupId>org.codehaus.mojo</groupId>
50 <artifactId>exec-maven-plugin</artifactId>
51 <version>1.2.1</version>
55 <key>browser.rootdir</key>
56 <value>${basedir}/src/main/webapp/</value>
59 <mainClass>${project.mainclass}</mainClass>
66 <groupId>org.netbeans.html</groupId>
67 <artifactId>net.java.html.json</artifactId>
68 <version>${net.java.html.version}</version>
71 <groupId>org.netbeans.html</groupId>
72 <artifactId>net.java.html.boot</artifactId>
73 <version>${net.java.html.version}</version>
76 <groupId>org.netbeans.html</groupId>
77 <artifactId>net.java.html</artifactId>
78 <version>${net.java.html.version}</version>
81 <groupId>org.netbeans.html</groupId>
82 <artifactId>net.java.html.sound</artifactId>
83 <version>${net.java.html.version}</version>
86 <groupId>org.netbeans.html</groupId>
87 <artifactId>ko4j</artifactId>
88 <version>${net.java.html.version}</version>
91 <groupId>org.netbeans.html</groupId>
92 <artifactId>nbrwsr</artifactId>
93 <version>${net.java.html.version}</version>
94 <scope>provided</scope>
97 <groupId>org.testng</groupId>
98 <artifactId>testng</artifactId>
99 <version>6.7</version>
107 <activeByDefault>true</activeByDefault>
112 <artifactId>maven-assembly-plugin</artifactId>
113 <version>2.4</version>
116 <id>distro-assembly</id>
117 <phase>package</phase>
123 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
133 <groupId>org.netbeans.html</groupId>
134 <artifactId>net.java.html.boot.fx</artifactId>
135 <version>${net.java.html.version}</version>
136 <scope>runtime</scope>
145 <value>bck2brwsr</value>
151 <groupId>org.apidesign.bck2brwsr</groupId>
152 <artifactId>bck2brwsr-maven-plugin</artifactId>
153 <version>${bck2brwsr.version}</version>
162 <directory>${basedir}/src/main/webapp/</directory>
163 <startpage>${brwsr.startpage}</startpage>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-compiler-plugin</artifactId>
171 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
176 <artifactId>maven-assembly-plugin</artifactId>
177 <version>2.4</version>
180 <id>distro-assembly</id>
181 <phase>package</phase>
187 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
197 <groupId>org.apidesign.bck2brwsr</groupId>
198 <artifactId>emul</artifactId>
199 <version>${bck2brwsr.version}</version>
200 <classifier>rt</classifier>
203 <groupId>org.apidesign.bck2brwsr</groupId>
204 <artifactId>ko-bck2brwsr</artifactId>
205 <version>${bck2brwsr.version}</version>
206 <scope>runtime</scope>
209 <groupId>org.apidesign.bck2brwsr</groupId>
210 <artifactId>vm4brwsr</artifactId>
211 <classifier>js</classifier>
213 <version>${bck2brwsr.version}</version>
214 <scope>provided</scope>
221 <platform.version>4.1.1.4</platform.version>
222 <android.plugin.version>3.7.0</android.plugin.version>
227 <groupId>com.google.android</groupId>
228 <artifactId>android</artifactId>
229 <version>${platform.version}</version>
230 <scope>provided</scope>
233 <groupId>org.apidesign.brwsr</groupId>
234 <artifactId>dlvkbrwsr</artifactId>
235 <version>0.5</version>
239 <groupId>org.netbeans.html</groupId>
240 <artifactId>ko-ws-tyrus</artifactId>
241 <version>${net.java.html.version}</version>
244 <artifactId>org.json-osgi</artifactId>
245 <groupId>de.twentyeleven.skysail</groupId>
253 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
254 <artifactId>android-maven-plugin</artifactId>
255 <version>${android.plugin.version}</version>
256 <extensions>true</extensions>
258 <classifier>apk</classifier>
259 <attachJar>false</attachJar>
260 <apkDebug>debug</apkDebug>
261 <assetsDirectory>src/main/webapp</assetsDirectory>
263 <platform>16</platform>
267 <metaInclude>services/org.apidesign.**</metaInclude>
270 <extractDuplicates>true</extractDuplicates>
271 <file>${project.build.directory}/${project.build.finalName}.apk</file>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-install-plugin</artifactId>
286 <version>2.5.1</version>
288 <groupId>${project.groupId}</groupId>
289 <artifactId>${project.artifactId}</artifactId>
290 <version>${project.version}</version>
291 <file>${project.build.directory}/${project.build.finalName}.apk</file>
292 <packaging>apk</packaging>
298 <phase>install</phase>
300 <goal>install-file</goal>
313 <groupId>org.teavm</groupId>
314 <artifactId>teavm-maven-plugin</artifactId>
315 <version>${teavm.version}</version>
318 <groupId>org.teavm</groupId>
319 <artifactId>teavm-classlib</artifactId>
320 <version>${teavm.version}</version>
322 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
323 Also there are some little patches to JCL emulation, that are required to pass TCK -->
325 <groupId>org.teavm</groupId>
326 <artifactId>teavm-html4j</artifactId>
327 <version>${teavm.version}</version>
332 <id>generate-minesweeper</id>
334 <goal>build-javascript</goal>
336 <phase>process-classes</phase>
338 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
339 <minifying>false</minifying>
341 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
342 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
344 <!-- Don't include main page - we created it by ourselves -->
345 <mainPageIncluded>false</mainPageIncluded>
346 <!-- Merge runtime.js instead of putting as a separate file -->
347 <runtime>MERGED</runtime>
348 <!-- Name of the generated file -->
349 <targetFileName>bck2brwsr.js</targetFileName>
350 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
351 <!-- This transformer adds null checks before virtual calls. It is not included
352 by default as we don't always need these null checks -->
354 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
361 <artifactId>maven-assembly-plugin</artifactId>
362 <version>2.4</version>
365 <id>distro-assembly</id>
366 <phase>package</phase>
372 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
385 <groupId>org.netbeans.html</groupId>
386 <artifactId>nbrwsr</artifactId>
387 <version>${net.java.html.version}</version>
388 <scope>compile</scope>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-resources-plugin</artifactId>
396 <version>2.6</version>
399 <id>include-webpages</id>
401 <goal>copy-resources</goal>
403 <phase>process-resources</phase>
405 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
406 <overwrite>true</overwrite>
409 <directory>src/main/webapp/pages</directory>
417 <groupId>org.codehaus.mojo</groupId>
418 <artifactId>nbm-maven-plugin</artifactId>
419 <version>3.13</version>
420 <extensions>true</extensions>
423 <id>default-manifest</id>
424 <phase>process-classes</phase>
426 <goal>manifest</goal>
429 <useOSGiDependencies>true</useOSGiDependencies>
430 <brandingToken>html4j4nb</brandingToken>
431 <cluster>html4j4nb</cluster>
432 <verifyIntegrity>false</verifyIntegrity>
437 <phase>package</phase>
442 <useOSGiDependencies>true</useOSGiDependencies>
443 <cluster>html4j4nb</cluster>
444 <verifyIntegrity>false</verifyIntegrity>
449 <useOSGiDependencies>true</useOSGiDependencies>
450 <brandingToken>html4j4nb</brandingToken>
451 <cluster>html4j4nb</cluster>
452 <verifyIntegrity>false</verifyIntegrity>
457 <groupId>org.apache.maven.plugins</groupId>
458 <artifactId>maven-jar-plugin</artifactId>
460 <!-- to have the jar plugin pickup the nbm generated manifest -->
461 <useDefaultManifestFile>true</useDefaultManifestFile>