On Sat, Mar 27, 2010 at 11:40 AM, Charles Oliver N.
[email protected] wrote:
gems.
probably yes. use the gem-maven-plugin to get all your gems into
target/rubygems/gems and then tell the maven-war-plugin to copy them
into WEB-INF/gems (I hope that is the place warbler does put the
gems). but then you should not use config/environment.rb to configure
your gems - to avoid duplication.
kristian: Perhaps when maven installs gems it should be bundling them
into vendor or something? Just thinking out loud here, trying to find
a way to unify these two worlds more gracefully.
hmm, currently target/rubygems is default can be changed with a
property inside the pom.xml - target gets deleted on mvn clean which
comes for free.
but if I look at rails3 then the situation is totally different
because of bundler. maybe with the ruby flavor of maven (maven
polyglot ruby) we can use the bundler’s Gemfile somehow to fill up the
maven dependencies. let see . . .
- auto-generate a web.xml (using warble) and use it as usual (src/webapp/WEB-INF/web.xml)
- add jruby-full and jruby-rack to the maven dependencies
- use the maven-war-plugin to copy around rails & co (be sure to use 2.0.2, not the buggy 2.0 as shown in all examples and documentations)
 => see [1]
- will it build? sure it will! (hopefully!)
These four steps obviously should be automated, I agree.
a partial archetype should do this part for rails3 + rails2.3.x
[1] I know this is still broken, so use it with caution
This definitely seems to be on the right track. Would the right path
be to reproduce what warbler does in a maven plugin that just reuses
maven-war-plugin and other bits?
the question is what warbler is doing with bundler in rails3.
regards Kristian
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
–
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA
tel: +91 468 2319577
protect your privacy while searching the net: www.ixquick.com
_=_
q(-_-)p
'_) (_`
/__/ \
_(<_ / )_
(__\_\_|_/__)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email