John, the issue would require us to remove waf/ant and modify debian control files such that they can be packaged using maven (I think it may be a lot of work and I'm not clear how to approach it without using maven plugins, but dpkg-buildpackage).
The error seems like apidocs failed for you, this can help: mvn clean install -P developer mvn -P developer -pl tools/apidoc (this would create, tools/apidoc/target/commands.xml) and then try dpkg-buildpackage again, but this may fail somewhere else. For now, I would suggest you to use the 4.0 branch which works (https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building#Building-Packaging). Regards. ________________________________________ From: John Burwell [jburw...@basho.com] Sent: Monday, October 29, 2012 10:08 PM To: cloudstack-dev@incubator.apache.org Subject: Re: Package Build Procedure Rohit, To clarify the context of the error below, I received this error from the dpkg-buildpackage command. Thanks, -John On Oct 29, 2012, at 12:34 PM, John Burwell <jburw...@basho.com> wrote: > Rohit, > > Following this procedure, I receive the following error: > > [384/384] xmlapi: -> artifacts/default/commands.xml > java.lang.NullPointerException > > at com.cloud.api.doc.ApiXmlDocWriter.writeCommand(ApiXmlDocWriter.java:317) > > at com.cloud.api.doc.ApiXmlDocWriter.main(ApiXmlDocWriter.java:228) > Waf: Leaving directory > `/var/lib/jenkins/jobs/cloudstack-s3/workspace/artifacts' > Build failed: -> task failed (err #2): > > {task: xmlapi -> commands.xml} > make: *** [build-arch-stamp] Error 1 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 > > What can I do work around this issue? > > Thank you for your help, > -John > > On Oct 29, 2012, at 12:07 PM, Rohit Yadav <rohit.ya...@citrix.com> wrote: > >> For 4.0, here you go: >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building#Building-Packaging >> >> Master is still wip; patches welcome! >> >> Regards. >> >> ________________________________________ >> From: John Burwell [jburw...@basho.com] >> Sent: Monday, October 29, 2012 9:29 PM >> To: cloudstack-dev@incubator.apache.org >> Subject: Package Build Procedure >> >> All, >> >> What is the procedure for building a Debian package? I have attempted >> running dpkg-buildpackage in the root directory of the CloudStack project, >> but get an error regarding missing apidoc scripts. >> >> Thank you for your help, >> -John >