You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Oleg Gusakov (JIRA)" <ji...@codehaus.org> on 2009/03/12 02:10:12 UTC

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

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
         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] Closed: (MERCURY-103) Maven bootstrap fails on some local repos

Posted by "Oleg Gusakov (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MERCURY-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Gusakov closed MERCURY-103.
--------------------------------

    Resolution: Fixed

figured out all the use cases, changed the code to make the best effort to address them.

> 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

Posted by "Oleg Gusakov (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Oleg Gusakov (JIRA)" <ji...@codehaus.org>.
    [ 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

Posted by "Oleg Gusakov (JIRA)" <ji...@codehaus.org>.
    [ 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] Updated: (MERCURY-103) Maven bootstrap fails on some local repos

Posted by "Oleg Gusakov (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MERCURY-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Gusakov updated MERCURY-103:
---------------------------------

    Testcase included: yes
        Fix Version/s: 1.0-alpha-6

> 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