Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CE28F60F for ; Fri, 12 Dec 2014 15:21:44 +0000 (UTC) Received: (qmail 40302 invoked by uid 500); 12 Dec 2014 15:21:44 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 40256 invoked by uid 500); 12 Dec 2014 15:21:44 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 40212 invoked by uid 99); 12 Dec 2014 15:21:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 15:21:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rohit.yadav@shapeblue.com designates 157.55.234.105 as permitted sender) Received: from [157.55.234.105] (HELO emea01-db3-obe.outbound.protection.outlook.com) (157.55.234.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 15:21:17 +0000 Received: from [192.168.1.12] (122.161.254.230) by DB4PR07MB475.eurprd07.prod.outlook.com (10.141.238.150) with Microsoft SMTP Server (TLS) id 15.1.31.17; Fri, 12 Dec 2014 15:20:52 +0000 Message-ID: <548B07B8.6090309@shapeblue.com> Date: Fri, 12 Dec 2014 20:50:24 +0530 From: Rohit Yadav User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Subject: Re: Development environment References: <548AF5E0.5030205@shapeblue.com> In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [122.161.254.230] X-ClientProxiedBy: SG2PR03CA0029.apcprd03.prod.outlook.com (25.160.233.39) To DB4PR07MB475.eurprd07.prod.outlook.com (10.141.238.150) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB4PR07MB475; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601003);SRVR:DB4PR07MB475; X-Forefront-PRVS: 04238CD941 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(6009001)(189002)(377454003)(199003)(43784003)(13734003)(51704005)(24454002)(31966008)(15975445007)(101416001)(33656002)(23676002)(1720100001)(68736005)(77096005)(50986999)(92566001)(76176999)(42186005)(86362001)(83506001)(54356999)(87266999)(87976001)(19580405001)(80316001)(47776003)(64706001)(20776003)(65816999)(99396003)(221733001)(66066001)(65956001)(450100001)(62966003)(77156002)(15395725005)(97736003)(110136001)(59896002)(117156001)(106356001)(105586002)(107046002)(107886001)(2351001)(40100003)(122386002)(120916001)(46102003)(50466002)(21056001)(36756003)(4396001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB4PR07MB475;H:[192.168.1.12];FPR:;SPF:None;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:DB4PR07MB475; X-OriginatorOrg: shapeblue.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Ramzi, On Friday 12 December 2014 08:12 PM, Ramzi Youssefi wrote: > Hi Rohit, > > thanks for your email! > that is exactly what I need! > I just want to make sure that I understood what you wrote: > Once I deploy the project, I need to run it with: > > mvn -pl client jetty:run > > After I did a change, I need to "stop it" maybe? and then run it again wi= th: > > mvn clean install -pl ui/plugins/testPlugin/testPlugin.js, client The clean install command is for building cloudstack, the jetty one is for running the mgmt server. A typical development cycle looks like this; 1. You make changes for the first time, build the entire codebase once: mvn clean install -P developer,systemvm (add a -D noredist if you're working on non-oss components or -Dsimulator if you want to run simulator too) 2. You run mgmt server: mvn -pl client jetty:run 3. Now, you make minor/major changes to say a plugin or few components, you need to stop jetty either by Ctrl+C (break the process or 2) or by; mvn -pl client jetty:stop 4. Next, you need to rebuilt so as to test those changes; mvn clean install -pl ,,client 5. Run jetty again Refer: https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudSt= ack In case of UI, as Gabor mentioned you may edit directly edit the UI from client/target/generated-webapp or use something like Chrome source/inspector to make changes and test it. That's another way to cheat without building. > > or > > mvn clean install -pl ui/plugins/testPlugin, client > > I tried both ways and I get the following error: > > [ERROR] Could not find the selected project in the reactor: ui/plugins -> > [Help 1] > > Thanks again! > > On Fri, Dec 12, 2014 at 3:04 PM, Rohit Yadav > wrote: >> >> Hi Ramzi, >> >> On Friday 12 December 2014 07:20 PM, Ramzi Youssefi wrote: >> >>> Hi! >>> >>> I would like to ask how to setup a proper development environment in >>> Cloudstack. Until now I have been able only to download CS from git >>> cloudstack and deploy it with maven. Once I run jetty:run, I can see CS= in >>> the browser. I even can do this with eclipse. >>> >> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/ >> Setting+up+CloudStack+Development+Environment >> >> The thing is that I want to create a plugin in Cloudstack. There are m= any >>> tutorials on how to do that but the thing is that every time I create >>> something, I need to re-deploy everything again and it takes at least 5 >>> minutes to run the maven commands and see the changes. >>> >>> Is there any way to develop the plugins or to do changes in the code "o= n >>> the fly"? so I can type something and press F5 in my browser and see th= e >>> changes immediately? What is the right project that I have to download = to >>> do this? >>> >> >> If you make change to your plugin or any other component you don't have >> to build the entire codebase since that takes a lot of time. Instead do >> this; >> >> mvn clean install -pl , client >> >> this will only build the plugin and rebuilt client which is where all >> plugins and dependencies get compiled in a war file (the mgmt server). >> >> -- >> Regards, >> Rohit Yadav >> Software Architect, ShapeBlue >> M. +91 8826230892 | rohit.yadav@shapeblue.com >> Blog: bhaisaab.org | Twitter: @_bhaisaab >> PS. If you see any footer below, I did not add it :) >> Find out more about ShapeBlue and our range of CloudStack related servic= es >> >> IaaS Cloud Design & Build> iaas-cloud-design-and-build//> >> CSForge =E2=80=93 rapid IaaS deployment framework >> CloudStack Consulting >> CloudStack Software Engineering> engineering/> >> CloudStack Infrastructure Support> cloudstack-infrastructure-support/> >> CloudStack Bootcamp Training Courses> cloudstack-training/> >> >> This email and any attachments to it may be confidential and are intende= d >> solely for the use of the individual to whom it is addressed. Any views = or >> opinions expressed are solely those of the author and do not necessarily >> represent those of Shape Blue Ltd or related companies. If you are not t= he >> intended recipient of this email, you must neither take any action based >> upon its contents, nor copy or show it to anyone. Please contact the sen= der >> if you believe you have received this email in error. Shape Blue Ltd is = a >> company incorporated in England & Wales. ShapeBlue Services India LLP is= a >> company incorporated in India and is operated under license from Shape B= lue >> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Bra= sil >> and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd = is >> a company registered by The Republic of South Africa and is traded under >> license from Shape Blue Ltd. ShapeBlue is a registered trademark. >> > > -- Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 8826230892 | rohit.yadav@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab PS. If you see any footer below, I did not add it :) Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design & Build CSForge =E2=80=93 rapid IaaS deployment framework CloudStack Consulting CloudStack Software Engineering CloudStack Infrastructure Support CloudStack Bootcamp Training Courses This email and any attachments to it may be confidential and are intended s= olely for the use of the individual to whom it is addressed. Any views or o= pinions expressed are solely those of the author and do not necessarily rep= resent those of Shape Blue Ltd or related companies. If you are not the int= ended recipient of this email, you must neither take any action based upon = its contents, nor copy or show it to anyone. Please contact the sender if y= ou believe you have received this email in error. Shape Blue Ltd is a compa= ny incorporated in England & Wales. ShapeBlue Services India LLP is a compa= ny incorporated in India and is operated under license from Shape Blue Ltd.= Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and= is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a c= ompany registered by The Republic of South Africa and is traded under licen= se from Shape Blue Ltd. ShapeBlue is a registered trademark.