[ 
http://jira.codehaus.org/browse/MNG-3470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-3470.
----------------------------------

    Resolution: Fixed
      Assignee: Benjamin Bentmann

Fixed in [r929985|http://svn.apache.org/viewvc?view=revision&revision=929985].

> Build does not fail on corrupted POM even with checksumPolicy=fail
> ------------------------------------------------------------------
>
>                 Key: MNG-3470
>                 URL: http://jira.codehaus.org/browse/MNG-3470
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.8
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.0-beta-1
>
>         Attachments: mng-3470-it.patch
>
>
> If a dependency has a corrupted POM and the corresponding remote repo is 
> configured with checksumPolicy=fail, Maven does still not fail the build.
> This seems to caused by the fix for MNG-2282: The original 
> ChecksumFailedException is wrapped into a TransferFailedException which is 
> errorneously converted into a ResourceDoesNotExistException by 
> DefaultWagonManager.getArtifact(). Next up, DefaultArtifactResolver.resolve() 
> wraps this into an ArtifactNotFoundException. 
> DefaultMavenProjectBuilder.findModelFromRepository() will catch this and 
> simply create a stub POM instead of failing.
> The code from the trunk looks different, not sure if it suffers from this. 
> Now that I have a JIRA id, I will try to setup an IT.

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

        

Reply via email to