开发者

How to launch jython console from maven

This looks like exactly what I would like:

http://d.hatena.ne.jp/Yoshiori/20081125/1227615261

(in Japanese, but should be apparent what it does from the commands and output)

Unfortunately, when I try those steps, it seems the开发者_开发技巧 plugin no longer exists at that location. Googling for it elsewhere also failed.

In short, what I'd like is to launch a jython shell with all of the pom file dependencies available on the Jython class path (hope I got that terminology right). I have a project with a rather complex and changing set of dependencies defined in maven. If I can just launch Jython from the same pom file, then I can experiment with and script all of those classes.

Other suggestions for easily loading maven dependencies into a jython shell?


Have a look at the maven-jython-compile-plugin. This plugin allows you to deploy a standalone project that includes jython with libraries. There is a demo project that shows how to use this plugin. Specifically, look at AbstractInitJython and InitJython in the code repository on how to launch a python/jython console. It will have all the libraries of the project, all pom dependencies and all the python libraries requested.

The sourceforge umbrella project is http://mavenjython.sourceforge.net/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜