1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.project;
20
21 import java.io.File;
22
23 import org.apache.maven.project.validation.ModelValidationResult;
24
25
26
27
28 @Deprecated
29 public class InvalidProjectModelException extends ProjectBuildingException {
30 private ModelValidationResult validationResult;
31
32 public InvalidProjectModelException(String projectId, String message, File pomLocation) {
33 super(projectId, message, pomLocation);
34 }
35
36
37
38
39
40
41
42
43 public InvalidProjectModelException(
44 String projectId, String pomLocation, String message, ModelValidationResult validationResult) {
45 this(projectId, message, new File(pomLocation), validationResult);
46 }
47
48 public InvalidProjectModelException(
49 String projectId, String message, File pomFile, ModelValidationResult validationResult) {
50 super(projectId, message, pomFile);
51
52 this.validationResult = validationResult;
53 }
54
55
56
57
58
59
60
61 public InvalidProjectModelException(String projectId, String pomLocation, String message) {
62 this(projectId, message, new File(pomLocation));
63 }
64
65 public final ModelValidationResult getValidationResult() {
66 return validationResult;
67 }
68 }