Creating ibrwsr profile and using classical component injection to find the right presenter
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-resources-plugin</artifactId>
37 <version>2.6</version>
40 <id>copy-resources</id>
41 <!-- here the phase you need -->
42 <phase>process-resources</phase>
44 <goal>copy-resources</goal>
47 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper/</outputDirectory>
50 <directory>src/main/webapp/</directory>
51 <filtering>true</filtering>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-jar-plugin</artifactId>
61 <version>2.4</version>
65 <mainClass>${project.mainclass}</mainClass>
66 <addClasspath>true</addClasspath>
67 <classpathPrefix>lib/</classpathPrefix>
73 <groupId>org.codehaus.mojo</groupId>
74 <artifactId>exec-maven-plugin</artifactId>
75 <version>1.2.1</version>
79 <key>browser.rootdir</key>
80 <value>${basedir}/src/main/webapp/</value>
83 <mainClass>${project.mainclass}</mainClass>
90 <groupId>org.netbeans.html</groupId>
91 <artifactId>net.java.html.json</artifactId>
92 <version>${net.java.html.version}</version>
95 <groupId>org.netbeans.html</groupId>
96 <artifactId>net.java.html.boot</artifactId>
97 <version>${net.java.html.version}</version>
100 <groupId>org.netbeans.html</groupId>
101 <artifactId>net.java.html</artifactId>
102 <version>${net.java.html.version}</version>
105 <groupId>org.netbeans.html</groupId>
106 <artifactId>net.java.html.sound</artifactId>
107 <version>${net.java.html.version}</version>
110 <groupId>org.netbeans.html</groupId>
111 <artifactId>ko4j</artifactId>
112 <version>${net.java.html.version}</version>
115 <groupId>org.netbeans.html</groupId>
116 <artifactId>nbrwsr</artifactId>
117 <version>${net.java.html.version}</version>
118 <scope>provided</scope>
121 <groupId>org.testng</groupId>
122 <artifactId>testng</artifactId>
123 <version>6.7</version>
131 <activeByDefault>true</activeByDefault>
136 <artifactId>maven-assembly-plugin</artifactId>
137 <version>2.4</version>
140 <id>distro-assembly</id>
141 <phase>package</phase>
147 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
157 <groupId>org.netbeans.html</groupId>
158 <artifactId>net.java.html.boot.fx</artifactId>
159 <version>${net.java.html.version}</version>
160 <scope>runtime</scope>
169 <value>bck2brwsr</value>
175 <groupId>org.apidesign.bck2brwsr</groupId>
176 <artifactId>bck2brwsr-maven-plugin</artifactId>
177 <version>${bck2brwsr.version}</version>
186 <directory>${basedir}/src/main/webapp/</directory>
187 <startpage>${brwsr.startpage}</startpage>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-compiler-plugin</artifactId>
195 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
200 <artifactId>maven-assembly-plugin</artifactId>
201 <version>2.4</version>
204 <id>distro-assembly</id>
205 <phase>package</phase>
211 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
221 <groupId>org.apidesign.bck2brwsr</groupId>
222 <artifactId>emul</artifactId>
223 <version>${bck2brwsr.version}</version>
224 <classifier>rt</classifier>
227 <groupId>org.apidesign.bck2brwsr</groupId>
228 <artifactId>ko-bck2brwsr</artifactId>
229 <version>${bck2brwsr.version}</version>
230 <scope>runtime</scope>
233 <groupId>org.apidesign.bck2brwsr</groupId>
234 <artifactId>vm4brwsr</artifactId>
235 <classifier>js</classifier>
237 <version>${bck2brwsr.version}</version>
238 <scope>provided</scope>
245 <platform.version>4.1.1.4</platform.version>
246 <android.plugin.version>3.7.0</android.plugin.version>
251 <groupId>com.google.android</groupId>
252 <artifactId>android</artifactId>
253 <version>${platform.version}</version>
254 <scope>provided</scope>
257 <groupId>org.apidesign.brwsr</groupId>
258 <artifactId>dlvkbrwsr</artifactId>
259 <version>0.5</version>
263 <groupId>org.netbeans.html</groupId>
264 <artifactId>ko-ws-tyrus</artifactId>
265 <version>${net.java.html.version}</version>
268 <artifactId>org.json-osgi</artifactId>
269 <groupId>de.twentyeleven.skysail</groupId>
277 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
278 <artifactId>android-maven-plugin</artifactId>
279 <version>${android.plugin.version}</version>
280 <extensions>true</extensions>
282 <classifier>apk</classifier>
283 <attachJar>false</attachJar>
284 <apkDebug>debug</apkDebug>
285 <assetsDirectory>src/main/webapp</assetsDirectory>
287 <platform>16</platform>
291 <metaInclude>services/org.apidesign.**</metaInclude>
294 <extractDuplicates>true</extractDuplicates>
295 <file>${project.build.directory}/${project.build.finalName}.apk</file>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-install-plugin</artifactId>
310 <version>2.5.1</version>
312 <groupId>${project.groupId}</groupId>
313 <artifactId>${project.artifactId}</artifactId>
314 <version>${project.version}</version>
315 <file>${project.build.directory}/${project.build.finalName}.apk</file>
316 <packaging>apk</packaging>
322 <phase>install</phase>
324 <goal>install-file</goal>
337 <groupId>org.teavm</groupId>
338 <artifactId>teavm-maven-plugin</artifactId>
339 <version>${teavm.version}</version>
342 <groupId>org.teavm</groupId>
343 <artifactId>teavm-classlib</artifactId>
344 <version>${teavm.version}</version>
346 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
347 Also there are some little patches to JCL emulation, that are required to pass TCK -->
349 <groupId>org.teavm</groupId>
350 <artifactId>teavm-html4j</artifactId>
351 <version>${teavm.version}</version>
356 <id>generate-minesweeper</id>
358 <goal>build-javascript</goal>
360 <phase>process-classes</phase>
362 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
363 <minifying>false</minifying>
365 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
366 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
368 <!-- Don't include main page - we created it by ourselves -->
369 <mainPageIncluded>false</mainPageIncluded>
370 <!-- Merge runtime.js instead of putting as a separate file -->
371 <runtime>MERGED</runtime>
372 <!-- Name of the generated file -->
373 <targetFileName>bck2brwsr.js</targetFileName>
374 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
375 <!-- This transformer adds null checks before virtual calls. It is not included
376 by default as we don't always need these null checks -->
378 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
385 <artifactId>maven-assembly-plugin</artifactId>
386 <version>2.4</version>
389 <id>distro-assembly</id>
390 <phase>package</phase>
396 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
409 <groupId>org.apidesign.brwsr</groupId>
410 <artifactId>ibrwsr</artifactId>
411 <version>1.0-SNAPSHOT</version>
412 <scope>runtime</scope>
418 <groupId>org.robovm</groupId>
419 <artifactId>robovm-maven-plugin</artifactId>
420 <version>0.0.10.1</version>
423 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
425 <pattern>java.util.logging.ConsoleHandler</pattern>
426 <pattern>java.util.logging.SimpleFormatter</pattern>
427 <pattern>org.netbeans.html.ko4j.KO4J</pattern>
428 <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
429 <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
432 <includeJFX>false</includeJFX>
442 <groupId>org.netbeans.html</groupId>
443 <artifactId>nbrwsr</artifactId>
444 <version>${net.java.html.version}</version>
445 <scope>compile</scope>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-resources-plugin</artifactId>
453 <version>2.6</version>
456 <id>include-webpages</id>
458 <goal>copy-resources</goal>
460 <phase>process-resources</phase>
462 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
463 <overwrite>true</overwrite>
466 <directory>src/main/webapp/pages</directory>
474 <groupId>org.codehaus.mojo</groupId>
475 <artifactId>nbm-maven-plugin</artifactId>
476 <version>3.13</version>
477 <extensions>true</extensions>
480 <id>default-manifest</id>
481 <phase>process-classes</phase>
483 <goal>manifest</goal>
486 <useOSGiDependencies>true</useOSGiDependencies>
487 <brandingToken>html4j4nb</brandingToken>
488 <cluster>html4j4nb</cluster>
489 <verifyIntegrity>false</verifyIntegrity>
494 <phase>package</phase>
499 <useOSGiDependencies>true</useOSGiDependencies>
500 <cluster>html4j4nb</cluster>
501 <verifyIntegrity>false</verifyIntegrity>
506 <useOSGiDependencies>true</useOSGiDependencies>
507 <brandingToken>html4j4nb</brandingToken>
508 <cluster>html4j4nb</cluster>
509 <verifyIntegrity>false</verifyIntegrity>
514 <groupId>org.apache.maven.plugins</groupId>
515 <artifactId>maven-jar-plugin</artifactId>
517 <!-- to have the jar plugin pickup the nbm generated manifest -->
518 <useDefaultManifestFile>true</useDefaultManifestFile>