incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <rohit.ya...@citrix.com>
Subject RE: Package Build Procedure
Date Mon, 29 Oct 2012 17:33:22 GMT
NPE wow, am not sure what might have caused it and it works for me.
Alright, check that you've python and mysql-connector-python on it.
Or, better if you don't require apidocs, comment/remove it out from the top level pom.xml;

diff --git a/pom.xml b/pom.xml
index 12b4067..8178935 100644
--- a/pom.xml
+++ b/pom.xml
@@ -342,7 +342,6 @@
       <modules>
         <module>developer</module>
-           <module>tools/apidoc</module>
            <module>tools/devcloud</module>

And try again with -X to have more verbosity.
If you cannot do without master branch, eventually you may hit some other issue while dpkg-buildpackage.

Packaging needs fixing, Wido, Hugo, David, Edison?

Regards. 
________________________________________
From: John Burwell [jburwell@basho.com]
Sent: Monday, October 29, 2012 10:51 PM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Package Build Procedure

Rohit,

I receive the following error upon executing the "mvn clean install -P developer" command:

…
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CloudStack apidoc Tools 4.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-apidoc ---
[INFO] Deleting /var/lib/jenkins/jobs/cloudstack-s3/workspace/tools/apidoc/target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-apidoc ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
…
java.lang.NullPointerException
        at com.cloud.api.doc.ApiXmlDocWriter.writeCommand(ApiXmlDocWriter.java:317)
        at com.cloud.api.doc.ApiXmlDocWriter.main(ApiXmlDocWriter.java:228)
+ '[' 2 -ne 0 ']'
+ exit 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack ................................. SUCCESS [3.436s]
[INFO] Apache CloudStack Utils ........................... SUCCESS [11.430s]
[INFO] Apache CloudStack API ............................. SUCCESS [9.847s]
[INFO] Apache CloudStack Core ............................ SUCCESS [7.304s]
[INFO] Apache CloudStack Agents .......................... SUCCESS [5.751s]
[INFO] Apache CloudStack SystemVM Patches ................ SUCCESS [2.489s]
[INFO] Apache CloudStack Console Proxy ................... SUCCESS [12.166s]
[INFO] Apache CloudStack Server .......................... SUCCESS [19.871s]
[INFO] Apache CloudStack Usage Server .................... SUCCESS [3.304s]
[INFO] Apache XenSource XAPI ............................. SUCCESS [6.116s]
[INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.394s]
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner  SUCCESS [2.234s]
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner  SUCCESS [2.617s]
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [2.269s]
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [3.240s]
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [2.940s]
[INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SUCCESS [4.778s]
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [12.957s]
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SUCCESS [2.661s]
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SUCCESS [3.634s]
[INFO] Apache CloudStack Plugin - Storage Allocator Random  SUCCESS [2.220s]
[INFO] Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS [2.460s]
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [1.803s]
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS [2.288s]
[INFO] Apache CloudStack AWS API Bridge .................. SUCCESS [42.521s]
[INFO] Apache CloudStack Client UI ....................... SUCCESS [6.777s]
[INFO] Apache CloudStack Test ............................ SUCCESS [6.282s]
[INFO] Apache CloudStack Developer Tools ................. SUCCESS [0.153s]
[INFO] Apache CloudStack apidoc Tools .................... FAILURE [4.595s]
[INFO] Apache CloudStack Developer Tools ................. SKIPPED
[INFO] Apache CloudStack Developer Tools: marvin ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:10.107s
[INFO] Finished at: Mon Oct 29 13:12:30 EDT 2012
[INFO] Final Memory: 30M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on
project cloud-apidoc: Command execution failed. Process exited with an error: 1 (Exit value:
1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :cloud-apidoc

We are testing a large patch in a feature branch tracking master.  Therefore, using the 4.0.0
branch is not an option for our testing needs.

Thank you for your assistance,
-John

On Oct 29, 2012, at 12:59 PM, Rohit Yadav <rohit.yadav@citrix.com> wrote:

> 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 [jburwell@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 <jburwell@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.yadav@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 [jburwell@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
>>
>


Mime
View raw message