Simplifying execution of TeaVM version. Use: mvn -Pteabrwsr clean package bck2brwsr:brwsr
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 <artifactId>demo</artifactId>
6 <groupId>org.apidesign.html</groupId>
7 <version>1.0-SNAPSHOT</version>
10 <groupId>org.apidesign.html.demo</groupId>
11 <artifactId>chessdemo</artifactId>
12 <version>1.0-SNAPSHOT</version>
13 <packaging>jar</packaging>
15 <name>Chess_HTML_Java_Client</name>
21 <url>http://bits.netbeans.org/maven2/</url>
27 <name>NetBeans iOS Maven Plugin</name>
28 <url>http://beetle.cz.oracle.com/~jtulach/maven/</url>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <netbeans.compile.on.save>none</netbeans.compile.on.save>
37 <bck2brwsr.launcher.version>${bck2brwsr.version}</bck2brwsr.launcher.version>
38 <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
39 <brwsr.startpage>pages/index.html</brwsr.startpage>
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-jar-plugin</artifactId>
55 <version>2.4</version>
59 <mainClass>org.netbeans.html.demo.chess.Main</mainClass>
60 <addClasspath>true</addClasspath>
61 <classpathPrefix>lib/</classpathPrefix>
67 <groupId>org.codehaus.mojo</groupId>
68 <artifactId>exec-maven-plugin</artifactId>
69 <version>1.2.1</version>
73 <key>browser.rootdir</key>
74 <value>${basedir}/src/main/webapp/</value>
77 <mainClass>org.netbeans.html.demo.chess.Main</mainClass>
81 <artifactId>maven-assembly-plugin</artifactId>
82 <version>2.4</version>
85 <id>distro-assembly</id>
86 <phase>package</phase>
92 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
99 <artifactId>ios-maven-plugin</artifactId>
100 <groupId>org.netbeans.ios</groupId>
101 <version>0.4</version>
103 <targetDevices>1</targetDevices>
104 <deploymentTarget>6.1</deploymentTarget>
105 <bundleId>JavaOneChess</bundleId>
106 <provisioningProfile></provisioningProfile>
107 <supportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</supportedInterfaceOrientations>
108 <prerenderedIcons>false</prerenderedIcons>
109 <iPadSupportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</iPadSupportedInterfaceOrientations>
116 <groupId>org.netbeans.html</groupId>
117 <artifactId>net.java.html.json</artifactId>
118 <version>${net.java.html.version}</version>
121 <groupId>org.netbeans.html</groupId>
122 <artifactId>net.java.html.boot</artifactId>
123 <version>${net.java.html.version}</version>
126 <groupId>org.testng</groupId>
127 <artifactId>testng</artifactId>
128 <version>6.7</version>
132 <groupId>org.netbeans.html</groupId>
133 <artifactId>net.java.html.sound</artifactId>
134 <version>${net.java.html.version}</version>
138 <groupId>org.apidesign.bck2brwsr</groupId>
139 <artifactId>core</artifactId>
140 <version>${bck2brwsr.version}</version>
141 <scope>provided</scope>
145 <groupId>org.netbeans.html</groupId>
146 <artifactId>ko4j</artifactId>
147 <version>${net.java.html.version}</version>
154 <activeByDefault>true</activeByDefault>
158 <groupId>org.netbeans.html</groupId>
159 <artifactId>ko4j</artifactId>
160 <version>${net.java.html.version}</version>
161 <scope>runtime</scope>
164 <groupId>org.netbeans.html</groupId>
165 <artifactId>net.java.html.boot.fx</artifactId>
166 <version>${net.java.html.version}</version>
167 <scope>runtime</scope>
170 <groupId>org.netbeans.html</groupId>
171 <artifactId>ko-ws-tyrus</artifactId>
172 <scope>runtime</scope>
173 <version>${net.java.html.version}</version>
182 <value>bck2brwsr</value>
188 <groupId>org.apidesign.bck2brwsr</groupId>
189 <artifactId>bck2brwsr-maven-plugin</artifactId>
190 <version>${bck2brwsr.launcher.version}</version>
199 <directory>${basedir}/src/main/webapp/</directory>
200 <startpage>${brwsr.startpage}</startpage>
201 <launcher>${brwsr}</launcher>
202 <javascript>${project.build.directory}/bck2brwsr.js</javascript>
203 <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-compiler-plugin</artifactId>
212 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
218 <artifactId>maven-assembly-plugin</artifactId>
219 <version>2.4</version>
222 <id>distro-assembly</id>
223 <phase>package</phase>
229 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
239 <groupId>org.apidesign.bck2brwsr</groupId>
240 <artifactId>emul</artifactId>
241 <version>${bck2brwsr.version}</version>
242 <classifier>rt</classifier>
245 <groupId>org.apidesign.bck2brwsr</groupId>
246 <artifactId>ko-bck2brwsr</artifactId>
247 <version>${bck2brwsr.version}</version>
248 <scope>runtime</scope>
251 <groupId>org.apidesign.bck2brwsr</groupId>
252 <artifactId>vm4brwsr</artifactId>
253 <classifier>js</classifier>
255 <version>${bck2brwsr.version}</version>
256 <scope>provided</scope>
265 <groupId>org.teavm</groupId>
266 <artifactId>teavm-maven-plugin</artifactId>
267 <version>${teavm.version}</version>
270 <groupId>org.teavm</groupId>
271 <artifactId>teavm-classlib</artifactId>
272 <version>${teavm.version}</version>
274 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
275 Also there are some little patches to JCL emulation, that are required to pass TCK -->
277 <groupId>org.teavm</groupId>
278 <artifactId>teavm-html4j</artifactId>
279 <version>${teavm.version}</version>
284 <id>generate-minesweeper</id>
286 <goal>build-javascript</goal>
288 <phase>process-classes</phase>
290 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
291 <minifying>false</minifying>
293 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
294 <html4j.entryPoints>org.apidesign.html.demo.chess.LoadMain</html4j.entryPoints>
296 <!-- Don't include main page - we created it by ourselves -->
297 <mainPageIncluded>false</mainPageIncluded>
298 <!-- Merge runtime.js instead of putting as a separate file -->
299 <runtime>MERGED</runtime>
300 <!-- Name of the generated file -->
301 <targetFileName>bck2brwsr.js</targetFileName>
302 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
303 <!-- This transformer adds null checks before virtual calls. It is not included
304 by default as we don't always need these null checks -->
306 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
313 <artifactId>maven-assembly-plugin</artifactId>
314 <version>2.4</version>
317 <id>distro-assembly</id>
318 <phase>package</phase>
324 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>