Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD0EB56F3 for ; Thu, 12 May 2011 23:29:12 +0000 (UTC) Received: (qmail 71310 invoked by uid 500); 12 May 2011 23:29:12 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 71278 invoked by uid 500); 12 May 2011 23:29:12 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 71270 invoked by uid 99); 12 May 2011 23:29:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 23:29:12 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of g.clitheroe@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-pz0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 23:29:04 +0000 Received: by pzk30 with SMTP id 30so1148119pzk.4 for ; Thu, 12 May 2011 16:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=K77IWjSbtgQuOpRup/68/PycfR/el7NposNa6fPCntc=; b=lPNUFH/41W8N3O4bbf3emdjYRYztuIQkLow4daC4Z8INEzyTY5ZsFFv7BjfGHcs+dT kfoSN2/UD9uvJ8fOFetf3zhnBsZDD16rWQY4/YmULvvizwUafXOSCbymG8sIvFIQurr7 8grHfoKNSriQfBgNPaVUIO8SRHQh3o/U6wg7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=f4ugVraiuK84gndZmuXHQ3jJsI7p18wAj1HINZ/+RMHnn3yQqwMgAC0NUY0w2LNwjj qWefvTMI8BhJdYkUze/JxLaC526qzAePtzsXQFljrDOaU0wUZF3nUsy3klyx3LwQ0dHF YPuxxOIpLVQQrJp20vHBzUktzjqrzJs4xuWeU= MIME-Version: 1.0 Received: by 10.68.1.170 with SMTP id 10mr1069072pbn.189.1305242920932; Thu, 12 May 2011 16:28:40 -0700 (PDT) Received: by 10.68.44.38 with HTTP; Thu, 12 May 2011 16:28:40 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 May 2011 11:28:40 +1200 Message-ID: Subject: Re: Publish ibiblio + filesystem converts organisation to directories but ibiblio + ssh does not - Where did I go wrong? From: Geoff Clitheroe To: ivy-user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org If this works on your O/S it may be a good option: http://fuse.sourceforge.net/sshfs.html -G On Fri, May 13, 2011 at 11:24 AM, Peter Kahn wrote: > Thanks. =A0I guess I could figure out the a way to mount the directory vi= a > cifs and use file system. =A0I keep on seeing people favor file system ov= er > ssh and I couldn't figure out why. =A0Perhaps this is the reason. > > Peter > > On Thu, May 12, 2011 at 5:57 PM, Geoff Clitheroe w= rote: > >> It's m2compatible that is making the difference. >> >> From >> http://ant.apache.org/ivy/history/latest-milestone/resolver/filesystem.h= tml >> >> ...'since 1.3 Using the m2compatible attribute, this resolver will >> convert dots found in organisation in slashes like maven2 does for >> groupId. For instance, it will transform the organisation from >> 'com.company' into 'com/company' when replacing the token >> [organisation] in your pattern. >> Limitation: in m2compatible mode, this resolver is not able list >> available organizations. It means some features like repreport are not >> available'... >> >> I don't know if this is available on the ssh resolver. >> >> Cheers, >> Geoff >> >> >> On Fri, May 13, 2011 at 9:45 AM, Peter Kahn wrot= e: >> > Hi all, >> > >> > Can someone point me to the right place to look to understand why publ= ish >> > with filesystem artifact pattern expands [organisation] into directori= es >> > (repository/com/foo/bar/) but ssh doesn't (repository/com.foo.bar/)? >> > >> > I'm publishing to a maven style repository (local and nexus). =A0The l= ocal >> > uses filesystem which converts '.' =A0from [organisation] into sub >> directories >> > and ssh does not. =A0I can hard code the path since my org/groupID isn= 't >> > likely to change but I'm perplexed. >> > >> > Ivysettings.xml >> > >> > > > >> pattern=3D"${user.home}/.m2/repository/[organisation]/[module]/[revision= ]/[artifact]-[revision](-[classifier]).[ext]"/> >> > >> > >> > > > keyFile=3D"${user.home}/.ssh/mykey"> >> > > > >> pattern=3D"ssh://mynexus/nexus/storage/repos-snap/[organisation]/[module= ]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/> >> > >> > >> > ivy.xml >> > >> > > organisation=3D"com.foo.bar" module=3D"mylibrary" revision=3D"${revisi= on}" /> >> > >> > > > type=3D"pom" conf=3D"default"/> > type=3D"jar" >> > conf=3D"default"/> >> > >> > >> > The two publish calls are identical except for the resolver >> > >> > > > overwrite=3D"true" >> > module=3D"mylibrary" srcivypattern=3D"ivy.xml" publishivy=3D"false"> >> > >> > >> > >> > Please let me know if you see what I'm missing or where's the right pl= ace >> to >> > find out how pattern's used by ssh. =A0I have the source and was going= to >> look >> > there since I can find an answer in the docs. >> > >> > Thanks for the help >> > >> > Peter >> > >> > -- >> > Peter Kahn >> > citizenkahn@gmail.com >> > http://www.google.com/profiles/citizenkahn >> > Awareness - Intention - Action >> > >> > > > > -- > Peter Kahn > citizenkahn@gmail.com > http://www.google.com/profiles/citizenkahn > Awareness - Intention - Action >