You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2006/12/22 20:01:41 UTC

[jira] Created: (MNG-2712) update policy 'daily' not honored

update policy 'daily' not honored
---------------------------------

                 Key: MNG-2712
                 URL: http://jira.codehaus.org/browse/MNG-2712
             Project: Maven 2
          Issue Type: Bug
            Reporter: Kenney Westerhof


under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.

This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..

The timestamp used to compare for the update is 0L, because the local file doesn't exist.
Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
The next time an up2date check is done, again against timestamp 0 for a non-existent file.

This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.

A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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] Reopened: (MNG-2712) update policy 'daily' not honored

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2712?page=all ]

Kenney Westerhof reopened MNG-2712:
-----------------------------------

             
This is also a bug in 2.0.x, reopening.

> update policy 'daily' not honored
> ---------------------------------
>
>                 Key: MNG-2712
>                 URL: http://jira.codehaus.org/browse/MNG-2712
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5, 2.1.x
>            Reporter: Kenney Westerhof
>         Assigned To: Kenney Westerhof
>             Fix For: 2.1, 2.0.5, 2.0.x
>
>
> under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.
> This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..
> The timestamp used to compare for the update is 0L, because the local file doesn't exist.
> Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
> The next time an up2date check is done, again against timestamp 0 for a non-existent file.
> This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
> deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.
> A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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: (MNG-2712) update policy 'daily' not honored

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2712?page=all ]

Kenney Westerhof closed MNG-2712.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1)
                   2.1-alpha-1
                   2.1.x

Merged in revision 496443.



> update policy 'daily' not honored
> ---------------------------------
>
>                 Key: MNG-2712
>                 URL: http://jira.codehaus.org/browse/MNG-2712
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5, 2.1.x
>            Reporter: Kenney Westerhof
>         Assigned To: Kenney Westerhof
>             Fix For: 2.0.x, 2.0.5, 2.1.x, 2.1-alpha-1
>
>
> under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.
> This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..
> The timestamp used to compare for the update is 0L, because the local file doesn't exist.
> Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
> The next time an up2date check is done, again against timestamp 0 for a non-existent file.
> This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
> deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.
> A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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: (MNG-2712) update policy 'daily' not honored

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2712?page=all ]

Kenney Westerhof closed MNG-2712.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

Fixed in revision 489724.

Also updated unit test to test that the files ARE written, even if the metadata contains LATEST/RELEASE,
but without the version tag.

Ran integration tests on the core, and there don't seem to be any problems with this.

> update policy 'daily' not honored
> ---------------------------------
>
>                 Key: MNG-2712
>                 URL: http://jira.codehaus.org/browse/MNG-2712
>             Project: Maven 2
>          Issue Type: Bug
>            Reporter: Kenney Westerhof
>         Assigned To: Kenney Westerhof
>             Fix For: 2.1
>
>
> under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.
> This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..
> The timestamp used to compare for the update is 0L, because the local file doesn't exist.
> Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
> The next time an up2date check is done, again against timestamp 0 for a non-existent file.
> This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
> deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.
> A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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: (MNG-2712) update policy 'daily' not honored

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2712?page=all ]

Kenney Westerhof updated MNG-2712:
----------------------------------

    Affects Version/s: 2.1.x
                       2.0.5
        Fix Version/s: 2.0.5
                       2.0.x

> update policy 'daily' not honored
> ---------------------------------
>
>                 Key: MNG-2712
>                 URL: http://jira.codehaus.org/browse/MNG-2712
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5, 2.1.x
>            Reporter: Kenney Westerhof
>         Assigned To: Kenney Westerhof
>             Fix For: 2.1, 2.0.5, 2.0.x
>
>
> under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.
> This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..
> The timestamp used to compare for the update is 0L, because the local file doesn't exist.
> Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
> The next time an up2date check is done, again against timestamp 0 for a non-existent file.
> This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
> deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.
> A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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: (MNG-2712) update policy 'daily' not honored

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-2712:
------------------------------

    Fix Version/s:     (was: 2.1-alpha-1)
                       (was: 2.1.x)
                       (was: 2.0.x)

> update policy 'daily' not honored
> ---------------------------------
>
>                 Key: MNG-2712
>                 URL: http://jira.codehaus.org/browse/MNG-2712
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5, 2.1.x
>            Reporter: Kenney Westerhof
>         Assigned To: Kenney Westerhof
>             Fix For: 2.0.5
>
>
> under certain circumstances, the '<updatePolicy>daily</updatePolicy>' isn't honored.
> This is the case where the remote metadata file doesn't exist, or contains <version>RELEASE/LATEST (which should never happen)..
> The timestamp used to compare for the update is 0L, because the local file doesn't exist.
> Then the remote file is retrieved, which also doesn't exist, and no metadatafile is created.
> The next time an up2date check is done, again against timestamp 0 for a non-existent file.
> This means that if you define a custom snapshot repo in settings.xml or a pom, and you have 500 transitive
> deps, the repo's that don't have that artifact are consulted 500 times for each mvn invocation.
> A build that normally takes about 20 seconds takes more than 10 minutes because of this bug.

-- 
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