Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-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 4A6EF18C1C for ; Fri, 14 Aug 2015 09:06:38 +0000 (UTC) Received: (qmail 107 invoked by uid 500); 14 Aug 2015 09:06:38 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 99949 invoked by uid 500); 14 Aug 2015 09:06:38 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 99934 invoked by uid 99); 14 Aug 2015 09:06:37 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 09:06:37 +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 6A6A018264F for ; Fri, 14 Aug 2015 09:06:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.314 X-Spam-Level: **** X-Spam-Status: No, score=4.314 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-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 PhvTWauitJkH for ; Fri, 14 Aug 2015 09:06:28 +0000 (UTC) Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com [209.85.213.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8917020DD0 for ; Fri, 14 Aug 2015 09:06:27 +0000 (UTC) Received: by vkbg64 with SMTP id g64so14503833vkb.0 for ; Fri, 14 Aug 2015 02:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=zYkzDlM/olEjGTtBPxq8pjhrWh4cP+fdPD3W0BXn2To=; b=gK0CCEjwNWFVBDaJTTIkALkIxK0WICS8MrifcyMuClNA/qo2UgTsNR8TC/R4Ga+NdX rirHiGwzlTbGoyLj8+j5lVBQSbqkQ0f6cSqgXJUpFJj3NXT2jPUqYZZ1w0fRDe4RSK+n lKYRNsrVuGHtVqCEucvOPD9aBCTKe1SrncgqFETNfNG1zoaQoYzPqNGSchaFVV/zr8bK Dweq+9DOqDdQrOgBWH3rT0h8m7AgSFfkdKO+xFpynyQnad3umYfXYruantaZLnaVTmcH ymTRVn2Ciqw6U5M+W132t9+Q2iFERD4T/n3h75XOoy7KLA9/LhhrrPXGtbNFacYavzu3 lacg== MIME-Version: 1.0 X-Received: by 10.52.112.97 with SMTP id ip1mr15271149vdb.48.1439543186702; Fri, 14 Aug 2015 02:06:26 -0700 (PDT) Sender: ewenstephan@gmail.com Received: by 10.31.128.19 with HTTP; Fri, 14 Aug 2015 02:06:26 -0700 (PDT) In-Reply-To: References: <1439505175898-7495.post@n3.nabble.com> Date: Fri, 14 Aug 2015 11:06:26 +0200 X-Google-Sender-Auth: P7XJ02-AZknZGVY4tWrdFzIperk Message-ID: Subject: Re: [jira](FLINK-2493) Simplify names of example program JARs From: Stephan Ewen To: "dev@flink.apache.org" Content-Type: multipart/alternative; boundary=bcaec548a4a54846c4051d41c470 --bcaec548a4a54846c4051d41c470 Content-Type: text/plain; charset=UTF-8 Concerning mixed projects: Should be okay even for Eclipse users, because no Scala code is referenced from Java code (that is the tricky part). Even for someone without a Scala IDE plugin, they would simply not interpret the "src/main/scala" directory, which should make this appear like a pure Java project to them. Concerning name overlap: How about we put them in different packages: "org.apache.flink.examples.java" and "org.apache.flink.examples.scala". I am also fine with dropping the subpackages like "graph" or so. Not like we have so many examples that we need subpackages ;-) On Fri, Aug 14, 2015 at 11:01 AM, Till Rohrmann wrote: > In case of merging we would have to add a `scala` tag to some of the > examples because some of the examples exist in both packages. The drawback > of merging both examples modules is that we'll have another mixed > Java/Scala project. This might be bothering for the eclipse folks, but we > already have that. It might make sense to keep the examples separated if > they use different dependencies. Other than that, I think both of your > proposals are fine. > > Slightly off-topic: What we could also do is to move the shared components > (e.g. the testing data) to a distinct module (flink-examples/example-data). > But since the generated scala job jars only contain the java data classes > this won't change much at all. > > On Fri, Aug 14, 2015 at 10:52 AM, Stephan Ewen wrote: > > > +1 for proposal (2) > > > > On Fri, Aug 14, 2015 at 10:28 AM, Fabian Hueske > wrote: > > > > > Hi Liang Chen, > > > > > > thanks for starting this discussion. > > > > > > I have no strong preference for one of your proposals. Both are fine > with > > > me. > > > > > > What would proposal 2 mean if we add examples for other API languages, > > for > > > example if the Python API moves out of staging? > > > I guess it shouldn't be a problem, because all examples are > > self-contained. > > > Any other thoughts on this? > > > > > > Best, Fabian > > > > > > 2015-08-14 0:32 GMT+02:00 Liang Chen : > > > > > > > Summary:Simplify names of example program JARs > > > > Key:FLINK-2493, URL:https://issues.apache.org/jira/browse/FLINK-2493 > > > > Issue Type: Improvement > > > > Components:Examples > > > > > > > > Propose to simplify the name to "examples/ConnectedComponents.jar" > > rather > > > > than > examples/flink-java-examples-0.10-SNAPSHOT-ConnectedComponents.jar > > > > > > > > Two proposals, wants to discuss: > > > > Proposal 1: > > > > Change the pom of "flink-java-examples", use executed-example name as > > > > "finalName" to replace "default > > > finalName(artifactId+version)+classifier". > > > > keep two projects(flink-java-examples,flink-scala-examples) under > > > > "flink-examples". > > > > > > > > Proposal 2:Combine "flink-java-examples" and "flink-scala-examples" > > > project > > > > to one project with "flink-examples", because the Scala example > mostly > > > need > > > > import Java example' util/*data*.class, work together. > > > > this would be no any impaction for examples. > > > > > > > > please give your ideas, any input would be very appreciated. > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/jira-FLINK-2493-Simplify-names-of-example-program-JARs-tp7495.html > > > > Sent from the Apache Flink Mailing List archive. mailing list archive > > at > > > > Nabble.com. > > > > > > > > > > --bcaec548a4a54846c4051d41c470--