Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 7570 invoked from network); 12 Nov 2009 17:05:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 17:05:26 -0000 Received: (qmail 33015 invoked by uid 500); 12 Nov 2009 17:05:26 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 32946 invoked by uid 500); 12 Nov 2009 17:05:26 -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 32936 invoked by uid 99); 12 Nov 2009 17:05:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 17:05:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 17:05:16 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 42C921DE0111 for ; Thu, 12 Nov 2009 11:04:55 -0600 (CST) Date: Thu, 12 Nov 2009 11:04:55 -0600 (CST) From: "Andre Doherty (JIRA)" To: issues@maven.apache.org Message-ID: <33357289.10470.1258045495235.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Created: (MECLIPSE-618) MANIFEST files generated by plugin are empty when they shouldnt MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org MANIFEST files generated by plugin are empty when they shouldnt --------------------------------------------------------------- Key: MECLIPSE-618 URL: http://jira.codehaus.org/browse/MECLIPSE-618 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: M2Eclipse support Affects Versions: 2.7 Environment: Any Reporter: Andre Doherty MANIFEST.MF files generated by the plugin are empty, therefore a correct deployment of an EAR project on an application server such as JBoss will fail with classloading issues. After a close look at the source code the problem comes from the fact that the dependencies resolving is disabled in the mojo, in order to not feed the .classpath, but having this side-effect. I suggest resolving dependencies in any case, and adding a property instead to filter dependencies in the .classpath generation. therefore : 1: add boolean property to EclipsePlugin : ignoreDeps 2: add boolean property to EclipseWriterConfig : ignoreDeps 3: in M2EclipseMojo>>setupExtra() : - //setResolveDependencies( false ); - setIgnoreDeps(true); 4: in EclipsePlugin>>createEclipseWriterConfig(IdeDependency[]) : - call config.setIgnoreDeps(isIgnoreDeps()); 5: in EclipseClasspathWriter>>write() : - test against if (!config.isIgnoreDeps()) around lines 348 to 387 in order to skip writing of M2_REPO... dependencies Tested here, works like a charm -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira