Checksum validation doesn't fail the build for repository metadata files
------------------------------------------------------------------------

                 Key: MNG-4309
                 URL: http://jira.codehaus.org/browse/MNG-4309
             Project: Maven 2
          Issue Type: Bug
          Components: Deployment
    Affects Versions: 2.2.1
            Reporter: Rich Seddon


I have a repository which has invalid checksums for some of it's 
maven-metadata.xml files.

When building with "-C" I get a warning, but the build still succeeds


{code}

mvn -C deploy

+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - test:project_a:jar:2.0.2-SNAPSHOT
[INFO]    task-segment: [deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/Users/rseddon/test/foo/project_a/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/Users/rseddon/test/foo/project_a/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing 
/Users/rseddon/test/foo/project_a/target/project_a-2.0.2-SNAPSHOT.jar to 
/Users/rseddon/.m2/repository/test/project_a/2.0.2-SNAPSHOT/project_a-2.0.2-SNAPSHOT.jar
[INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Retrieving previous build number from foo
Uploading: 
http://localhost:8081/nexus/content/repositories/snapshots//test/project_a/2.0.2-SNAPSHOT/project_a-2.0.2-20090817.175509-6.jar
1K uploaded  (project_a-2.0.2-20090817.175509-6.jar)
[INFO] Retrieving previous metadata from foo
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'1fee9c8f59bbb8457c230db81681cf98d90683d1'; remote = 
'07f4f4f5cc59ff10b1f71328abe8f61f6e56bdc0' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'1fee9c8f59bbb8457c230db81681cf98d90683d1'; remote = 
'07f4f4f5cc59ff10b1f71328abe8f61f6e56bdc0' - IGNORING
[INFO] Uploading repository metadata for: 'artifact test:project_a'
[INFO] Retrieving previous metadata from foo
[INFO] Uploading repository metadata for: 'snapshot 
test:project_a:2.0.2-SNAPSHOT'
[INFO] Uploading project information for project_a 2.0.2-20090817.175509-6
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Aug 17 10:55:09 PDT 2009
[INFO] Final Memory: 9M/19M
[INFO] ------------------------------------------------------------------------

{code}

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