Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7DDB18EF2 for ; Wed, 6 Jan 2016 19:05:30 +0000 (UTC) Received: (qmail 30444 invoked by uid 500); 6 Jan 2016 19:05:30 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 30374 invoked by uid 500); 6 Jan 2016 19:05:30 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 30362 invoked by uid 99); 6 Jan 2016 19:05:30 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 19:05:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 93E401805CD for ; Wed, 6 Jan 2016 19:05:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DaPQ0mRzj3-k for ; Wed, 6 Jan 2016 19:05:24 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 244A9231B7 for ; Wed, 6 Jan 2016 19:05:24 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id f206so89601246wmf.0 for ; Wed, 06 Jan 2016 11:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RL8PPBVzM6xY83L9ig9agMQdOM1xa2jXvBQWw4lv028=; b=0VxsXH9jACswUZYs69MTu92OkkuW9xv6ZFKGGJSIXqcpGGbptkrzAN31hn88UEq9fP qmpzgjkJ2KvIM5FR9LdLvwcE131/pzBAIxV6Rjl5SkWoGwdgTSGwKEm4/ew1Na7gIjW9 NHrDuk1CuGe5apfnMlkwC+Mcs4es4CiQvfopVd263+TDFHmrNACKO/Jgy/EQ+7bFdLLB ocU2yKN8jzvtZEea7vGNGyxo57jHb9P0UaJvKRDXGykudsF+F6rFv+C4w1iViC8X8uhV +PMroSiJkqunwNdDOEBwZY5dZpsQn1us1kw9GJg+Os2Pw9kaDbJAMg+GAyEqLQL9czor QLaA== 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:date :message-id:subject:from:to:content-type; bh=RL8PPBVzM6xY83L9ig9agMQdOM1xa2jXvBQWw4lv028=; b=GUkhJPDnw6XN79DveYnqLUtRVrLV8Cml+9Qmadeg3/sK+P5DJ20NthkDjd+/VbdjOd 7knQp3tPNKn0OuoChplwwjF5iSkd7ICBasEerOuKQswwNwzHoDoaX8uLxFe/Ove9r8sL KndtWRUb2LPnauyoKFYYNjaqfna41R36hnCEIwqStK+yIAJkxeWuXIZlgceq9XkuK2XN 2RnAQcCi53uCcRe4lturm+yAUKGP4RUNcTa8hxZ1NF0OVFYqUldAwRuNjlzsF8yKqdZz Q1gjhP1CGa0NgH9Qs2lRDb6x34Ch8TS149FXrPDfiXjdSvHVlKj2vjsJvABT23MIz3no qQ2Q== X-Gm-Message-State: ALoCoQkkseShODk9a70NmP356cCbZ3IssGb0YOWMYB3u1BVv0MOP3wb4hmSlhZgReBo4D96Y4gopDl8ES8z5XYVZNINOXIuDL+C1+8rUpt1qwTcthDk2AzI= MIME-Version: 1.0 X-Received: by 10.28.138.6 with SMTP id m6mr12203848wmd.82.1452107122597; Wed, 06 Jan 2016 11:05:22 -0800 (PST) Received: by 10.28.46.3 with HTTP; Wed, 6 Jan 2016 11:05:22 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Jan 2016 11:05:22 -0800 Message-ID: Subject: Re: Malhar library does not build on adding additional dependency From: Chandni Singh To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114436d63961d30528af09a0 --001a114436d63961d30528af09a0 Content-Type: text/plain; charset=UTF-8 Hey Shubham, Can the enhancement (extension) which adds a new dependency go into contrib? Thanks, Chandni On Wed, Jan 6, 2016 at 12:37 AM, Shubham Pathak wrote: > Chinmay, > > I tried to build malhar-library with the latest version of > json-schema-validator and it builds successfully without me having to add > dependency for jsr. > > However, when i try to run the test, it throws a runtime error > [image: Inline image 1] > > > > Issue is that guava 11.0 is being considered instead of 16.01. > > One solution to this can be add for guava in apex common but > that seems risky as it might lead to run time exceptions. > > For now I am going ahead with the approach i mentioned in my previous > mail. > > > Thomas, > No new operator is being added. Existing operator is being enhanced and > that requires a dependency to be added. > > > Thanks, > Shubham > > On Tue, Jan 5, 2016 at 11:25 PM, Thomas Weise > wrote: > >> There was a discussion a while ago on why we don't want to add >> dependencies >> to malhar-library unless they are broadly applicable to many operators. >> Please review that discussion. >> >> As for adding dependencies in general, please analyze the situation >> carefully before moving ahead.. You will want to look at licenses, >> possible >> conflicts with engine/Hadoop, transitive dependencies, functional overlap >> with existing dependencies etc. Also state why the dependency is needed. >> >> Thomas >> >> >> On Tue, Jan 5, 2016 at 8:27 AM, Chinmay Kolhatkar < >> chinmay@datatorrent.com> >> wrote: >> >> > Hey Shubham, >> > >> > FileSplitterInput was already present and devel-3 compiles fine without >> > jsr305 dependency (for Nullable). >> > It seems that adding json related dependency is affecting somewhere >> else. >> > >> > Can you please check if all the unit tests are passing after adding >> > findbug's jsr305 dependency? >> > >> > Also, There seems to be quite some versions of json-schema-validator >> after >> > 2.0.1, would it make sense to use latest version as dependency? >> > >> > Thanks, >> > Chinmay. >> > >> > >> > >> > ~ Chinmay. >> > >> > On Tue, Jan 5, 2016 at 5:29 PM, Shubham Pathak > > >> > wrote: >> > >> > > Fixed by adding dependency of jsr . Now the pom looks like this >> > > >> > > >> > > com.github.fge >> > > json-schema-validator >> > > 2.0.1 >> > > >> > > >> > > com.google.code.findbugs >> > > jsr305 >> > > 1.3.9 >> > > true >> > > >> > > >> > > Thanks, >> > > Shubham >> > > >> > > >> > > On Tue, Jan 5, 2016 at 2:35 PM, Shubham Pathak < >> shubham@datatorrent.com> >> > > wrote: >> > > >> > > > Hi, >> > > > >> > > > I am working on an operator that needs following dependency to be >> added >> > > in >> > > > Malhar lib >> > > > >> > > > com.github.fge >> > > > json-schema-validator >> > > > 2.0.1 >> > > > >> > > > >> > > > But when i add this, and try to build malhar library, i get >> following >> > > error >> > > > >> > > >> > >> /code/projects/Apache/incubator-apex-malhar/library/src/main/java/com/datatorrent/lib/io/fs/FileSplitterInput.java:[36,24] >> > > > cannot find symbol >> > > > [ERROR] symbol: class Nullable >> > > > [ERROR] location: package javax.annotation >> > > > >> > > > On further investigation i noticed, when i add the above dependency, >> > > > jsr305 jar doesn't show up in dependency hierarchy. >> > > > >> > > > If i remove the above dependency, jsr305 shows up. >> > > > >> > > > Can anyone please help ? >> > > > >> > > > Thanks, >> > > > Shubham >> > > > >> > > >> > >> > > --001a114436d63961d30528af09a0--