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.robovm</groupId>
27 <artifactId>robovm-maven-plugin</artifactId>
28 <version>0.0.10.1</version>
31 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
33 <pattern>java.util.logging.ConsoleHandler</pattern>
34 <pattern>java.util.logging.SimpleFormatter</pattern>
35 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
36 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
37 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
40 <includeJFX>false</includeJFX>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-compiler-plugin</artifactId>
46 <version>2.3.2</version>
53 <groupId>org.apache.maven.plugins</groupId>
54 <artifactId>maven-resources-plugin</artifactId>
55 <version>2.6</version>
58 <id>copy-resources</id>
59 <!-- here the phase you need -->
60 <phase>process-resources</phase>
62 <goal>copy-resources</goal>
65 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper/</outputDirectory>
68 <directory>src/main/webapp/</directory>
69 <filtering>true</filtering>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-jar-plugin</artifactId>
79 <version>2.4</version>
83 <mainClass>${project.mainclass}</mainClass>
84 <addClasspath>true</addClasspath>
85 <classpathPrefix>lib/</classpathPrefix>
91 <groupId>org.codehaus.mojo</groupId>
92 <artifactId>exec-maven-plugin</artifactId>
93 <version>1.2.1</version>
97 <key>browser.rootdir</key>
98 <value>${basedir}/src/main/webapp/</value>
101 <mainClass>${project.mainclass}</mainClass>
108 <groupId>org.netbeans.html</groupId>
109 <artifactId>net.java.html.json</artifactId>
110 <version>${net.java.html.version}</version>
113 <groupId>org.netbeans.html</groupId>
114 <artifactId>net.java.html.boot</artifactId>
115 <version>${net.java.html.version}</version>
118 <groupId>org.netbeans.html</groupId>
119 <artifactId>net.java.html</artifactId>
120 <version>${net.java.html.version}</version>
123 <groupId>org.netbeans.html</groupId>
124 <artifactId>net.java.html.sound</artifactId>
125 <version>${net.java.html.version}</version>
128 <groupId>org.netbeans.html</groupId>
129 <artifactId>ko4j</artifactId>
130 <version>${net.java.html.version}</version>
133 <groupId>org.netbeans.html</groupId>
134 <artifactId>nbrwsr</artifactId>
135 <version>${net.java.html.version}</version>
136 <scope>provided</scope>
139 <groupId>org.testng</groupId>
140 <artifactId>testng</artifactId>
141 <version>6.7</version>
145 <groupId>org.apidesign.brwsr</groupId>
146 <artifactId>ibrwsr</artifactId>
147 <version>1.0-SNAPSHOT</version>
154 <activeByDefault>true</activeByDefault>
159 <artifactId>maven-assembly-plugin</artifactId>
160 <version>2.4</version>
163 <id>distro-assembly</id>
164 <phase>package</phase>
170 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
180 <groupId>org.netbeans.html</groupId>
181 <artifactId>net.java.html.boot.fx</artifactId>
182 <version>${net.java.html.version}</version>
183 <scope>runtime</scope>
192 <value>bck2brwsr</value>
198 <groupId>org.apidesign.bck2brwsr</groupId>
199 <artifactId>bck2brwsr-maven-plugin</artifactId>
200 <version>${bck2brwsr.version}</version>
209 <directory>${basedir}/src/main/webapp/</directory>
210 <startpage>${brwsr.startpage}</startpage>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-compiler-plugin</artifactId>
218 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
223 <artifactId>maven-assembly-plugin</artifactId>
224 <version>2.4</version>
227 <id>distro-assembly</id>
228 <phase>package</phase>
234 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
244 <groupId>org.apidesign.bck2brwsr</groupId>
245 <artifactId>emul</artifactId>
246 <version>${bck2brwsr.version}</version>
247 <classifier>rt</classifier>
250 <groupId>org.apidesign.bck2brwsr</groupId>
251 <artifactId>ko-bck2brwsr</artifactId>
252 <version>${bck2brwsr.version}</version>
253 <scope>runtime</scope>
256 <groupId>org.apidesign.bck2brwsr</groupId>
257 <artifactId>vm4brwsr</artifactId>
258 <classifier>js</classifier>
260 <version>${bck2brwsr.version}</version>
261 <scope>provided</scope>
268 <platform.version>4.1.1.4</platform.version>
269 <android.plugin.version>3.7.0</android.plugin.version>
274 <groupId>com.google.android</groupId>
275 <artifactId>android</artifactId>
276 <version>${platform.version}</version>
277 <scope>provided</scope>
280 <groupId>org.apidesign.brwsr</groupId>
281 <artifactId>dlvkbrwsr</artifactId>
282 <version>0.5</version>
286 <groupId>org.netbeans.html</groupId>
287 <artifactId>ko-ws-tyrus</artifactId>
288 <version>${net.java.html.version}</version>
291 <artifactId>org.json-osgi</artifactId>
292 <groupId>de.twentyeleven.skysail</groupId>
300 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
301 <artifactId>android-maven-plugin</artifactId>
302 <version>${android.plugin.version}</version>
303 <extensions>true</extensions>
305 <classifier>apk</classifier>
306 <attachJar>false</attachJar>
307 <apkDebug>debug</apkDebug>
308 <assetsDirectory>src/main/webapp</assetsDirectory>
310 <platform>16</platform>
314 <metaInclude>services/org.apidesign.**</metaInclude>
317 <extractDuplicates>true</extractDuplicates>
318 <file>${project.build.directory}/${project.build.finalName}.apk</file>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-install-plugin</artifactId>
333 <version>2.5.1</version>
335 <groupId>${project.groupId}</groupId>
336 <artifactId>${project.artifactId}</artifactId>
337 <version>${project.version}</version>
338 <file>${project.build.directory}/${project.build.finalName}.apk</file>
339 <packaging>apk</packaging>
345 <phase>install</phase>
347 <goal>install-file</goal>
360 <groupId>org.teavm</groupId>
361 <artifactId>teavm-maven-plugin</artifactId>
362 <version>${teavm.version}</version>
365 <groupId>org.teavm</groupId>
366 <artifactId>teavm-classlib</artifactId>
367 <version>${teavm.version}</version>
369 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
370 Also there are some little patches to JCL emulation, that are required to pass TCK -->
372 <groupId>org.teavm</groupId>
373 <artifactId>teavm-html4j</artifactId>
374 <version>${teavm.version}</version>
379 <id>generate-minesweeper</id>
381 <goal>build-javascript</goal>
383 <phase>process-classes</phase>
385 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
386 <minifying>false</minifying>
388 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
389 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
391 <!-- Don't include main page - we created it by ourselves -->
392 <mainPageIncluded>false</mainPageIncluded>
393 <!-- Merge runtime.js instead of putting as a separate file -->
394 <runtime>MERGED</runtime>
395 <!-- Name of the generated file -->
396 <targetFileName>bck2brwsr.js</targetFileName>
397 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
398 <!-- This transformer adds null checks before virtual calls. It is not included
399 by default as we don't always need these null checks -->
401 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
408 <artifactId>maven-assembly-plugin</artifactId>
409 <version>2.4</version>
412 <id>distro-assembly</id>
413 <phase>package</phase>
419 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
432 <groupId>org.netbeans.html</groupId>
433 <artifactId>nbrwsr</artifactId>
434 <version>${net.java.html.version}</version>
435 <scope>compile</scope>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-resources-plugin</artifactId>
443 <version>2.6</version>
446 <id>include-webpages</id>
448 <goal>copy-resources</goal>
450 <phase>process-resources</phase>
452 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
453 <overwrite>true</overwrite>
456 <directory>src/main/webapp/pages</directory>
464 <groupId>org.codehaus.mojo</groupId>
465 <artifactId>nbm-maven-plugin</artifactId>
466 <version>3.13</version>
467 <extensions>true</extensions>
470 <id>default-manifest</id>
471 <phase>process-classes</phase>
473 <goal>manifest</goal>
476 <useOSGiDependencies>true</useOSGiDependencies>
477 <brandingToken>html4j4nb</brandingToken>
478 <cluster>html4j4nb</cluster>
479 <verifyIntegrity>false</verifyIntegrity>
484 <phase>package</phase>
489 <useOSGiDependencies>true</useOSGiDependencies>
490 <cluster>html4j4nb</cluster>
491 <verifyIntegrity>false</verifyIntegrity>
496 <useOSGiDependencies>true</useOSGiDependencies>
497 <brandingToken>html4j4nb</brandingToken>
498 <cluster>html4j4nb</cluster>
499 <verifyIntegrity>false</verifyIntegrity>
504 <groupId>org.apache.maven.plugins</groupId>
505 <artifactId>maven-jar-plugin</artifactId>
507 <!-- to have the jar plugin pickup the nbm generated manifest -->
508 <useDefaultManifestFile>true</useDefaultManifestFile>