Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Information Provided
-
3.6.1
-
None
-
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
- relates to
-
MNG-5982 The POM for ... is invalid, transitive dependencies ... while property was overriden
- Closed