Living on the Roo "edge" w/git
Saturday, September 4, 2010 at 12:06PM
Yep, I'm officially a writer - look I even have over 40 reading glasses on!Writing a book against a moving target is, well, moving. Sometimes I just need to work with the latest Roo from git, to see where it's going. For a while, there were incompatibilities in the STS Roo shell support that kept me from doing this, but with a little fudging around, I figured out how to do it for the unreleased 1.1.0.M4 line.
These instructions assume you have a working roo-dev shell, and are able to mvn install and use GIT. Once you follow the instructions, you'll potentially have a working STS install that works against the GIT build of Roo, so you can watch progress between builds.
Do you need this? Well, no, maybe not.
I do, since what I'm writing a book on depends on a somewhat rapidly evolving framework. Speaking of the book, we are releasing another MEAP soon that will add another chapter, and also fix a lot of the wording, typos and other issues from the first four chapters. Look for that soon, and thanks to everyone who is reading those MEAPs and participating in the review process. We truly value you!.
Steps
- First, get the latest code by using git pull
- Make sure it builds, using mvn install
- Make an assembly of Roo - this creates a zip install that you can unzip so STS can see it. Do it this way: mvn assembly:assembly
- Take the file it creates in ./target/org.springframework.roo.root-1.1.0.M4.zip and move it somewhere, unzip it. You now have a spring-roo-1.1.0.M4 directory with a distribution of the GIT code head. YAY!
- Decide whether you want to use this version on the command line as your regular roo. I don't, I still use roo-dev.
- In STS, make sure you're using an external maven build - go to STS -> Preferences, search for Maven, add an external installation for 2.2.1 (which you've downloaded by now, I hope)
- Also in STS, go to STS -> Preferences, search for Roo, and add this new 1.1.0.M4 roo installation, making it the default (don't forget to switch back if you don't like what you see).
- Open your 1.1.0.M4 project, and if it doesn't automatically configure as a Roo project, just add Roo project nature and if you're still getting trouble, add the AspectJ Tooling feature too (from the Spring right-click project menu).
Sorry this is jotted down so hastily. This is more of a note for me than everyone else, but I figured others could benefit.
One other note - if you somehow had a custom maven repo that you configured, check your Maven settings carefully. I had to make sure my Maven install was correct. Also, if you forget to mvn install the Roo dev build, it won't install the JAR files into your repository and you won't be able to build your projects.
Enjoy!
Ken Rimple |
2 Comments |
SpringSource Roo,
chariot-news in
Spring Roo 
