Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-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 E243396F5 for ; Fri, 2 Dec 2011 13:54:02 +0000 (UTC) Received: (qmail 61735 invoked by uid 500); 2 Dec 2011 13:54:01 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 61590 invoked by uid 500); 2 Dec 2011 13:54:01 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 61582 invoked by uid 99); 2 Dec 2011 13:54:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 13:54:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 13:54:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 29BCBB0827 for ; Fri, 2 Dec 2011 13:53:40 +0000 (UTC) Date: Fri, 2 Dec 2011 13:53:40 +0000 (UTC) From: "Chris Gamache (Updated) (JIRA)" To: java-dev@axis.apache.org Message-ID: <372005025.34912.1322834020172.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <933543917.33028.1322778880035.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIS2-5206) axis2-aar-maven-plugin fails to build aar while using m2e in workspace resolution mode 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/AXIS2-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Gamache updated AXIS2-5206: --------------------------------- Attachment: AbstractAarMojo.java.patch > axis2-aar-maven-plugin fails to build aar while using m2e in workspace resolution mode > -------------------------------------------------------------------------------------- > > Key: AXIS2-5206 > URL: https://issues.apache.org/jira/browse/AXIS2-5206 > Project: Axis2 > Issue Type: Improvement > Components: Tools > Affects Versions: 1.5.6, 1.6.1 > Reporter: Chris Gamache > Fix For: 1.5.7, 1.6.2 > > Attachments: AbstractAarMojo.java.patch > > > First time posting an issue request. Apologies if I'm doing it wrong... > When building in Eclipse using m2e in workspace resolution mode, the axis2-aar-maven-plugin is not prepared for a "dependency" which isn't an assembly but is instead a folder containing the compiled classes from within the local workspace. I propose that if the incoming dependency happens to be a directory that it get packaged up and copied to the destination instead of blowing up with an exception. > (there is no place to attach a patch, so I'll include a code snippet illustrating my idea) > Modifying this function in AbstractAarMojo.java will give the intended result: > private void copyFileIfModified(File source, File destination) > throws IOException { > // TO DO: Remove this method and use the method in WarFileUtils when Maven 2 changes > // to plexus-utils 1.2. > if (destination.lastModified() < source.lastModified()) { > if (source.isDirectory()) { > JarArchiver jarArchiver = new JarArchiver(); > try { > jarArchiver.setDestFile( destination ); > jarArchiver.addDirectory( source.getCanonicalFile() ); > jarArchiver.createArchive(); > } catch (ArchiverException e) { > // wrap ArchiverException in IOException > throw new IOException(e); > } > } else { > FileUtils.copyFile(source.getCanonicalFile(), destination); > // preserve timestamp > destination.setLastModified(source.lastModified()); > } > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org