1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugins.dependency.fromDependencies;
20
21 import java.io.File;
22 import org.apache.maven.plugins.annotations.Parameter;
23
24
25
26
27
28
29 public abstract class AbstractFromDependenciesMojo extends AbstractDependencyFilterMojo {
30
31
32
33
34
35 @Parameter(property = "outputDirectory", defaultValue = "${project.build.directory}/dependency")
36 protected File outputDirectory;
37
38
39
40
41 @Parameter(property = "mdep.stripVersion", defaultValue = "false")
42 protected boolean stripVersion = false;
43
44
45
46
47
48
49 @Parameter(property = "mdep.stripType", defaultValue = "false")
50 protected boolean stripType = false;
51
52
53
54
55 @Parameter(property = "mdep.stripClassifier", defaultValue = "false")
56 protected boolean stripClassifier = false;
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 @Parameter(property = "mdep.useRepositoryLayout", defaultValue = "false")
73 protected boolean useRepositoryLayout;
74
75
76
77
78
79
80
81 @Parameter(property = "mdep.useSubDirectoryPerScope", defaultValue = "false")
82 protected boolean useSubDirectoryPerScope;
83
84
85
86
87
88
89 @Parameter(property = "mdep.useSubDirectoryPerType", defaultValue = "false")
90 protected boolean useSubDirectoryPerType;
91
92
93
94
95
96
97 @Parameter(property = "mdep.useSubDirectoryPerArtifact", defaultValue = "false")
98 protected boolean useSubDirectoryPerArtifact;
99
100
101
102
103
104
105 @Parameter(property = "mdep.failOnMissingClassifierArtifact", defaultValue = "false")
106 protected boolean failOnMissingClassifierArtifact = true;
107
108
109
110
111 public File getOutputDirectory() {
112 return this.outputDirectory;
113 }
114
115
116
117
118 public void setOutputDirectory(File theOutputDirectory) {
119 this.outputDirectory = theOutputDirectory;
120 }
121
122
123
124
125 public boolean isUseSubDirectoryPerArtifact() {
126 return this.useSubDirectoryPerArtifact;
127 }
128
129
130
131
132 public void setUseSubDirectoryPerArtifact(boolean theUseSubDirectoryPerArtifact) {
133 this.useSubDirectoryPerArtifact = theUseSubDirectoryPerArtifact;
134 }
135
136
137
138
139 public boolean isUseSubDirectoryPerScope() {
140 return this.useSubDirectoryPerScope;
141 }
142
143
144
145
146 public void setUseSubDirectoryPerScope(boolean theUseSubDirectoryPerScope) {
147 this.useSubDirectoryPerScope = theUseSubDirectoryPerScope;
148 }
149
150
151
152
153 public boolean isUseSubDirectoryPerType() {
154 return this.useSubDirectoryPerType;
155 }
156
157
158
159
160 public void setUseSubDirectoryPerType(boolean theUseSubDirectoryPerType) {
161 this.useSubDirectoryPerType = theUseSubDirectoryPerType;
162 }
163
164
165
166
167 public boolean isFailOnMissingClassifierArtifact() {
168 return failOnMissingClassifierArtifact;
169 }
170
171
172
173
174 public void setFailOnMissingClassifierArtifact(boolean failOnMissingClassifierArtifact) {
175 this.failOnMissingClassifierArtifact = failOnMissingClassifierArtifact;
176 }
177
178
179
180
181 public boolean isStripVersion() {
182 return stripVersion;
183 }
184
185
186
187
188 public void setStripVersion(boolean stripVersion) {
189 this.stripVersion = stripVersion;
190 }
191
192
193
194
195 public boolean isStripType() {
196 return stripType;
197 }
198
199
200
201
202 public void setStripType(boolean stripType) {
203 this.stripType = stripType;
204 }
205
206
207
208
209 public boolean isUseRepositoryLayout() {
210 return useRepositoryLayout;
211 }
212
213
214
215
216 public void setUseRepositoryLayout(boolean useRepositoryLayout) {
217 this.useRepositoryLayout = useRepositoryLayout;
218 }
219 }