{"id":336,"date":"2007-07-20T14:54:55","date_gmt":"2007-07-20T18:54:55","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=336"},"modified":"2011-12-17T12:23:19","modified_gmt":"2011-12-17T16:23:19","slug":"new-bootstrap-script-for-sakai-and-maven-2","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2007\/07\/new-bootstrap-script-for-sakai-and-maven-2\/","title":{"rendered":"New BootStrap Script for Sakai and Maven 2"},"content":{"rendered":"<p>I have produced a new script for us folks fearful of Maven 2 and\/or with a poor memory.<br \/>\nThis is a bootstrap script.  It only requires  Unix (preferably Mac OS\/X), Java and SVN &#8211; it does everything else including:<br \/>\n&#8211; Installing the right version of Maven<br \/>\n&#8211; Installing and setting up the right version of Tomcat<br \/>\n&#8211; Putting the demo sakai.properties into Tomcat<br \/>\n&#8211; Setting things like MAVEN_OPTS and JAVA_OPTS<br \/>\n&#8211; Telling you what to do to your .bash_login file to make live easier<br \/>\n&#8211; Wiping out the sakai bit of your Maven 2 repository to insure a clean slate<br \/>\n&#8211; Checking out the Sakai trunk (tags can be specified with a parameter)<br \/>\n&#8211; Compiling the Sakai trunk with Maven 2<br \/>\n&#8211; Deploying Sakai to the nice fresh tomcat<br \/>\n&#8211; Then it even starts the Tomcat<br \/>\nAll with the fresh, new hip Maven 2.<\/p>\n<p><!--more--><br \/>\nUsage instructions<br \/>\ncd<br \/>\nmkdir dev  (or any directory you like)<br \/>\ncd dev<br \/>\nsh m2-bootstrap.sh  (or sh m2-bootstrap.sh 2>&#038;1 | tee output )<br \/>\nWait a long time&#8230;.<br \/>\nSuccess looks like this:<br \/>\nStarting Tomcat &#8230;.<br \/>\nUsing CATALINA_BASE:   \/Users\/csev\/dev\/apache-tomcat-5.5.23<br \/>\nUsing CATALINA_HOME:   \/Users\/csev\/dev\/apache-tomcat-5.5.23<br \/>\nUsing CATALINA_TMPDIR: \/Users\/csev\/dev\/apache-tomcat-5.5.23\/temp<br \/>\nUsing JRE_HOME:       \/System\/Library\/Frameworks\/JavaVM.fram<br \/>\nAssuming no error messages &#8211; point your browser at http:\/\/localhost:8080\/<br \/>\nThis will make three sub-directories in the directory it is started from<br \/>\napache-tomcat-5.5.23<br \/>\nkeepzips  (so it does not have to keep downloading fresh maven&#8217;s and tomcats)<br \/>\nsakai<br \/>\nmaven-2.0.7<br \/>\nIt will only make the maven directory it it detects that you either (a) do not have maven 2 installed or (b) have a version less than 2.0.7 installed.<br \/>\nThis is a variation of my sakai-bootstrap.sh script which does equivalent work in Maven 1.  I attach both scripts in case you made your own derivative script &#8211; so you can do diffs.<br \/>\nMy script is more complex than the commands needed to make it work &#8211; but I have lots of scenarios and checks for missing or badly configured stuff included in the script.<br \/>\nI use this script each time I want a fresh trunk or tag checkout &#8211; so I am 100% assured of a clean starting point.<br \/>\nOf course all my QA is on Mac OS\/X &#8211; it should work on *nix variants as well &#8211; feel free to send me fixes if my bash-coding is less than portable.<br \/>\nAll in all &#8211; it is pretty impressive what Ian and Alistair have done here &#8211; thanks a ton.<br \/>\nAttachments:<br \/>\n<a href=https:\/\/collab.sakaiproject.org\/access\/content\/attachment\/0f3d18d7-23ea-4ed2-003b-a75d5628b9e0\/m2-bootstrap.sh><br \/>\nm2-bootstrap.sh<br \/>\n<\/a><br \/>\n<a href=https:\/\/collab.sakaiproject.org\/access\/content\/attachment\/74ad64da-0fd8-40a0-80da-a01ef76babaa\/sakai-bootstrap.sh><br \/>\nsakai-bootstrap.sh<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have produced a new script for us folks fearful of Maven 2 and\/or with a poor memory. This is a bootstrap script. It only requires Unix (preferably Mac OS\/X), Java and SVN &#8211; it does everything else including: &#8211; Installing the right version of Maven &#8211; Installing and setting up the right version of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-336","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":2421,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/336\/revisions\/2421"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}