The Class-Path reference to libraries is only useful in case of fxbrwsr and bck2brwsr profiles
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.codehaus.mojo</groupId>
44 <artifactId>exec-maven-plugin</artifactId>
45 <version>1.2.1</version>
49 <key>browser.rootdir</key>
50 <value>${basedir}/src/main/webapp/</value>
53 <mainClass>${project.mainclass}</mainClass>
60 <groupId>org.netbeans.html</groupId>
61 <artifactId>net.java.html.json</artifactId>
62 <version>${net.java.html.version}</version>
65 <groupId>org.netbeans.html</groupId>
66 <artifactId>net.java.html.boot</artifactId>
67 <version>${net.java.html.version}</version>
70 <groupId>org.netbeans.html</groupId>
71 <artifactId>net.java.html</artifactId>
72 <version>${net.java.html.version}</version>
75 <groupId>org.netbeans.html</groupId>
76 <artifactId>net.java.html.sound</artifactId>
77 <version>${net.java.html.version}</version>
80 <groupId>org.netbeans.html</groupId>
81 <artifactId>ko4j</artifactId>
82 <version>${net.java.html.version}</version>
85 <groupId>org.netbeans.html</groupId>
86 <artifactId>nbrwsr</artifactId>
87 <version>${net.java.html.version}</version>
88 <scope>provided</scope>
91 <groupId>org.testng</groupId>
92 <artifactId>testng</artifactId>
93 <version>6.7</version>
101 <activeByDefault>true</activeByDefault>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-jar-plugin</artifactId>
108 <version>2.4</version>
112 <mainClass>${project.mainclass}</mainClass>
113 <addClasspath>true</addClasspath>
114 <classpathPrefix>lib/</classpathPrefix>
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.apache.maven.plugins</groupId>
160 <artifactId>maven-jar-plugin</artifactId>
161 <version>2.4</version>
165 <mainClass>${project.mainclass}</mainClass>
166 <addClasspath>true</addClasspath>
167 <classpathPrefix>lib/</classpathPrefix>
173 <groupId>org.apidesign.bck2brwsr</groupId>
174 <artifactId>bck2brwsr-maven-plugin</artifactId>
175 <version>${bck2brwsr.version}</version>
184 <directory>${basedir}/src/main/webapp/</directory>
185 <startpage>${brwsr.startpage}</startpage>
189 <groupId>org.apache.maven.plugins</groupId>
190 <artifactId>maven-compiler-plugin</artifactId>
193 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
198 <artifactId>maven-assembly-plugin</artifactId>
199 <version>2.4</version>
202 <id>distro-assembly</id>
203 <phase>package</phase>
209 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
219 <groupId>org.apidesign.bck2brwsr</groupId>
220 <artifactId>emul</artifactId>
221 <version>${bck2brwsr.version}</version>
222 <classifier>rt</classifier>
225 <groupId>org.apidesign.bck2brwsr</groupId>
226 <artifactId>ko-bck2brwsr</artifactId>
227 <version>${bck2brwsr.version}</version>
228 <scope>runtime</scope>
231 <groupId>org.apidesign.bck2brwsr</groupId>
232 <artifactId>vm4brwsr</artifactId>
233 <classifier>js</classifier>
235 <version>${bck2brwsr.version}</version>
236 <scope>provided</scope>
243 <platform.version>4.1.1.4</platform.version>
244 <android.plugin.version>3.7.0</android.plugin.version>
249 <groupId>com.google.android</groupId>
250 <artifactId>android</artifactId>
251 <version>${platform.version}</version>
252 <scope>provided</scope>
255 <groupId>org.apidesign.brwsr</groupId>
256 <artifactId>dlvkbrwsr</artifactId>
257 <version>0.5</version>
261 <groupId>org.netbeans.html</groupId>
262 <artifactId>ko-ws-tyrus</artifactId>
263 <version>${net.java.html.version}</version>
266 <artifactId>org.json-osgi</artifactId>
267 <groupId>de.twentyeleven.skysail</groupId>
275 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
276 <artifactId>android-maven-plugin</artifactId>
277 <version>${android.plugin.version}</version>
278 <extensions>true</extensions>
280 <classifier>apk</classifier>
281 <attachJar>false</attachJar>
282 <apkDebug>debug</apkDebug>
283 <assetsDirectory>src/main/webapp</assetsDirectory>
285 <platform>16</platform>
289 <metaInclude>services/org.apidesign.**</metaInclude>
292 <extractDuplicates>true</extractDuplicates>
293 <file>${project.build.directory}/${project.build.finalName}.apk</file>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-install-plugin</artifactId>
308 <version>2.5.1</version>
310 <groupId>${project.groupId}</groupId>
311 <artifactId>${project.artifactId}</artifactId>
312 <version>${project.version}</version>
313 <file>${project.build.directory}/${project.build.finalName}.apk</file>
314 <packaging>apk</packaging>
320 <phase>install</phase>
322 <goal>install-file</goal>
335 <groupId>org.teavm</groupId>
336 <artifactId>teavm-maven-plugin</artifactId>
337 <version>${teavm.version}</version>
340 <groupId>org.teavm</groupId>
341 <artifactId>teavm-classlib</artifactId>
342 <version>${teavm.version}</version>
344 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
345 Also there are some little patches to JCL emulation, that are required to pass TCK -->
347 <groupId>org.teavm</groupId>
348 <artifactId>teavm-html4j</artifactId>
349 <version>${teavm.version}</version>
354 <id>generate-minesweeper</id>
356 <goal>build-javascript</goal>
358 <phase>process-classes</phase>
360 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
361 <minifying>false</minifying>
363 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
364 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
366 <!-- Don't include main page - we created it by ourselves -->
367 <mainPageIncluded>false</mainPageIncluded>
368 <!-- Merge runtime.js instead of putting as a separate file -->
369 <runtime>MERGED</runtime>
370 <!-- Name of the generated file -->
371 <targetFileName>bck2brwsr.js</targetFileName>
372 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
373 <!-- This transformer adds null checks before virtual calls. It is not included
374 by default as we don't always need these null checks -->
376 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
383 <artifactId>maven-assembly-plugin</artifactId>
384 <version>2.4</version>
387 <id>distro-assembly</id>
388 <phase>package</phase>
394 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
407 <groupId>org.netbeans.html</groupId>
408 <artifactId>nbrwsr</artifactId>
409 <version>${net.java.html.version}</version>
410 <scope>compile</scope>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-resources-plugin</artifactId>
418 <version>2.6</version>
421 <id>include-webpages</id>
423 <goal>copy-resources</goal>
425 <phase>process-resources</phase>
427 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
428 <overwrite>true</overwrite>
431 <directory>src/main/webapp/pages</directory>
439 <groupId>org.codehaus.mojo</groupId>
440 <artifactId>nbm-maven-plugin</artifactId>
441 <version>3.13</version>
442 <extensions>true</extensions>
445 <id>default-manifest</id>
446 <phase>process-classes</phase>
448 <goal>manifest</goal>
451 <useOSGiDependencies>true</useOSGiDependencies>
452 <brandingToken>html4j4nb</brandingToken>
453 <cluster>extra</cluster>
454 <verifyIntegrity>false</verifyIntegrity>
459 <phase>package</phase>
464 <useOSGiDependencies>true</useOSGiDependencies>
465 <cluster>extra</cluster>
466 <verifyIntegrity>false</verifyIntegrity>
471 <useOSGiDependencies>true</useOSGiDependencies>
472 <brandingToken>html4j4nb</brandingToken>
473 <cluster>html4j4nb</cluster>
474 <verifyIntegrity>false</verifyIntegrity>
479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-jar-plugin</artifactId>
482 <!-- to have the jar plugin pickup the nbm generated manifest -->
483 <useDefaultManifestFile>true</useDefaultManifestFile>