Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74F161881C for ; Sat, 5 Dec 2015 19:13:11 +0000 (UTC) Received: (qmail 51893 invoked by uid 500); 5 Dec 2015 19:13:11 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 51812 invoked by uid 500); 5 Dec 2015 19:13:11 -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 51620 invoked by uid 99); 5 Dec 2015 19:13:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2015 19:13:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 001D32C1F6C for ; Sat, 5 Dec 2015 19:13:11 +0000 (UTC) Date: Sat, 5 Dec 2015 19:13:10 +0000 (UTC) From: "Karl Heinz Marbaise (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MRESOURCES-204) Maven gives successful Build message and creates empty jar if pom is configured for executing copy-resources goal with phase process-resources. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MRESOURCES-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15043456#comment-15043456 ] Karl Heinz Marbaise commented on MRESOURCES-204: ------------------------------------------------ Can you explain why you are not using the {src/main/resources} location? And what exactly you are trying to achieve? > Maven gives successful Build message and creates empty jar if pom is configured for executing copy-resources goal with phase process-resources. > ------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: MRESOURCES-204 > URL: https://issues.apache.org/jira/browse/MRESOURCES-204 > Project: Maven Resources Plugin > Issue Type: Bug > Components: copy > Affects Versions: 2.7 > Environment: apache-maven-3.2.3, Oracle jdk1.7.0_67/jdk1.8.0_51, Eclipse Kepler, Windows 7 > Reporter: vijay > Fix For: waiting-for-feedback > > Attachments: MyAnnotation.zip > > > When maven is configured to execute copy-resources goal of plugin maven-resources-plugin with phase process-resources then Maven gives successful build message but does not produce any class files and jar is empty. But if same goal is executed with phase compile or test then build is successful with produced jar containing classes and config files. In short the execution of copy-resources goal is not consistent. > I have tested this for both JDK 7 and 8 with same behaviour. > I have enclosed zip which contains maven project "MyAnnotation". Please refer this pom for execution or reproducing the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)