Hi,

It looks like the issue is with the org field.
If you set the maven2-default layout on the "libs-release" virtual
repository the last URL you provided is incorrect. it should be:
http://someserver:8080/artifactory/libs-release/com/abc/common_library/common_library_to/4.0.0.4-1/common_library_to-4.0.0.4-1.jar
Can you try testing the paths during repo layout configuration in the UI?
For maven2
default: 
com/abc/common_library/common_library_to/4.0.0.4-1/common_library_to-4.0.0.4-1.jar
should return
Organization: com.abc.common_library
Module: common_library_to
Base Revision: 4.0.0.4-1
Folder Integration Revision:
File Integration Revision:
Classifier:
Extension: jar
Type: jar

For your IVY layout:
com.abc.common_library/common_library_to/4.0.0.4-1/jar/common_library_to.jar
Should return the same values.

This IVY layout needs to be associated with your remote repo layout (the
local storage or remote repo, at least one of them) or no conversion between
the virtual and remote will happen.

I think the issue is that [org] is never optional so the file name when
converting from Maven to Ivy layout will always contains the org value. You
can check this looking at the artifactory.log file.
So, can you try to set 2 remote repos on the same URL, one with:
[org]/[module]/[baseRev](-[folderItegRev])/[type]/[module](-[fileItegRev])(-[classifier]).[ext]
and the other with:
[org]/[module]/[baseRev](-[folderItegRev])/[type]/[org].[module](-[fileItegRev])(-[classifier]).[ext]

Hope it helps,
Fred.

On Mon, Sep 19, 2011 at 4:34 PM, ap.forrest <
[email protected]> wrote:

> Thank you Yoav for your response, unfortunately my issue still remains
> unresolved.
>
> I've modified the IVY repository layouts to look like the following:
> /
>
> [org]/[module]/[baseRev](-[folderItegRev])/[type]/([org].)[module](-[fileItegRev])(-[classifier]).[ext]
>
> [org]/[module]/[baseRev](-[folderItegRev])/[type]/ivy(-[fileItegRev])(-[classifier]).xml
> /
>
> Both the above layouts and the previous ones resolve the common_library_to
> when the url is entered into the test field:
> /
> Organization: com.abc.common_library
> Module: common_library_to
> Base Revision: 4.0.0.4-1
> Folder Integration Revision:
> File Integration Revision:
> Classifier:
> Extension: jar
> Type: jar
> /
>
> I then created a new repository pointing at our local IVY server and
> specified the remote layout to be that of the above layout; I left remote
> layout mapping blank. I then modified the virtual repository,
> 'remote-repos', to include the newly configured remote repository and under
> advanced settings, set the repository layout to be maven2-default. Having
> done this I now see an exclamation mark next to the repository under the
> resolved repository section for the virtual repository.
>
> Having done all of the above I am able to browse the contents of the
> virtual
> repository, which also shows the earlier mentioned artifact. I now update
> the maven settings within Eclipse to reflect any changes. However, Eclipse
> still replies with the following message:
> /
> Missing artifact
> com.abc.common_library:common_library_to:jar:4.0.0.4-1:compile
> /
> when trying to resolve:
> /
> Group Id: com.abc.common_library
> Artifact Id: common_library_to
> Version: 4.0.0.4-1
> Type: jar
> Scope: compile
> /
>
> I am able to type in the following URL within the browser and retrieve the
> desired jar:
> /
>
> http://someserver:8080/artifactory/libs-release/com.abc.common_library/common_library_to/4.0.0.4-1/jar/common_library_to.jar
> /
>
> Further thoughts? It feels like this should be straight forward, but I must
> be missing something.
>
> --
> View this message in context:
> http://forums.jfrog.org/Mapping-from-one-repository-type-to-another-does-it-work-tp6807726p6808339.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry&reg; mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry&reg; DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>



-- 
Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to