[jira] Commented: (MERCURY-103) Maven bootstrap fails on some local repos

2009-03-12 Thread Oleg Gusakov (JIRA)

[ 
http://jira.codehaus.org/browse/MERCURY-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169148#action_169148
 ] 

Oleg Gusakov commented on MERCURY-103:
--

solved the last piece of the puzzle: cache was checking condition ts1 > ts2, 
while for "always" it should have been ts1 >= ts2 as diff was zero.

Added explicit check for policy "always" in order to save some nannos ..

Case closed!

> Maven bootstrap fails on some local repos
> -
>
> Key: MERCURY-103
> URL: http://jira.codehaus.org/browse/MERCURY-103
> Project: Mercury
>  Issue Type: Bug
>  Components: Ant tasks, Dependency Builder, Repository
>Affects Versions: 1.0-alpha-6
>Reporter: Oleg Gusakov
>Assignee: Oleg Gusakov
> Fix For: 1.0-alpha-6
>
> Attachments: bad-mercury-repo.zip
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MERCURY-103) Maven bootstrap fails on some local repos

2009-03-11 Thread Oleg Gusakov (JIRA)

[ 
http://jira.codehaus.org/browse/MERCURY-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169011#action_169011
 ] 

Oleg Gusakov commented on MERCURY-103:
--

Still need to investigate why policy "always" did not deal with stale cache data

> Maven bootstrap fails on some local repos
> -
>
> Key: MERCURY-103
> URL: http://jira.codehaus.org/browse/MERCURY-103
> Project: Mercury
>  Issue Type: Bug
>  Components: Ant tasks, Dependency Builder, Repository
>Affects Versions: 1.0-alpha-6
>Reporter: Oleg Gusakov
>Assignee: Oleg Gusakov
> Fix For: 1.0-alpha-6
>
> Attachments: bad-mercury-repo.zip
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MERCURY-103) Maven bootstrap fails on some local repos

2009-03-11 Thread Oleg Gusakov (JIRA)

[ 
http://jira.codehaus.org/browse/MERCURY-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168986#action_168986
 ] 

Oleg Gusakov commented on MERCURY-103:
--

issue traced to several problems:

# stale data in the local repository: cache refers to a snapshot which is 
already purged from the server
## repository updatePolicy is set to "always", but stale data still shows up
# there is a -SNAPSHOT jar and a couple of timestamps in the repository. And 
SNAPSHOT happened to be a copy of an older timestamp, after which APIs has 
changed
## old Mercury behavior - order timestamps, but choose -SNAPSHOT if one is 
present
# lastModified on the stale SNAPSHOT jar is after the latest timestamp jar, so 
even fixing the sequence, in which local snapshots are processed, we'll be 
getting the wrong version


> Maven bootstrap fails on some local repos
> -
>
> Key: MERCURY-103
> URL: http://jira.codehaus.org/browse/MERCURY-103
> Project: Mercury
>  Issue Type: Bug
>  Components: Ant tasks, Dependency Builder, Repository
>Affects Versions: 1.0-alpha-6
>Reporter: Oleg Gusakov
>Assignee: Oleg Gusakov
> Fix For: 1.0-alpha-6
>
> Attachments: bad-mercury-repo.zip
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira