ivy MDArtifact maven compatible improvement:add none jar(type!=jar) artifact
with a default classifier (value= type)
--------------------------------------------------------------------------------------------------------------------
Key: IVY-1244
URL: https://issues.apache.org/jira/browse/IVY-1244
Project: Ivy
Issue Type: Improvement
Reporter: qxo
MDArtifact:
{code}
public MDArtifact(ModuleDescriptor md, String name, String type, String
ext, URL url,
Map extraAttributes) {
//...
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes ==
null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
this.extraAttributes = extraAttributes;
}
{code}
now we use this ivy settings:
{code}
<url name="repos" m2compatible ="true" checkmodified="true"
>
<ivy
pattern="${baseUri}/[organisation]/[module]/[revision]/[module]-ivy-[revision].xml"
/>
<artifact
pattern="${baseUri}/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
/>
</url>
{code}
publish artifactory to maven compatible repo,we so can maven/ivy both with the
same repo :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.