Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AB3D1044C for ; Tue, 25 Feb 2014 21:58:02 +0000 (UTC) Received: (qmail 65330 invoked by uid 500); 25 Feb 2014 21:58:01 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 65281 invoked by uid 500); 25 Feb 2014 21:58:01 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 65273 invoked by uid 99); 25 Feb 2014 21:58:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 21:58:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 21:57:57 +0000 Received: by mail-ve0-f180.google.com with SMTP id jz11so1183457veb.39 for ; Tue, 25 Feb 2014 13:57:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=KFhC/zbtMuCZr4kGV5VldIs6PGHRHKtAGkxrRTcDmxk=; b=N6VXB9Cqe2xXxhfNaKyVUKUMMFntc9OGdfEHWQEo5m+q2tIvpnyfNBKCkGKmZNAipM mXaaekgVZ3I9BjwkFViwc3VDDcRcDT4FMuSMEMwjzVaoOsADOSZqM6+0CBeMgBk9fCUn TnJRf4yczwy4SidiZroxVPxFWEgXFFaba5eA7BibK48LcftqC0rprO0mM9v6CwBWcxob vSUWI/nySzESn1l7QoSvzyuCFZLe+KfhjOuv5yYQlOW75F+VnySiXqo1OopUwvxA0cL9 C6VNfMcr7p8hgXxFQF9El6zy3VOC9DM1zfXshQ0YdLwDSFLlpy0UBv0Wb9/6KABhX/hX jxwg== X-Gm-Message-State: ALoCoQk5/irVbm9abaVaC126o6eYHNjWJLTMIoeJXR1YAAeHfzuMJSK6OGb1v3Y0D/RO0BgjSgmH X-Received: by 10.58.161.227 with SMTP id xv3mr2676042veb.31.1393365456172; Tue, 25 Feb 2014 13:57:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.160.136 with HTTP; Tue, 25 Feb 2014 13:57:16 -0800 (PST) In-Reply-To: <20CF38CB4385CE4D9D1558D52A0FC05822333E@SJCPEX01CL03.citrite.net> References: <0EAE6615-6AA6-4CC1-B2E8-FD635F2D6B7B@gmail.com> <11205F8B-B857-4616-8AB9-6A1C4A7B6FA7@GMAIL.com> <20CF38CB4385CE4D9D1558D52A0FC05822333E@SJCPEX01CL03.citrite.net> From: David Nalley Date: Tue, 25 Feb 2014 16:57:16 -0500 Message-ID: Subject: Re: developers and mysql To: "dev@cloudstack.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org git blame showed that it came from the HA/replication work from Damoder. I didn't speak up at the time, but I am really reluctant for mysql-specific features to sneak in and lock us in. On Tue, Feb 25, 2014 at 4:44 PM, Alex Huang wrote: > Who added the dependency on mysql for framework-db? We actually worked hard to keep that depending on jdbc only. It should not depend on mysql. We need to fix that. > > --Alex > >> -----Original Message----- >> From: Trippie [mailto:trippie@gmail.com] On Behalf Of Hugo Trippaers >> Sent: Tuesday, February 25, 2014 3:34 AM >> To: >> Subject: Re: developers and mysql >> >> Heya, >> >> Just pushed a change that will make the database work again. :-) >> >> >> @Alex. The mysql jar used to be pulled in as a dependency from framework- >> db. As the client target is responsible for building the war file for the >> packages including this in the client pom would also put it in the war file and >> in the packages. >> >> I think i have an elegant solution, its now included as a dependency for both >> the database deploy and the jetty:run target. Which makes it effectively a >> "provided" library for the purpose of our maven build. See commit >> 8e6b86ae23dce802044388c5420ff61511d7115b and >> e883877c7a6f9df04b572afd4ee5f10d265bcc3a. >> >> I can deploy a database and start the jetty:run target now without any >> trouble (at least not more trouble than usual ;-) ) >> >> My next step is to clean up some of the dependencies. I think that only >> cloud-framework-db should have a provided dependency on mysql. It's the >> only piece of source code that actually needs the mysql driver to be present >> during compilation for the optional HA configuration. There are some test >> classes that depend on database functionally but those should be moved to >> an integration test profile that could include the database driver, those tests >> are disabled anyway so they don't cause any trouble now. >> >> >> Cheers, >> >> Hugo >> >> On 25 feb. 2014, at 06:39, Rajani Karuturi wrote: >> >> > Can we move the mysql-connector-java dependency to the parent >> POM(SOURCE-ROOT/pom.xml) and define it different scopes for each profile? >> > >> > ie) >> > >> > >> > >> > developer >> > >> > >> > mysql >> > mysql-connector-java >> > compile >> > >> > >> > >> > >> > production >> > >> > >> > mysql >> > mysql-connector-java >> > provided >> > >> > >> > >> > >> > Thanks, >> > ~Rajani >> > >> > >> > >> > On 24-Feb-2014, at 11:41 pm, Hugo Trippaers >> > wrote: >> > >> > Indeed, >> > >> > I've been fighting with maven all day to get the development profile >> > to include MySql. No luck yet, will give it another shot tomorrow :-) >> > >> > Hugo >> > >> > Sent from my iPhone >> > >> > On 24 feb. 2014, at 18:21, David Nalley >> > wrote: >> > >> > So it should be ok to include the jar in non-default builds. developer >> > and deploydb are not what we'd expect a normal user to consume. >> > (Anyone else's head spinning?) >> > >> > --David >> > >> > On Mon, Feb 24, 2014 at 11:44 AM, John Kinsella >> > wrote: >> > I created CLOUDSTACK-6157 over the weekend to track this. Not sure >> adding the jar after compile will help the deploydb target, but will give it a try >> this morning. >> > >> > Could we set up the pom.xmls to use the jar for execution if it's found in >> the user/system classpaths while respecting the legal requirements? >> > >> > Rayees' suggestion for cloud.spec makes sense for the RPM builds, but >> doesn't affect the developer issues. >> > >> > -He who needs more maven experience >> > >> > On Feb 24, 2014, at 7:36 AM, Hugo Trippaers >> > wrote: >> > >> > Heya, >> > >> > 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 clean). >> > >> > Hopefully a better solution in the near future. >> > >> > Cheers, >> > >> > Hugo >> > >> > >> > >