cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rayees Namathponnan <>
Subject RE: developers and mysql
Date Mon, 24 Feb 2014 16:14:20 GMT
Hi Hugo,

How about making below changes in cloud.spec file ?

Requires: nfs-utils
Requires: wget
# mysql-connector 5.1.29 will be installed before installing management server 
Requires: mysql-connector-java = 5.1.29


# Don't package the scripts in the management webapp
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/webapps/client/WEB-INF/classes/scripts
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/webapps/client/WEB-INF/classes/vms
#Remove mysql connector , which is used while building cloudstack
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/webapps/client/WEB-INF/lib/mysql-connector-java*

if [ -f "%{_sysconfdir}/cloud.rpmsave/management/cloud.keystore" ]; then
    cp -p %{_sysconfdir}/cloud.rpmsave/management/cloud.keystore %{_sysconfdir}/%{name}/management/cloudmanagementserver.keystore
    # make sure we only do this on the first install of this RPM, don't want to overwrite
on a reinstall
    mv %{_sysconfdir}/cloud.rpmsave/management/cloud.keystore %{_sysconfdir}/cloud.rpmsave/management/cloud.keystore.rpmsave

#Copy installed mysql to cloudstack-management lib folder
cp -p /usr/share/java/ mysql-connector-java-5.1.29.jar %{_datadir}/%{name}-management/webapps/client/WEB-INF/lib

If we don't want to use mysql-connector 5.1.29, we can make some changes to use any version
of mysql-connector


-----Original Message-----
From: Trippie [] On Behalf Of Hugo Trippaers
Sent: Monday, February 24, 2014 7:36 AM
To: <>
Subject: developers and mysql


as the mysql dependency is now set to provided in all the poms to fix our license compliancy
the jetty target and the deployed targets are not working. 

I'm trying to configure an optional profile to enable those targets to include the mysql dependency
while executing, but so far no luck. If anyone has some bright ideas on how to do this i'm
all ears. In the meantime the best solutions i've found to continue working is to copy the
mysql jar file into the directory client/target/cloud-client-ui-4.4.0-SNAPSHOT/WEB-INF/lib/
by hand after running mvm install and before running the jetty target (just don't run mvn

Hopefully a better solution in the near future.



View raw message