Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 16F82200BB1 for ; Thu, 3 Nov 2016 15:43:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 15A96160B0B; Thu, 3 Nov 2016 14:43:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A5D5160AFE for ; Thu, 3 Nov 2016 15:42:59 +0100 (CET) Received: (qmail 57976 invoked by uid 500); 3 Nov 2016 14:42:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 57950 invoked by uid 99); 3 Nov 2016 14:42:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 14:42:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 582BE2C0D55 for ; Thu, 3 Nov 2016 14:42:58 +0000 (UTC) Date: Thu, 3 Nov 2016 14:42:58 +0000 (UTC) From: "Sean Busbey (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13789) Hadoop Common includes generated test protos in both jar and test-jar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 03 Nov 2016 14:43:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15632928#comment-15632928 ] Sean Busbey commented on HADOOP-13789: -------------------------------------- I didn't add any tests because this fixes a condition of the build's working files. The only test I can think to add would be checking generated main artifacts to make sure there aren't classes named {{TestXxxx}}, but that 1) seems excessive and 2) won't be detected as including a test by yetus. > Hadoop Common includes generated test protos in both jar and test-jar > --------------------------------------------------------------------- > > Key: HADOOP-13789 > URL: https://issues.apache.org/jira/browse/HADOOP-13789 > Project: Hadoop Common > Issue Type: Bug > Components: build, common > Reporter: Sean Busbey > Assignee: Sean Busbey > Attachments: HADOOP-13789.1.patch > > > Right now our ProtocMojo always adds source directories to the main compile phase and we use it in hadoop-common to both generate main files as well as test files. This results in the test files getting added to both our test jar (correct) and our main jar (not correct). > We should either add a main-vs-test flag to the configuration for ProtocMojo or make a ProtocTestMojo that always adds as a test sources. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org