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 @Deprecated
44 public InvalidProjectModelException(
45 String projectId, String pomLocation, String message, ModelValidationResult validationResult) {
46 this(projectId, message, new File(pomLocation), validationResult);
47 }
48
49 public InvalidProjectModelException(
50 String projectId, String message, File pomFile, ModelValidationResult validationResult) {
51 super(projectId, message, pomFile);
52
53 this.validationResult = validationResult;
54 }
55
56
57
58
59
60
61
62 @Deprecated
63 public InvalidProjectModelException(String projectId, String pomLocation, String message) {
64 this(projectId, message, new File(pomLocation));
65 }
66
67 public final ModelValidationResult getValidationResult() {
68 return validationResult;
69 }
70 }