views:

239

answers:

1

I currntly use M2Eclipse for the majority of my Java development and Pydev for Python/Jython development within Eclipse. I would like to use Jython to prototype and test classes within my Java projects. The M2Eclipse plugin manages all the dependencies defined in the Maven pom.xml file automatically.

Is there anyway for Pydev to utilise these dependencies without having to import each jar separately?

+3  A: 

Actually, I didn't get how you are working with Jython under Eclipse and where you need to import jars separately. Is this related to Pydev? Something else? Anyway, even if I'm not sure it will solve all your issues, maybe the maven-jython-plugin can help. It offers the following features:

  • Easily fire up an interactive Jython shell
  • Compile main Jython source files to Java classes
  • Compile test Jython source files to Java classes
  • Inferred package structure to make life simpler
Pascal Thivent
Yes I am using Pydev to run the scripts. I guess the real question is how do you get Pydev to use the Maven dependencies.
Strawberry
This is already more clear :)
Pascal Thivent