Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 2810 invoked from network); 8 Jul 2010 12:54:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 12:54:51 -0000 Received: (qmail 76815 invoked by uid 500); 8 Jul 2010 12:54:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 76304 invoked by uid 500); 8 Jul 2010 12:54:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 76091 invoked by uid 99); 8 Jul 2010 12:54:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 12:54:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 12:54:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o68CkqOI018459 for ; Thu, 8 Jul 2010 12:46:53 GMT Message-ID: <11795564.259201278593212980.JavaMail.jira@thor> Date: Thu, 8 Jul 2010 08:46:52 -0400 (EDT) From: "Roman Arkadijovych Muntyanu (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (FILEUPLOAD-183) commons-io dependency does ont get loaded by maven if only dependency to commons-fileupload is specified MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org commons-io dependency does ont get loaded by maven if only dependency to commons-fileupload is specified -------------------------------------------------------------------------------------------------------- Key: FILEUPLOAD-183 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-183 Project: Commons FileUpload Issue Type: Bug Affects Versions: 1.2 Environment: Maven 2.2.1 Reporter: Roman Arkadijovych Muntyanu If commons-fileupload is added as dependency (without commons-io explicitly defined) like the following {code:xml} commons-fileupload commons-fileupload 1.2.1 compile {code} and fileupload is referenced in the code like {code:java} // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file upload handler ServletFileUpload upload = new ServletFileUpload(factory); // Parse the request List /* FileItem */ items = upload.parseRequest(request); {code} then NoClassDefFoundError occurs {code:none} java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:196) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358) at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126) {code} The reason is that commons-fileupload artifact has *optional* dependency to commons-io in its pom-file {code:xml} commons-io commons-io 1.3.2 true {code} Which results in commons-io not being downloaded and added to the project by maven. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.