[ 
https://issues.apache.org/jira/browse/IVY-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590696#action_12590696
 ] 

James P. White commented on IVY-803:
------------------------------------

Thanks!  Need a little tweak though.  Must also specify ivyPattern (lest an 
exception occurs), and based on looking at the source 
(DefaultRepositoryCacheManager) there is now a branch variable too.  

This is what worked for me:
{noformat}<ivysettings>
  <caches 
artifactPattern="[organisation]/[module](/[branch])/[type]s/[artifact]-[revision](-[classifier])(.[ext])"
          ivyPattern="[organisation]/[module](/[branch])/ivy-[revision].xml"/>
</ivysettings>
{noformat}



> Cache can't distinguish artifacts with classifiers
> --------------------------------------------------
>
>                 Key: IVY-803
>                 URL: https://issues.apache.org/jira/browse/IVY-803
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>            Reporter: James P. White
>
> Once an artifact with a Maven classifier is in the cache, then that will 
> match any classifier value.
> Presumably the fix is to include the classifier in the artifact pattern for 
> the cache.
> But this seems a little obnoxious since AFAICT this problem may exist with 
> all artifact patterns.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to