You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "qxo (JIRA)" <ji...@apache.org> on 2010/11/04 14:17:41 UTC
[jira] Created: (IVY-1244) ivy MDArtifact maven compatible
improvement:add none jar(type!=jar) artifact with a default classifier
(value= type)
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.
[jira] [Commented] (IVY-1244) ivy ArtifactRevisionId maven
compatible improvement:add none jar(type!=jar,ext=jar) artifact with a
default classifier (value= type)
Posted by "qxo (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159905#comment-13159905 ]
qxo commented on IVY-1244:
--------------------------
http://stackoverflow.com/questions/6216224/use-maven-repository-as-local-ivy-cache
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar,ext=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
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //javadoc/sources maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: ArtifactRevisionId.class
class for ivy 2.2
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.class, ArtifactRevisionId.java, IVY-1244-patch-for-trunk.txt, IVY-1244-patch.txt
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: ArtifactRevisionId.java
for ivy 2.2 to add m2 compatible "m:classifer"
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: IVY-1244-patch-for-trunk.txt
IVY-1244-patch-for-trunk.txt
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java, IVY-1244-patch-for-trunk.txt, IVY-1244-patch.txt
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (IVY-1244) ivy MDArtifact maven compatible
improvement:add none jar(type!=jar) artifact with a default classifier
(value= type)
Posted by "qxo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: ArtifactRevisionId.java
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //javadoc/sources maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
> 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
> Attachments: ArtifactRevisionId.java
>
>
> 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.
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: (was: ArtifactRevisionId.java)
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Description:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and the 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}
was:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //javadoc/sources maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and the 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}
Summary: ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type) (was: ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar,ext=jar) artifact with a default classifier (value= type))
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: IVY-1244-patch.txt
patch for ivy 2.2 tag
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java, IVY-1244-patch.txt
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Description:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}else{
extraAttributes = new HashMap(extraAttributes);
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
and we can aslo using same local(cached)repo for maven and ivy
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and ivysettings.xml cache artifactPattern can using same layout with maven2
artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
and the 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}
was:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
and we can aslo using same local(cached)repo for maven and ivy
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and ivysettings.xml cache artifactPattern can using same layout with maven2
artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
and the 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}
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: ArtifactRevisionId.java
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Description:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
and we can aslo using same local(cached)repo for maven and ivy
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and ivysettings.xml cache artifactPattern can using same layout with maven2
artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
and the 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}
was:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and the 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}
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar,ext=jar) artifact with a default
classifier (value= type)
Posted by "qxo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Description:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //javadoc/sources maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and the 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}
was:
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 :)
Summary: ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar,ext=jar) artifact with a default classifier (value= type) (was: ivy MDArtifact maven compatible improvement:add none jar(type!=jar) artifact with a default classifier (value= type))
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar,ext=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
> Attachments: ArtifactRevisionId.java
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //javadoc/sources maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and the 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}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: (was: ArtifactRevisionId.java)
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IVY-1244) ivy ArtifactRevisionId maven compatible
improvement:add none jar(type!=jar and ext=jar)
artifact(eg:type=sources,type=javadoc) with a default classifier
(classifier = type)
Posted by "qxo (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Description:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}else{
extraAttributes = new HashMap(extraAttributes);
}
extraAttributes.put("m:classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
and we can aslo using same local(cached)repo for maven and ivy
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and ivysettings.xml cache artifactPattern can using same layout with maven2
artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
and the 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}
was:
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}else{
extraAttributes = new HashMap(extraAttributes);
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
after this change now:
publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
and we can aslo using same local(cached)repo for maven and ivy
ivyrepo + pom.xml == maven repo
mavnrepo + ivy.xml == ivyrepo
and ivysettings.xml cache artifactPattern can using same layout with maven2
artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
and the 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}
> ivy ArtifactRevisionId maven compatible improvement:add none jar(type!=jar and ext=jar) artifact(eg:type=sources,type=javadoc) with a default classifier (classifier = type)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1244
> URL: https://issues.apache.org/jira/browse/IVY-1244
> Project: Ivy
> Issue Type: Improvement
> Reporter: qxo
> Attachments: ArtifactRevisionId.class, ArtifactRevisionId.java, IVY-1244-patch-for-trunk.txt, IVY-1244-patch.txt
>
>
> {code}
> public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
> super(null, prepareExtraAttribute(artfId,extraAttributes)); //add "javadoc/sources" a maven2 classifier compatible
> artifactId = artfId;
> mrid = mdlRevId;
> setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
> .getOrganisation());
> setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
> setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
> setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
> setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
> setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
> }
> public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
> final String type = artfId.getType();
> final String ext = artfId.getExt();
> if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
> if( extraAttributes == null){
> extraAttributes = new HashMap();
> }else{
> extraAttributes = new HashMap(extraAttributes);
> }
> extraAttributes.put("m:classifier", type);
> }
> return extraAttributes;
> }
> {code}
> after this change now:
> publish artifactory to maven compatible repo,we so can maven/ivy both with the same repo :)
> and we can aslo using same local(cached)repo for maven and ivy
> ivyrepo + pom.xml == maven repo
> mavnrepo + ivy.xml == ivyrepo
> and ivysettings.xml cache artifactPattern can using same layout with maven2
> artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
> and the 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}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (IVY-1244) ivy MDArtifact maven compatible
improvement:add none jar(type!=jar) artifact with a default classifier
(value= type)
Posted by "qxo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: ArtifactRevisionId.java
{code}
public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {
super(null, prepareExtraAttribute(artfId,extraAttributes));//javadoc/sources maven2 classifier compatible
artifactId = artfId;
mrid = mdlRevId;
setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()
.getOrganisation());
setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());
setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());
setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());
setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());
setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());
}
public static Map prepareExtraAttribute(ArtifactId artfId,Map extraAttributes) {
final String type = artfId.getType();
final String ext = artfId.getExt();
if((!("jar".equals(type))&&"jar".equals(ext) )&& (extraAttributes == null || !extraAttributes.containsKey("classifier"))){
if( extraAttributes == null){
extraAttributes = new HashMap();
}
extraAttributes.put("classifier", type);
}
return extraAttributes;
}
{code}
> 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.
[jira] Updated: (IVY-1244) ivy MDArtifact maven compatible
improvement:add none jar(type!=jar) artifact with a default classifier
(value= type)
Posted by "qxo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
qxo updated IVY-1244:
---------------------
Attachment: (was: ArtifactRevisionId.java)
> 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.