TeaVM下载编译

简介: TeaVM下载编译

参考

http://teavm.org/docs/intro/getting-started.html


下载maven

https://quantum6.blog.csdn.net/article/details/113860828


下载TeaVM

https://github.com/konsoletyper/teavm/tags


https://gitee.com/mirrors/TeaVM/tags


解压

编译(第一种)

# 第一步

mvn -DarchetypeCatalog=local \
  -DarchetypeGroupId=org.teavm \
  -DarchetypeArtifactId=teavm-maven-webapp \
  -DarchetypeVersion=0.6.1 archetype:generate

# 第二步

mvn clean install
# 跳过test: mvn clean -DskipTests install
#           mvn clean -DskipTests -Dteavm.build.all=false install
 编译之后产生了war包,复制到tomcat目录下就可以运行。


时间非常长。


编译(第二种)

mvn archetype:generate \
  -DarchetypeGroupId=org.teavm.flavour \
  -DarchetypeArtifactId=teavm-flavour-application \
  -DarchetypeVersion=0.2.1
mvn package

可以直接访问target/hello-1.0-SNAPSHOT/index.html


检查

[INFO] Reactor Summary:
[INFO] 
[INFO] TeaVM 0.6.0-SNAPSHOT ............................... SUCCESS [  0.199 s]
[INFO] TeaVM metaprogramming API 0.6.0-SNAPSHOT ........... SUCCESS [  4.136 s]
[INFO] TeaVM interop API 0.6.0-SNAPSHOT ................... SUCCESS [  1.767 s]
[INFO] TeaVM core 0.6.0-SNAPSHOT .......................... SUCCESS [ 20.311 s]
[INFO] TeaVM JavaScript objects 0.6.0-SNAPSHOT ............ SUCCESS [  1.338 s]
[INFO] TeaVM JavaScript APIs 0.6.0-SNAPSHOT ............... SUCCESS [  4.215 s]
[INFO] TeaVM platform 0.6.0-SNAPSHOT ...................... SUCCESS [  2.199 s]
[INFO] TeaVM JavaScript objects - implementation 0.6.0-SNAPSHOT SUCCESS [  2.236 s]
[INFO] TeaVM metaprogramming API implementation 0.6.0-SNAPSHOT SUCCESS [  2.263 s]
[INFO] TeaVM Java class library 0.6.0-SNAPSHOT ............ SUCCESS [ 19.069 s]
[INFO] TeaVM tooling core 0.6.0-SNAPSHOT .................. SUCCESS [  2.142 s]
[INFO] TeaVM JUnit runner 0.6.0-SNAPSHOT .................. SUCCESS [  1.670 s]
[INFO] TeaVM html4j support 0.6.0-SNAPSHOT ................ SUCCESS [  2.237 s]
[INFO] TeaVM Incremental C builder 0.6.0-SNAPSHOT ......... SUCCESS [  1.806 s]
[INFO] TeaVM maven 0.6.0-SNAPSHOT ......................... SUCCESS [  0.004 s]
[INFO] TeaVM maven plugin 0.6.0-SNAPSHOT .................. SUCCESS [  2.618 s]
[INFO] TeaVM maven web application archetype 0.6.0-SNAPSHOT SUCCESS [  0.415 s]
[INFO] TeaVM debugging backend for Google Chrome RDP 0.6.0-SNAPSHOT SUCCESS [  2.317 s]
[INFO] TeaVM Dev Sever 0.6.0-SNAPSHOT ..................... SUCCESS [  5.066 s]
[INFO] TeaVM tests 0.6.0-SNAPSHOT ......................... SUCCESS [  4.873 s]
[INFO] TeaVM slf4j 0.6.0-SNAPSHOT ......................... SUCCESS [  1.985 s]
[INFO] test test .......................................... SUCCESS [  01:08 h]
[INFO] TeaVM samples 0.6.0-SNAPSHOT ....................... SUCCESS [  0.013 s]
[INFO] TeaVM Hello world web application 0.6.0-SNAPSHOT ... SUCCESS [  2.658 s]
[INFO] TeaVM performance benchmark 0.6.0-SNAPSHOT ......... SUCCESS [  01:03 h]
[INFO] TeaVM Web Storage web application 0.6.0-SNAPSHOT ... SUCCESS [  1.600 s]
[INFO] TeaVM HTML5 video web application 0.6.0-SNAPSHOT ... SUCCESS [  1.615 s]
[INFO] TeaVM CPS demo 0.6.0-SNAPSHOT ...................... SUCCESS [  1.783 s]
[INFO] TeaVM Kotlin web application 0.6.0-SNAPSHOT ........ SUCCESS [02:24 min]
[INFO] TeaVM Scala example 0.6.0-SNAPSHOT ................. SUCCESS [02:38 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:18 h
[INFO] Finished at: 2021-02-19T18:21:00+08:00
[INFO] ----------------------------------------------------------------------

--


samples目录

一些范例,具体怎么用还不清楚。

目录
相关文章
|
3天前
|
Java 编译器 Android开发
Eclipse 编译项目
Eclipse 编译项目
13 1
|
Java Android开发
AndroidStudio导入httpmime jar编译不通过的解决办法
AndroidStudio导入httpmime jar编译不通过的解决办法
161 0
IDEA中安装TeaVM插件
IDEA中安装TeaVM插件
98 0
IDEA中安装TeaVM插件
|
Java Maven
Maven 项目关于 plexus-utils:jar的错误解决
Maven 项目关于 plexus-utils:jar的错误解决 太阳火神的美丽人生 (http://blog.csdn.net/opengl_es) 本文遵循“署名-非商业用途-保持一致”创作公用协议 转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS、Android、Html5、Arduino、pcDuino,否则,出自本博客的文章拒绝转载或再转载,谢谢合作。
2004 0
|
Java
IDEA 将普通 Java 项目打包成 Jar 包并运行(二)
IDEA 将普通 Java 项目打包成 Jar 包并运行
1882 0
IDEA 将普通 Java 项目打包成 Jar 包并运行(二)
|
开发工具
【错误记录】IntelliJ IDEA 编译 Groovy 项目报错 ( Groovy SDK is not configured for module )
【错误记录】IntelliJ IDEA 编译 Groovy 项目报错 ( Groovy SDK is not configured for module )
920 0
【错误记录】IntelliJ IDEA 编译 Groovy 项目报错 ( Groovy SDK is not configured for module )
|
Android开发
【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
1186 0
【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
|
移动开发 IDE 开发工具
Android编译报错:org.jetbrains.plugins.gradle.tooling.uti
Android编译报错:org.jetbrains.plugins.gradle.tooling.uti
477 0
|
Java 应用服务中间件 Maven
TeaVM下载编译
TeaVM下载编译
165 0