Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB45272F7 for ; Thu, 1 Dec 2011 06:00:06 +0000 (UTC) Received: (qmail 24176 invoked by uid 500); 1 Dec 2011 06:00:06 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 23777 invoked by uid 500); 1 Dec 2011 06:00:05 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 23740 invoked by uid 99); 1 Dec 2011 06:00:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 06:00:04 +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; Thu, 01 Dec 2011 06:00:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2681CAA566 for ; Thu, 1 Dec 2011 05:59:40 +0000 (UTC) Date: Thu, 1 Dec 2011 05:59:40 +0000 (UTC) From: "qxo (Updated) (JIRA)" To: notifications@ant.apache.org Message-ID: <222699716.29739.1322719180159.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2031618.7821288876661363.JavaMail.jira@thor> Subject: [jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type) 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 [ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] qxo updated IVY-1244: --------------------- Attachment: ArtifactRevisionId.java for ivy 2.2 to add m2 compatible "m:classifer" > ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type) > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: IVY-1244 > URL: https://issues.apache.org/jira/browse/IVY-1244 > Project: Ivy > Issue Type: Improvement > Reporter: qxo > Attachments: ArtifactRevisionId.java > > > {code} > public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) { > super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible > artifactId = artfId; > mrid = mdlRevId; > setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId() > .getOrganisation()); > setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName()); > setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision()); > setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName()); > setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType()); > setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt()); > } > public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) { > final String type = artfId.getType(); > final String ext = artfId.getExt(); > if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){ > if( extraAttributes == null){ > extraAttributes = new HashMap(); > }else{ > extraAttributes = new HashMap(extraAttributes); > } > extraAttributes.put("classifier", type); > } > return extraAttributes; > } > {code} > after this change now: > publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :) > and we can aslo using same local(cached)repo for maven and ivy > ivyrepo + pom.xml == maven repo > mavnrepo + ivy.xml == ivyrepo > and ivysettings.xml cache artifactPattern can using same layout with maven2 > artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" > and the ivy settings: > {code} > > > > > {code} -- 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