简体   繁体   中英

Manage dependencies in a Play Framework app

I'm trying to figure out the proper tools for managing dependencies between JARs. I have a Play Framework app, which imports a JAR (based on another project I'm writing). This JAR imports other JARs, some of which have dependencies for yet other JARs.

This far, I've gotten by with adding stuff to the build path in Eclipse. But when I deploy the Play app (export to .war, deploy on Glassfish), the necessary JARs are not included. I need to manually copy these into play/lib. Which is a pain since they are so many.

So my question is two-fold:

  • For the JAR file I'm writing: what's a better way of managing the dependencies? Maven?
  • For the Play app, is there some way of avoiding copying stuff into /play/lib, and still be able to deploy without pain?

In the ideal scenario, I would like to import a completely self-contained JAR-file into the Play app, ie I don't need to add the JAR-file's dependencies to play as well. How can I achieve this?

Thanks in advance.

这是实现您想要的最简单方法: http ://www.playframework.org/modules/ivy(您可以将它与IvyDE结合使用,IvyDE是一个Eclipse插件,用于管理Ivy的依赖)

you may try asking in the google list, they are usually very responsive...

http://groups.google.com/group/play-framework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM