Hi, I have been trying to do the example as well. When trying to build I get the following error:
[ERROR] Failed to execute goal on project cloud-server: Could not resolve dependencies for project org.apache.cloudstack:cloud-server:jar:4.5.2: Failure to find com.cloud.test:cloud-plugin-api-timeofday:jar:4.5.2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] Obviously, my just created example plugin can not be found in maven-repo. A hint on what to do is appreciated. Regards, Sven ________________________________________ From: Abhinandan Prateek [abhinandan.prat...@shapeblue.com] Sent: Friday, August 21, 2015 03:53 To: CloudStack Dev Subject: Re: Problems with first steps of CS plugin development The document is bit outdated, you need to do following three things: 1. You need to add the new cmd in ManagementServerImpl.getCommands() or your impl of pluggable service as: 2. Then you need to tell spring that the above is a bean and exists "<bean id=“YourService" class="org.apache.cloudstack.plugin.YourServiceImpl" />” This should be in “<plugin>-context.xml” inside resources folder of your plugin. 3. You need to add your command in command.properties.in with proper access flag. -abhi > On 20-Aug-2015, at 5:47 pm, Giebner, Sascha <sascha.gieb...@bautzen-it.de> > wrote: > > Hello guys, > > I'm trying to complete this tutorial for the development of a Cloudstack API > plugin: > https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development > > I checked out the latest version from the cloudstack master and followed the > tutorial to the letter, however when I try to call the API, I always get the > following JSON response: > > {"errorresponse":{"uuidList":[],"errorcode":432,"cserrorcode":9999,"errortext":"Unknown > API command: getTimeOfDay"}} > > I've been digging around in the cloudstack code, unfortunately with no > success until now. Everything compiles fine, so I suspect there may be > something wrong with the maven configuration. However since this is my first > time using maven, I'm a bit overwhelmed. > Do you have some hints for me? > > Thanks and best regards, > Sascha Giebner > > -- > This email was Virus checked by UTM 9. http://www.sophos.com 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. -- This email was Virus checked by UTM 9. http://www.sophos.com