You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coursier, however, appears to expect to find an artifact and its accompanying ivy.xml using the same pattern (with artifact="ivy" and ext="xml"). This means that in practice all patterns must end with /[artifact].[ext], or the ivy.xml files must have non-standard names.
This can lead to weird behavior, such as attempting to parse a .jar file as XML (e.g., if the pattern ends with [module]-[revision].jar because the author doesn't care about the ivy.xml at all, see #754)
Update: I guess my statement that Coursier "appears to expect to find an artifact and its accompanying ivy.xml using the same pattern" is inaccurate, since it can find each using a separate pattern, I think. But there still remains the problem that in some cases it can match on a file that isn't an ivy.xml file, but will still attempt to parse it as XML. That said, in practice, resolving #754 would solve the current issues I'm having. The rest could be worked around with careful use of patterns.
The text was updated successfully, but these errors were encountered:
Having different patterns for metadata and artifacts is supported when using coursier via its API or its sbt plugin, but not via the CLI. But that should easy to add, one has just to find a right syntax for that… (and handle it around that line)
Ivy URL/Filesystem repos have separate patterns for finding ivy.xml files vs. finding artifacts.
E.g.,
Coursier, however, appears to expect to find an artifact and its accompanying ivy.xml using the same pattern (with artifact="ivy" and ext="xml"). This means that in practice all patterns must end with
/[artifact].[ext]
, or the ivy.xml files must have non-standard names.This can lead to weird behavior, such as attempting to parse a .jar file as XML (e.g., if the pattern ends with
[module]-[revision].jar
because the author doesn't care about the ivy.xml at all, see #754)Update: I guess my statement that Coursier "appears to expect to find an artifact and its accompanying ivy.xml using the same pattern" is inaccurate, since it can find each using a separate pattern, I think. But there still remains the problem that in some cases it can match on a file that isn't an ivy.xml file, but will still attempt to parse it as XML. That said, in practice, resolving #754 would solve the current issues I'm having. The rest could be worked around with careful use of patterns.
The text was updated successfully, but these errors were encountered: