Return-Path: Delivered-To: apmail-maven-archiva-users-archive@locus.apache.org Received: (qmail 34906 invoked from network); 19 Feb 2008 03:19:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 03:19:22 -0000 Received: (qmail 63437 invoked by uid 500); 19 Feb 2008 03:19:16 -0000 Delivered-To: apmail-maven-archiva-users-archive@maven.apache.org Received: (qmail 63386 invoked by uid 500); 19 Feb 2008 03:19:16 -0000 Mailing-List: contact archiva-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: archiva-users@maven.apache.org Delivered-To: mailing list archiva-users@maven.apache.org Received: (qmail 63377 invoked by uid 99); 19 Feb 2008 03:19:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 19:19:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [204.248.28.20] (HELO mx1.echostorm.net) (204.248.28.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 03:18:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mx1.echostorm.net (Postfix) with ESMTP id 446C1B05DA0 for ; Mon, 18 Feb 2008 22:18:49 -0500 (EST) Received: from mx1.echostorm.net ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29639-10 for ; Mon, 18 Feb 2008 22:18:48 -0500 (EST) Received: from [10.1.4.175] (unknown [10.1.4.175]) by mx1.echostorm.net (Postfix) with ESMTP id 9D740B05D95 for ; Mon, 18 Feb 2008 22:18:48 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <9e3862d80802181223m769172d4t4beb26a3d5fca7d8@mail.gmail.com> References: <62DD1BAD-0178-42E3-A50B-B51CD00EC637@echostorm.net> <9e3862d80802181223m769172d4t4beb26a3d5fca7d8@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jim Jackson Subject: Re: Mac OS X jnilib download issue Date: Mon, 18 Feb 2008 22:20:35 -0500 To: archiva-users@maven.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org Brett, MRM-703. The patch drops the maximum length constraint. Cheers, Jim Jackson On Feb 18, 2008, at 3:23 PM, Brett Porter wrote: > Thanks Jim! > > Would you mind putting this in JIRA as an attached patch? Also, I'd > suggest just dropping the maximum length constraint altogether - I > don't see that it adds anything? > > Thanks, > Brett > > On 19/02/2008, Jim Jackson wrote: >> We store Mac OS X jnilib artifacts in our unmanaged maven >> repository. During our transition to a standalone archiva 1.0.1 >> instance running on linux (RHEL5), I was able to deploy our jnilib >> artifacts, but I was not able to download them as a dependency in a >> different project. I received the dependency not found in any >> repository error. When running the repository scan, the log file >> showed this: >> >> 3076623 [pool-2-thread-1] ERROR >> org.apache.maven.archiva.repository.scanner.RepositoryScanner:default >> - >> Consumer [metadata-updater] had an error when processing file [/ >> var/ >> www/html/managed-maven2/fobs4jmf/macosx/i386/libfobs4jmf/0.4.1.4- >> SNAPSHOT/libfobs4jmf-0.4.1.4-20080217.211715-4.jnilib]: Unable to >> convert to artifact reference: fobs4jmf/macosx/i386/libfobs4jmf/ >> 0.4.1.4-SNAPSHOT/libfobs4jmf-0.4.1.4-20080217.211715-4.jnilib >> org.apache.maven.archiva.consumers.ConsumerException: Unable to >> convert to artifact reference: fobs4jmf/macosx/i386/libfobs4jmf/ >> 0.4.1.4-SNAPSHOT/libfobs4jmf-0.4.1.4-20080217.211715-4.jnilib >> at >> org.apache.maven.archiva.consumers.core.MetadataUpdaterConsumer.proce >> ssF >> ile(MetadataUpdaterConsumer.java:167) >> at >> org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessF >> ile >> Closure.execute(ConsumerProcessFileClosure.java:57) >> at org.apache.commons.collections.functors.IfClosure.execute >> (IfClosure.java:117) >> at org.apache.commons.collections.CollectionUtils.forAllDo >> (CollectionUtils.java:388) >> at >> org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance >> .di >> rectoryWalkStep(RepositoryScannerInstance.java:138) >> at org.codehaus.plexus.util.DirectoryWalker.fireStep >> (DirectoryWalker.java:173) >> at org.codehaus.plexus.util.DirectoryWalker.scanDir >> (DirectoryWalker.java:391) >> at org.codehaus.plexus.util.DirectoryWalker.scanDir >> (DirectoryWalker.java:385) >> ... >> >> Caused by: >> org.apache.maven.archiva.repository.layout.LayoutException: Invalid >> path to Artifact: filename format is invalid,expected timestamp >> format in filename. >> at >> org.apache.maven.archiva.repository.content.DefaultPathParser.toArtif >> act >> Reference(DefaultPathParser.java:131) >> at >> org.apache.maven.archiva.repository.content.AbstractDefaultRepository >> Con >> tent.toArtifactReference(AbstractDefaultRepositoryContent.java:54) >> at >> org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryC >> ont >> ent.toArtifactReference(ManagedDefaultRepositoryContent.java:330) >> at >> org.apache.maven.archiva.consumers.core.MetadataUpdaterConsumer.proce >> ssF >> ile(MetadataUpdaterConsumer.java:161) >> >> I narrowed down the issue to a regex in >> org.apache.maven.archiva.repository.content.FilenameParser. The >> artifact filename extension is limited to four characters and the >> version was coming back with '0.4.1.4-20080217.211715-4.j'. By >> changing the extension length to six characters, the issue was >> resolved. >> >> I'd like to offer the following patch to support .dylib and .jnilib >> files for mac os x. >> >> org.apache.maven.archiva.repository.content.FilenameParser >> 43c43 >> < private static final Pattern extensionPattern = Pattern.compile >> ( "(.tar.gz$)|(.tar.bz2$)|(.[a-z0-9]{1,4}$)", >> --- >>> private static final Pattern extensionPattern = Pattern.compile >> ( "(.tar.gz$)|(.tar.bz2$)|(.[a-z0-9]{1,6}$)", >> >> Cheers, >> Jim Jackson >> >> > > > -- > Brett Porter > Blog: http://blogs.exist.com/bporter/ >