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 import org.apache.maven.project.validation.ModelValidationResult;
23
24
25
26
27 @Deprecated
28 public class InvalidProjectModelException extends ProjectBuildingException {
29 private ModelValidationResult validationResult;
30
31 public InvalidProjectModelException(String projectId, String message, File pomLocation) {
32 super(projectId, message, pomLocation);
33 }
34
35
36
37
38
39
40
41
42 public InvalidProjectModelException(
43 String projectId, String pomLocation, String message, ModelValidationResult validationResult) {
44 this(projectId, message, new File(pomLocation), validationResult);
45 }
46
47 public InvalidProjectModelException(
48 String projectId, String message, File pomFile, ModelValidationResult validationResult) {
49 super(projectId, message, pomFile);
50
51 this.validationResult = validationResult;
52 }
53
54
55
56
57
58
59
60 public InvalidProjectModelException(String projectId, String pomLocation, String message) {
61 this(projectId, message, new File(pomLocation));
62 }
63
64 public final ModelValidationResult getValidationResult() {
65 return validationResult;
66 }
67 }