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 D464F200D54 for ; Fri, 8 Dec 2017 22:47:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D2E52160C20; Fri, 8 Dec 2017 21:47:04 +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 21BA6160BFD for ; Fri, 8 Dec 2017 22:47:03 +0100 (CET) Received: (qmail 68813 invoked by uid 500); 8 Dec 2017 21:47:03 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 68802 invoked by uid 99); 8 Dec 2017 21:47:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2017 21:47:03 +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 B23321806C0 for ; Fri, 8 Dec 2017 21:47:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TPw1nYufVl9Z for ; Fri, 8 Dec 2017 21:47:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 581395F3CE for ; Fri, 8 Dec 2017 21:47:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 99F65E0E16 for ; Fri, 8 Dec 2017 21:47:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 595BB273DE for ; Fri, 8 Dec 2017 21:47:00 +0000 (UTC) Date: Fri, 8 Dec 2017 21:47:00 +0000 (UTC) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MNG-6300) Multi module release creates empty directories in war file instead of jars MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 21:47:05 -0000 [ https://issues.apache.org/jira/browse/MNG-6300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Scholte updated MNG-6300: -------------------------------- Fix Version/s: 3.5.3 > Multi module release creates empty directories in war file instead of jars > -------------------------------------------------------------------------- > > Key: MNG-6300 > URL: https://issues.apache.org/jira/browse/MNG-6300 > Project: Maven > Issue Type: Bug > Affects Versions: 3.5.2 > Environment: Linux, Oracle java 1.8.0_152 > Reporter: Andreas Kurth > Priority: Critical > Fix For: 3.5.3 > > Attachments: build.log, mm.zip > > > After updating to maven 3.5.2 we encounter the following reproducible bug with multi module builds. > If one of the modules is a war module and depends on another module, the dependency module will not be included as a jar file in WEB-INF/lib of the war file, but as an empty directory instead. Non module dependencies will be included correctly. > This bug does occur when the following conditions are met: > - running release:prepare/release:perform > - element is present, so that release goals are "deploy site-deploy" > - element contains javadoc-maven-plugin > Please note that when running "mvn install" or "mvn deploy" the resulting war file is ok, while "mvn release:perform" creates corrupt files as described. Also, if javadoc-maven-plugin is not present in block, the war file is fine, too. > I have no idea whether this bug is maven core or rather release-plugin or even javadoc-plugin related, so I file it here. I prepared a minimal self contained example and attach it as mm.zip. To run the example, the following steps are needed: > {code} > cd /tmp > unzip /path/to/mm.zip > cd mm > git init > git add pom.xml mm-lib mm-war .gitignore > git commit > mvn release:prepare > mvn release:perform > {code} > After building the resulting corrupt war file can be found here: > repo/com/example/mm/mm-war/1.0.0/mm-war-1.0.0.war -- This message was sent by Atlassian JIRA (v6.4.14#64029)