Return-Path: Delivered-To: apmail-maven-archiva-users-archive@locus.apache.org Received: (qmail 68815 invoked from network); 8 Apr 2008 07:39:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 07:39:23 -0000 Received: (qmail 21000 invoked by uid 500); 8 Apr 2008 07:39:21 -0000 Delivered-To: apmail-maven-archiva-users-archive@maven.apache.org Received: (qmail 20956 invoked by uid 500); 8 Apr 2008 07:39:21 -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 20947 invoked by uid 99); 8 Apr 2008 07:39:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 00:39:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nicolas.deloof@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 07:38:37 +0000 Received: by nf-out-0910.google.com with SMTP id f5so790258nfh.26 for ; Tue, 08 Apr 2008 00:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=6mms8lsZpa/qkxnhmOTylVrmx18B44iRZgG7ZvY/WhA=; b=bMcDchJtH4E/ojgWx2V+rGw15tJHy6STjwb5DzrlozTB91kmmEeOzx3bU/pOFG0hjx7f5Ywb2nH3pE20Wm4RuYWjHIuVK2EFQ+uC3tVH6LEymNcZJGNexwfrjE4za006MbXvgnaqn8M0lwIjKow5SMgmpRzwf1mxL/owi4/1Nns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=fYzEAyIQhNggnrev4QXbikSjsgB/Z2Fz9B3CGHu/V11U5BnS34HJtS3tNM2KgSjIVKWA4jo5zagCcWXUNw9NxFfboZv5OdN+THMO0BMkRrg5oBjR/P+3+p/eqxHR9HozhXfei89mr9fyosURn945NHia4o2uwOm7xJEpJ6DF41g= Received: by 10.78.148.15 with SMTP id v15mr14058207hud.44.1207640272651; Tue, 08 Apr 2008 00:37:52 -0700 (PDT) Received: by 10.78.135.10 with HTTP; Tue, 8 Apr 2008 00:37:52 -0700 (PDT) Message-ID: <4c39e3030804080037p5215b5b0wdd670423fb1a2c08@mail.gmail.com> Date: Tue, 8 Apr 2008 09:37:52 +0200 From: "nicolas de loof" Sender: nicolas.deloof@gmail.com To: archiva-users@maven.apache.org Subject: Re: Cannot configure Legacy Artifact Path Resolution of Non-standard path In-Reply-To: <2ade7f6e0804080020n13530f77v7a56ce61c4698de0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3273_13923089.1207640272643" References: <2ade7f6e0804080020n13530f77v7a56ce61c4698de0@mail.gmail.com> X-Google-Sender-Auth: ca8ce93de6e0c42b X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3273_13923089.1207640272643 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline legacy artifact path configuration is a way for archiva to support maven1 clients (maven1 request URL is not fine-grained enough to safelly detect the artifactId / version / classifier). When you want to acces a legacy-layout repository using a proxy connector, you don't need to configure anything. Your issue is that archiva search the expected artifact in /plugins/ and not in /maven-plugins/ In archiva source code ( AbstractLegacyRepositoryContent.java ) I can read : typeToDirectoryMap.put( ArtifactExtensionMapping.MAVEN_PLUGIN, "plugin" ); BUT when deploying a project to a legacy repo, the maven ArtifactHandler (in maven-artifact.jar) set : org.apache.maven.artifact.handler.ArtifactHandler maven-plugin maven-plugin jar IMHO, archiva tries to use the same "type" for two incompatible artifacts : maven1 plugins and maven2 ones. As requesting a maven2 plugin from a maven1 repository is really not a common use case, this may not have been discovered yet. Please open an Issue for this. Nicolas. 2008/4/8, Michael Mallete : > > Hi guys, > > I'm having troubles configuring legacy artifact path for > maven-jaxb-plugin. > Artifact is located here: > > http://download.java.net/maven/1/com.sun.tools.xjc.maven2/maven-plugins/ > > I believe, the M1 standard is to rather put maven plugins inside the > "plugins" directory instead of "maven-plugins." Anyway, I tried > configuring > it via admin: > > Path: com.sun.tools.xjc.maven2/maven-plugins/maven-jaxb-plugin-1.1.jar > GroupId: com.sun.tools.xjc.maven2 > ArtifactId: maven-jaxb-plugin > Version: 1.1 > Classifier: > Type: maven-plugin > > And get this on submit: > > artifact reference does not match the initial path : > com.sun.tools.xjc.maven2/plugins/maven-jaxb-plugin-1.1.jar > > Also, the auto complete feature does not correctly slice the input > initially: > > ArtifactId: maven > Version: jaxb-plugin-1.1 > > I just manually deployed to archiva instead using the pom and the jar file > from this repo. > > Thanx! > > regards, > mykol > ------=_Part_3273_13923089.1207640272643--