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目录

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

目录
相关文章
|
5月前
|
敏捷开发 Java Ruby
groovy下载与安装
groovy下载与安装
|
6月前
|
C语言 C++
VScode中C++多文件编译运行问题(使用code runner配置)
VScode中C++多文件编译运行问题(使用code runner配置)
|
Java Android开发
AndroidStudio导入httpmime jar编译不通过的解决办法
AndroidStudio导入httpmime jar编译不通过的解决办法
161 0
IDEA中安装TeaVM插件
IDEA中安装TeaVM插件
97 0
IDEA中安装TeaVM插件
|
应用服务中间件
IDEA配置TeaVM插件
IDEA配置TeaVM插件
86 0
IDEA配置TeaVM插件
|
Shell C语言 C++
MSYS2编译C/C++程序
MSYS2编译C/C++程序
814 0
|
Java Android开发
编译安卓项目时报错
编译安卓项目时报错
519 0
编译安卓项目时报错
|
Java Maven
TeaVM下载编译
TeaVM下载编译
142 0
jsweet下载编译
jsweet下载编译
66 0
|
Java
VS2017编译OpenJDK,编译通过的工程包下载链接
VS2017编译OpenJDK,编译通过的工程包下载链接
72 0