Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6833

Add an option to fail a build when dependency pom is invalid and transitive dependencies are not available

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: Command Line
    • Labels:
      None

      Description

      Once, I build a war file on jenkins, then put it in tomcat. Then I got a "class not found" exception when I start tomcat, after that I found there are some jar files missing in the war file. 

      At last, I checked maven logs on jenkins, found warnings like "The POM for xxx is invalid, transitive dependencies (if any) will not be available“, so some transitive dependency jar files are not included, which caused "class not found" exception.

      So I think it is better to have an option to fail a build when dependency pom is invalid, so I can get the error at the build time. I would rathar see error in jenkins instead of in tomcat.

      E.g. if use "mvn -bar clean compile", maven will exit with error when "The POM for xxx is invalid"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ihavenoemail@163.com Jiahongchao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: