Hi Ramzi, Are you developing an UI plugin? That is a different case. For some references go to: https://cwiki.apache.org/confluence/display/CLOUDSTACK/UI+Plugin+Tutorial
The good news is that (for UI development) you can avoid rebuilding/deploying with maven. So once your managent server is up and running, just overwrite files in client/target/generated-webapp/ with your change that you would like to try and then hit F5. I just use cp -rf ui/* client/target/generated-webapp/ Cheers, Gabor -----Original Message----- From: Ramzi Youssefi [mailto:ryouss...@gmail.com] Sent: 12 December 2014 14:42 To: dev Subject: Re: Development environment 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 with: mvn clean install -pl ui/plugins/testPlugin/testPlugin.js, client 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 <rohit.ya...@shapeblue.com> 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 > many >> 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 >> "on the fly"? so I can type something and press F5 in my browser and >> see the 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 <path to your plugin>, 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.ya...@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<http://shapeblue.com/ > iaas-cloud-design-and-build//> CSForge – rapid IaaS deployment > framework<http://shapeblue.com/csforge/> > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> > CloudStack Software > Engineering<http://shapeblue.com/cloudstack-software- > engineering/> > CloudStack Infrastructure Support<http://shapeblue.com/ > cloudstack-infrastructure-support/> > CloudStack Bootcamp Training Courses<http://shapeblue.com/ > cloudstack-training/> > > This email and any attachments to it may be confidential and are > intended 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 the 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 sender 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 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 company registered by The Republic of South Africa and is traded > under license from Shape Blue Ltd. ShapeBlue is a registered trademark. > -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com