ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Dejung (JIRA)" <>
Subject [jira] Commented: (IVY-501) unable to resolve snapshot versions
Date Fri, 10 Oct 2008 04:46:44 GMT


Andreas Dejung commented on IVY-501:

The solution you implemented only works if the timestamp and build number is read in the right
order. Otherwise the url to look up the artifact is stuffed up e.g. com/mytest/testApp/1.0.0-SNAPSHOT/testApp-1.0.0-120081010.023154-.pom

With other words the buildnumber is in this case (1) set after the version number and before
the timestamp.

Localy I did a quick fix. There might be some nicer way for it but that worked for me : 
In line 171
                    XMLHelper.parse(metadataStream, null, new ContextualSAXHandler() {
                        String buildNumber="";
                        boolean timestampFound;	
                        boolean buildNumberFound;	
                        public void endElement(String uri, String localName, String qName)

                                throws SAXException {
                            if ("metadata/versioning/snapshot/timestamp".equals(getContext()))
                            if ("metadata/versioning/snapshot/buildNumber"
                                    .equals(getContext())) {
                            super.endElement(uri, localName, qName);
                    }, null);

Should  I raise a issue or can you reopen this one ?

Cheers Andreas

> unable to resolve snapshot versions
> -----------------------------------
>                 Key: IVY-501
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>         Environment: jdk 1.5
>            Reporter: Jeffrey Blattman
>            Assignee: Xavier Hanin
>            Priority: Blocker
>             Fix For: 2.0-RC1
> ivy cannot resolve maven2 "snapshot" versioning. i am actually unclear whether there
is some way to configure this to work, but the expectations is that if one sets m2compatible="true"
for the resolver, that the m2 snapshot versioning should just work without any other tweaks.
> i'd be glad to make this a lower priority than blocker if someone can explain the manual
configuration to make it work (i couldn't figure it out from the docs). 

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

View raw message