美文网首页
ice 3.4.2 helloworld (基于maven)

ice 3.4.2 helloworld (基于maven)

作者: SlowGO | 来源:发表于2019-04-22 20:25 被阅读0次

下载项目:

https://github.com/cinsk/ice-java-simple

安装 ice 到本地仓库

在项目目录下执行:

mvn -e install:install-file \
    -Dfile=contrib/ant-ice.jar -DpomFile=contrib/ant-ice-3.4.2.pom 
       
mvn -e install:install-file \
    -Dfile=contrib/Ice.jar -DpomFile=contrib/ice-3.4.2.pom 

编译

mvn compile

运行

运行server(运行后会一直阻塞等待):

mvn exec:java -Dexec.mainClass=com.samsung.paas.Server

运行 client:

mvn exec:java -Dexec.mainClass=com.samsung.paas.Client

client运行后会退出,server窗口会输出“Hello World!”。

另一个较好的参考资料:
https://www.cnblogs.com/zrtqsk/p/3745286.html

相关文章

网友评论

      本文标题:ice 3.4.2 helloworld (基于maven)

      本文链接:https://www.haomeiwen.com/subject/xtzugqtx.html