1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/ko/kosample/client-web/pom.xml Tue Apr 26 08:04:12 2016 +0200
1.3 @@ -0,0 +1,299 @@
1.4 +<?xml version="1.0"?>
1.5 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1.6 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1.7 + <modelVersion>4.0.0</modelVersion>
1.8 +
1.9 + <parent>
1.10 + <groupId>org.apidesign.bck2brwsr</groupId>
1.11 + <artifactId>kosample-pom</artifactId>
1.12 + <version>1.0-SNAPSHOT</version>
1.13 + </parent>
1.14 +
1.15 + <groupId>org.apidesign.bck2brwsr</groupId>
1.16 + <artifactId>kosample-web</artifactId>
1.17 + <version>1.0-SNAPSHOT</version>
1.18 + <packaging>jar</packaging>
1.19 +
1.20 + <name>kosample Client for Web</name>
1.21 +
1.22 + <properties>
1.23 + <netbeans.compile.on.save>none</netbeans.compile.on.save>
1.24 + <project.mainclass>org.apidesign.bck2brwsr.kosample.BrowserMain</project.mainclass>
1.25 + <browser.bootstrap>initialize bck2brwsr -->
1.26 +<script type="text/javascript" src="bck2brwsr.js"></script>
1.27 +<script>
1.28 + var vm = bck2brwsr('kosample.js');
1.29 + var c = vm.loadClass('org.apidesign.bck2brwsr.kosample.BrowserMain');
1.30 + c.invoke('main');
1.31 +</script>
1.32 +<!-- end of initialization </browser.bootstrap>
1.33 + </properties>
1.34 + <build>
1.35 + <plugins>
1.36 + <plugin>
1.37 + <groupId>org.netbeans.html</groupId>
1.38 + <artifactId>html4j-maven-plugin</artifactId>
1.39 + <version>${net.java.html.version}</version>
1.40 + <executions>
1.41 + <execution>
1.42 + <id>js-classes</id>
1.43 + <goals>
1.44 + <goal>process-js-annotations</goal>
1.45 + </goals>
1.46 + </execution>
1.47 + </executions>
1.48 + </plugin>
1.49 + <plugin>
1.50 + <groupId>org.apache.maven.plugins</groupId>
1.51 + <artifactId>maven-compiler-plugin</artifactId>
1.52 + <version>2.3.2</version>
1.53 + <configuration>
1.54 + <source>1.7</source>
1.55 + <target>1.7</target>
1.56 + <compilerArguments>
1.57 + <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
1.58 + </compilerArguments>
1.59 + </configuration>
1.60 + </plugin>
1.61 + <plugin>
1.62 + <groupId>org.apache.maven.plugins</groupId>
1.63 + <artifactId>maven-jar-plugin</artifactId>
1.64 + <version>2.4</version>
1.65 + <configuration>
1.66 + <archive>
1.67 + <manifest>
1.68 + <mainClass>${project.mainclass}</mainClass>
1.69 + <addClasspath>true</addClasspath>
1.70 + <classpathPrefix>lib/</classpathPrefix>
1.71 + <useUniqueVersions>false</useUniqueVersions>
1.72 + </manifest>
1.73 + </archive>
1.74 + </configuration>
1.75 + </plugin>
1.76 + <plugin>
1.77 + <groupId>org.apidesign.bck2brwsr</groupId>
1.78 + <artifactId>bck2brwsr-maven-plugin</artifactId>
1.79 + <version>${bck2brwsr.version}</version>
1.80 + <executions>
1.81 + <execution>
1.82 + <goals>
1.83 + <goal>brwsr</goal>
1.84 + <goal>aot</goal>
1.85 + </goals>
1.86 + </execution>
1.87 + </executions>
1.88 + <configuration>
1.89 + <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
1.90 + <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
1.91 + <startpage>index.html</startpage>
1.92 + <classPathPrefix>lib</classPathPrefix>
1.93 + <mainJavaScript>${project.build.directory}/kosample.js</mainJavaScript>
1.94 + <exports>
1.95 + <export>${project.mainclass}</export>
1.96 + </exports>
1.97 + </configuration>
1.98 + </plugin>
1.99 + <plugin>
1.100 + <artifactId>maven-assembly-plugin</artifactId>
1.101 + <version>2.4</version>
1.102 + <executions>
1.103 + <execution>
1.104 + <id>distro-assembly</id>
1.105 + <phase>package</phase>
1.106 + <goals>
1.107 + <goal>single</goal>
1.108 + </goals>
1.109 + <configuration>
1.110 + <descriptors>
1.111 + <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
1.112 + </descriptors>
1.113 + </configuration>
1.114 + </execution>
1.115 + </executions>
1.116 + </plugin>
1.117 + <plugin>
1.118 + <groupId>org.apache.maven.plugins</groupId>
1.119 + <artifactId>maven-dependency-plugin</artifactId>
1.120 + <version>2.9</version>
1.121 + <executions>
1.122 + <execution>
1.123 + <id>unpack</id>
1.124 + <phase>process-resources</phase>
1.125 + <goals>
1.126 + <goal>unpack-dependencies</goal>
1.127 + </goals>
1.128 + </execution>
1.129 + </executions>
1.130 + <configuration>
1.131 + <type>zip</type>
1.132 + <classifier>webpages</classifier>
1.133 + <overWrite>true</overWrite>
1.134 + <outputDirectory>target/web/pages</outputDirectory>
1.135 + <includes>*/**</includes>
1.136 + </configuration>
1.137 + </plugin>
1.138 + </plugins>
1.139 + </build>
1.140 + <dependencies>
1.141 + <dependency>
1.142 + <groupId>org.apidesign.bck2brwsr</groupId>
1.143 + <artifactId>kosample</artifactId>
1.144 + <version>${project.version}</version>
1.145 + <exclusions>
1.146 + <exclusion>
1.147 + <groupId>org.netbeans.html</groupId>
1.148 + <artifactId>net.java.html.boot.fx</artifactId>
1.149 + </exclusion>
1.150 + </exclusions>
1.151 + </dependency>
1.152 + <dependency>
1.153 + <groupId>org.apidesign.bck2brwsr</groupId>
1.154 + <artifactId>emul</artifactId>
1.155 + <version>${bck2brwsr.version}</version>
1.156 + <classifier>rt</classifier>
1.157 + </dependency>
1.158 + <dependency>
1.159 + <groupId>org.netbeans.html</groupId>
1.160 + <artifactId>net.java.html.boot</artifactId>
1.161 + <version>${net.java.html.version}</version>
1.162 + <exclusions>
1.163 + <exclusion>
1.164 + <artifactId>asm</artifactId>
1.165 + <groupId>org.ow2.asm</groupId>
1.166 + </exclusion>
1.167 + </exclusions>
1.168 + </dependency>
1.169 + <dependency>
1.170 + <groupId>org.apidesign.bck2brwsr</groupId>
1.171 + <artifactId>emul</artifactId>
1.172 + <version>${bck2brwsr.version}</version>
1.173 + <classifier>bck2brwsr</classifier>
1.174 + <scope>provided</scope>
1.175 + </dependency>
1.176 + <dependency>
1.177 + <groupId>org.apidesign.bck2brwsr</groupId>
1.178 + <artifactId>ko-bck2brwsr</artifactId>
1.179 + <version>${bck2brwsr.version}</version>
1.180 + <classifier>bck2brwsr</classifier>
1.181 + <scope>provided</scope>
1.182 + </dependency>
1.183 + <dependency>
1.184 + <groupId>org.apidesign.bck2brwsr</groupId>
1.185 + <artifactId>kosample-js</artifactId>
1.186 + <version>${project.version}</version>
1.187 + <classifier>bck2brwsr</classifier>
1.188 + <scope>provided</scope>
1.189 + <type>jar</type>
1.190 + </dependency>
1.191 + </dependencies>
1.192 + <profiles>
1.193 + <profile>
1.194 + <id>teavm</id>
1.195 + <properties>
1.196 + <teavm.version>0.4.0</teavm.version>
1.197 + <teavm.debug>false</teavm.debug>
1.198 + <browser.bootstrap>initialize TeaVM -->
1.199 +<script type="text/javascript" src="teavm.js"></script>
1.200 +<script>
1.201 + main();
1.202 +</script>
1.203 +<!-- end of initialization </browser.bootstrap>
1.204 + </properties>
1.205 + <dependencies>
1.206 + <!-- needs special compile time dep otherwise TeaVM ignores the JAR -->
1.207 + <dependency>
1.208 + <groupId>org.netbeans.html</groupId>
1.209 + <artifactId>ko4j</artifactId>
1.210 + <version>${net.java.html.version}</version>
1.211 + </dependency>
1.212 + </dependencies>
1.213 + <build>
1.214 + <plugins>
1.215 + <plugin>
1.216 + <groupId>org.teavm</groupId>
1.217 + <artifactId>teavm-maven-plugin</artifactId>
1.218 + <version>${teavm.version}</version>
1.219 + <dependencies>
1.220 + <dependency>
1.221 + <groupId>org.teavm</groupId>
1.222 + <artifactId>teavm-classlib</artifactId>
1.223 + <version>${teavm.version}</version>
1.224 + </dependency>
1.225 + <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
1.226 + Also there are some little patches to JCL emulation, that are required to pass TCK -->
1.227 + <dependency>
1.228 + <groupId>org.teavm</groupId>
1.229 + <artifactId>teavm-html4j</artifactId>
1.230 + <version>${teavm.version}</version>
1.231 + </dependency>
1.232 + </dependencies>
1.233 + <executions>
1.234 + <execution>
1.235 + <id>generate-teavm</id>
1.236 + <goals>
1.237 + <goal>compile</goal>
1.238 + </goals>
1.239 + <phase>process-classes</phase>
1.240 + <configuration>
1.241 + <mainClass>${project.mainclass}</mainClass>
1.242 + <debugInformationGenerated>${teavm.debug}</debugInformationGenerated>
1.243 + <sourceMapsGenerated>${teavm.debug}</sourceMapsGenerated>
1.244 + <sourceFilesCopied>${teavm.debug}</sourceFilesCopied>
1.245 + <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
1.246 + <minifying>false</minifying>
1.247 + <!-- Don't include main page - we created it by ourselves -->
1.248 + <mainPageIncluded>false</mainPageIncluded>
1.249 + <!-- Merge runtime.js instead of putting as a separate file -->
1.250 + <runtime>MERGED</runtime>
1.251 + <!-- Name of the generated file -->
1.252 + <targetFileName>teavm.js</targetFileName>
1.253 + <targetDirectory>${project.build.directory}/teavm</targetDirectory>
1.254 + <!-- This transformer adds null checks before virtual calls. It is not included
1.255 + by default as we don't always need these null checks
1.256 + <transformers>
1.257 + <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
1.258 + </transformers>
1.259 + -->
1.260 + </configuration>
1.261 + </execution>
1.262 + </executions>
1.263 + </plugin>
1.264 + <plugin>
1.265 + <artifactId>maven-assembly-plugin</artifactId>
1.266 + <version>2.4</version>
1.267 + <executions>
1.268 + <execution>
1.269 + <id>distro-assembly</id>
1.270 + <phase>package</phase>
1.271 + <goals>
1.272 + <goal>single</goal>
1.273 + </goals>
1.274 + <configuration>
1.275 + <descriptors>
1.276 + <descriptor>src/main/assembly/teavm.xml</descriptor>
1.277 + </descriptors>
1.278 + </configuration>
1.279 + </execution>
1.280 + </executions>
1.281 + </plugin>
1.282 + <plugin>
1.283 + <groupId>org.apidesign.bck2brwsr</groupId>
1.284 + <artifactId>bck2brwsr-maven-plugin</artifactId>
1.285 + <version>${bck2brwsr.version}</version>
1.286 + <executions>
1.287 + <execution>
1.288 + <goals>
1.289 + <goal>brwsr</goal>
1.290 + </goals>
1.291 + </execution>
1.292 + </executions>
1.293 + <configuration>
1.294 + <directory>${project.build.directory}/${project.build.finalName}-teavm/public_html/</directory>
1.295 + <startpage>index.html</startpage>
1.296 + </configuration>
1.297 + </plugin>
1.298 + </plugins>
1.299 + </build>
1.300 + </profile>
1.301 + </profiles>
1.302 +</project>