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