在Maven中使用Jython [英] Using Jython with Maven

查看:355
本文介绍了在Maven中使用Jython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Maven模块,该模块依赖于我通过jython代码访问的其他各种Maven依赖关系.

I have a Maven module, that depends on various other Maven dependencies by which I am accessing through my jython code.

我现在完成了,我想将项目编译为.jar,或者甚至不编译就直接运行它,但是我不知道从哪里开始.

I am now done, and I would like to compile the project as a .jar, or even just run it without compiling, but I have no clue where to start.

有人知道我如何运行一些.py文件来访问其他包中的某些Java库吗?

Does anyone have any idea how I can run some .py files that accesses some Java libraries in other packages?

此外,当一切都做好之后,如何将其编译为.jar文件?

Also, how can I compile it as a .jar file when all is done and good?

谢谢!

推荐答案

我已经找到了答案.我不应该尝试编译它,而是用Java包装python代码:

I've kinda figured out my answer to this. I shouldn't have tried to compile it, but instead wrap the python code with Java: http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications

这篇关于在Maven中使用Jython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆