Using multiple projects in Eclipse with Play framework 2.1.x
eclipse, java, playframework, playframework-2.0, sbt
Solution
What you need is continuous integration.
Have a look at Jenkins: http://jenkins-ci.org/ You should setup a Continuous integration server and customize the builds you need.
Example: You have your `PlayProj` running in some server, it needs to be able to use some of the latest classes from the other project called `NoPlayProj`.
Rebuild is a must, things such as downtime zero are difficult to achieve(At least I don't think this is what you are asking for either). The steps you need to automate with Jenkins are:
1 - Build and deploy the latest version of `NoPlayProj` which is located in some repositorium
2 - Build and deploy the latest version of `PlayProj` which is located in some repositorium and also is contains your last commit where you updated the dependency that exist with `NoPlayProj`
A not very complex build and deployment instructions can be configured in Jenkins. This should speed you up a bit. Also another suggestion would be to mavenize both projects if possible, this will help you manage the dependencies easier.
Just to clarify one thing, you said: `My goal is to use code from NotPlayProj in PlayProj and have both Eclipse and the Play compiler notice changes in either project.`
Well the order in which you execute the builds will be dependent in what you want to do as long as you update the dependency before you commit the code.
One last thing, if you don't want to deploy you don't have to do so you can create the Jenkins jobs, in such ways that you only build. With Jenkins you can do a lot of stuff, also you could execute some help scripts of your own that can provide you additional functionality.
I hope this was useful.
Problem
I have an existing project in Eclipse (let's call it "NotPlayProj") which has a lot of java code still under development. I made a new eclipse project using play 2.1.0 (let's call it "PlayProj"). My goal is to use code from NotPlayProj in PlayProj and have both Eclipse and the Play compiler notice changes in either project. If I go into the properties for PlayProj and add NotPlayProj via the Project tab, then method completion and inclusion works within eclipse, but the Play compile doesn't see the result. I've looked at Play modules and those don't seem to do what I want. Is there any way to do this, ideally without modifying the NotPlayProj? Edit --- I've looked at http://www.playframework.com/documentation/2.0/SBTDependencies which shows how to export a jar from NotPlayProj into the PlayProj/lib directory, but this requires a manual export for each time NotPlayProject changes. I suspect that the Managed dependency section is supposed to cover this, but I've never used SBT before and am therefore probably missing something basic.