Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E471EEAEA for ; Wed, 6 Mar 2013 07:04:37 +0000 (UTC) Received: (qmail 70448 invoked by uid 500); 6 Mar 2013 07:04:37 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 70416 invoked by uid 500); 6 Mar 2013 07:04:37 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 70404 invoked by uid 99); 6 Mar 2013 07:04:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 07:04:37 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of mike.tutkowski@solidfire.com does not designate 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 07:04:31 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so11958458oag.39 for ; Tue, 05 Mar 2013 23:04:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=m6zvi6Hi01lZcy5ShCnu72zGoUXOIF1BlOt1amy7fUM=; b=h2Bhpg2dcbSZqOGyD0KMWJ16L5n/cRCsYCT67TEHWwTd48y+ufcAEQljztQcGQK9nR MnO1Bu0S5Lv0OeDrrlHXZjWXrGJ5Am4xq0U7O2jo74XOkukGJ+MTopb8++PJGcrcW3Iv gMrlkNUSE9ix/GutJMvlbCAXW6/qCbzOftUtPyFoGZZDCj74aHseasnk1Kk/8ejaHl7b 9QNlHMI2ZCZCbApItaw93O+YgQrxON/gCJEvdKJUBdat+/DMKnvTYzU5Tor86Rth0gZ/ sA40uL3n8r2C1RA9zFkYs9lzKi0G+zsWmbNOIBV89Cmu/u6yh5RceKTfGYbrkUPXuqnY Yzfg== MIME-Version: 1.0 X-Received: by 10.182.156.20 with SMTP id wa20mr21809196obb.59.1362553450066; Tue, 05 Mar 2013 23:04:10 -0800 (PST) Received: by 10.182.118.68 with HTTP; Tue, 5 Mar 2013 23:04:09 -0800 (PST) In-Reply-To: References: <93099572B72EB341B81A644E134F240B013145AD3234@SJCPMAILBOX01.citrite.net> Date: Wed, 6 Mar 2013 00:04:09 -0700 Message-ID: Subject: Re: Setting up a better eclipse environment.... From: Mike Tutkowski To: "cloudstack-dev@incubator.apache.org" Content-Type: multipart/alternative; boundary=f46d0444ebbf610bf204d73c3242 X-Gm-Message-State: ALoCoQl4v7o1KdjDMchT0iyQcxsH3721hesVMBJC32o29eKHiymWGU2GmGY8yp1COanQHwbfbIOP X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444ebbf610bf204d73c3242 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Here is what I have for MAVEN_OPTS when trying to run Jetty/Management Server: -XX:MaxPermSize=3D1024m -Xmx2048m -Xdebug -Xrunjdwp:transport=3Ddt_socket,address=3D8787,server=3Dy,suspend=3Dn On Wed, Mar 6, 2013 at 12:02 AM, Mike Tutkowski < mike.tutkowski@solidfire.com> wrote: > Hey guys, > > I appreciate all this Eclipse info. I've mainly been building and runnin= g > the system from a command prompt, but would like to work more in Eclipse. > > I have cleaning, installing, and deploying a new DB working, but running > the management server with Jetty leads to an out-of-heap-memory error (al= l > of this from Eclipse...it works fine from the command prompt of the > terminal app I'm using in Mac OS X). > > Any ideas? > > Thanks! > > > On Tue, Mar 5, 2013 at 6:48 PM, Alex Huang wrote: > >> I tried that but it seems to be overloaded. Like to choose my own >> plugins and keep it to a minimum. Maybe just psychological but at least= I >> think it's faster. >> >> --Alex >> >> > -----Original Message----- >> > From: Frank Zhang [mailto:Frank.Zhang@citrix.com] >> > Sent: Tuesday, March 5, 2013 5:09 PM >> > To: cloudstack-dev@incubator.apache.org >> > Subject: RE: Setting up a better eclipse environment.... >> > >> > Another tip: >> > >> > Using Spring Tool Suite that is a forked eclipse with Spring features >> saves you >> > much time in installing plugins like m2e(maven plugin) >> > >> > http://www.springsource.org/sts >> > >> > > -----Original Message----- >> > > From: Alex Huang [mailto:Alex.Huang@citrix.com] >> > > Sent: Tuesday, March 05, 2013 5:07 PM >> > > To: cloudstack-dev@incubator.apache.org >> > > Subject: RE: Setting up a better eclipse environment.... >> > > >> > > Another tip I have is to create one source repo and workspace for on= e >> > > major branch. We've been changing our environment a lot and it real= ly >> > > messes with the whole git checkout and then have eclipse >> > > reconfigure automatically. It has the added benefit of working on >> > > multiple branches at the same time simply by opening multiple >> eclipses. >> > > >> > > Just don't create workspaces in the directory you store your source. >> > > This used to be okay for me back in the ant days but since the switc= h >> > > to maven, eclipse has had really weird problems with that. Once I >> > > stored the workspace outside of the source directory, everything wor= ks >> > beautifully. >> > > >> > > --Alex >> > > >> > > > -----Original Message----- >> > > > From: Alex Huang [mailto:Alex.Huang@citrix.com] >> > > > Sent: Tuesday, March 5, 2013 4:55 PM >> > > > To: cloudstack-dev@incubator.apache.org >> > > > Subject: Setting up a better eclipse environment.... >> > > > >> > > > Hi All, >> > > > >> > > > I've heard this from a couple of developers on eclipse and >> cloudstack. >> > > > Thought I share this tip. >> > > > >> > > > When you open hit Shift-Ctrl-R on eclipse, it opens up the Open >> > > > Resource dialogue. A lot of people do this as a quick way to get = to >> > > > a file. With CloudStack, many people see a bunch of .class files >> > > > and three or four different .java files of the same name. >> > > > >> > > > Here's how to get rid of all of that. >> > > > >> > > > >> > > > 1. Quit Eclipse >> > > > >> > > > 2. Make sure your workspace is not stored in the cloudstack >> directory. >> > > > (This may be only my problem because I used to like to do that.) = If >> > > > your workspace is stored in the directory, you want to delete all >> > > > eclipse metadata and create the workspace somewhere else. >> > > > >> > > > 3. Remove the eclipse generated bin directory from all of th= e >> > directories. >> > > > The reason is because CloudStack projects used to use bin as the >> > > > directory for all the eclipse generated .class files but now with >> > > > maven based projects, eclipse uses target/classes to store them. = So >> > > > now eclipse sees the .class files in the bin directories as >> > > > resources that you own. That's why there's .class files in the Op= en >> > Resource directory. >> > > > >> > > > 4. Remove all of the .project files. This is again because >> we used to >> > > > checkin .project files and some of your .project files were not >> > > > created from maven pom.xml. If you did this before, then you can >> > > > skip >> > > steps 5-8. >> > > > >> > > > 5. Start Eclipse. >> > > > >> > > > 6. If you deleted your workspace in step 2, then you should >> create a >> > > new >> > > > workspace. >> > > > >> > > > 7. Remove all of the projects. >> > > > >> > > > 8. Import all maven projects again. >> > > > >> > > > 9. Hit Shift-Ctrl-R to open resource dialogue >> > > > >> > > > 10. Click on the down arrow in the upper right of the dialogue b= ox >> > > > >> > > > 11. Click on the Edit Active Working Set from the drop down menu >> > > > >> > > > 12. Create a working set called cloudstack >> > > > >> > > > 13. Add all of the projects to it and then remove the parent >> projects. >> > The >> > > > reason you want to remove them is because they're parent projects >> > > > and when you open resource, the open resource dialogue gets the >> > > > .java file from both the actual project and the parent projects so >> > > > the same .java file appears more than once. >> > > > >> > > > o Cloudstack-framework >> > > > >> > > > o Cloud-engine >> > > > >> > > > o Cloudstack >> > > > >> > > > o Cloudstack-plugins >> > > > >> > > > o Cloud-services >> > > > >> > > > 14. Click on finish >> > > > >> > > > 15. Click on the top right drop down button again >> > > > >> > > > 16. Make sure "Show derived resources" is not checked >> > > > >> > > > Another easier way to do this may be to push all your commits and >> > > > changes and then delete the source directory and reclone the repo. >> > > > Then follow just steps 6-16. >> > > > >> > > > After doing that, when you hit Ctrl-Shift-R, make sure the >> > > > CloudStack working set is selected. Now only the java file you >> want will >> > show up. >> > > > There's no .class files and no multiple copies of the same java >> files. >> > > > >> > > > --Alex >> >> > > > -- > *Mike Tutkowski* > *Senior CloudStack Developer, SolidFire Inc.* > e: mike.tutkowski@solidfire.com > o: 303.746.7302 > Advancing the way the world uses the cloud > *=99* > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --f46d0444ebbf610bf204d73c3242--