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 @Parameter( property = "mdep.stripClassifier", defaultValue = "false" )
52 protected boolean stripClassifier = false;
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 @Parameter( property = "mdep.useRepositoryLayout", defaultValue = "false" )
69 protected boolean useRepositoryLayout;
70
71
72
73
74
75
76
77 @Parameter( property = "mdep.useSubDirectoryPerScope", defaultValue = "false" )
78 protected boolean useSubDirectoryPerScope;
79
80
81
82
83
84
85 @Parameter( property = "mdep.useSubDirectoryPerType", defaultValue = "false" )
86 protected boolean useSubDirectoryPerType;
87
88
89
90
91
92
93 @Parameter( property = "mdep.useSubDirectoryPerArtifact", defaultValue = "false" )
94 protected boolean useSubDirectoryPerArtifact;
95
96
97
98
99
100
101 @Parameter( property = "mdep.failOnMissingClassifierArtifact", defaultValue = "false" )
102 protected boolean failOnMissingClassifierArtifact = true;
103
104
105
106
107 public File getOutputDirectory()
108 {
109 return this.outputDirectory;
110 }
111
112
113
114
115 public void setOutputDirectory( File theOutputDirectory )
116 {
117 this.outputDirectory = theOutputDirectory;
118 }
119
120
121
122
123 public boolean isUseSubDirectoryPerArtifact()
124 {
125 return this.useSubDirectoryPerArtifact;
126 }
127
128
129
130
131 public void setUseSubDirectoryPerArtifact( boolean theUseSubDirectoryPerArtifact )
132 {
133 this.useSubDirectoryPerArtifact = theUseSubDirectoryPerArtifact;
134 }
135
136
137
138
139 public boolean isUseSubDirectoryPerScope()
140 {
141 return this.useSubDirectoryPerScope;
142 }
143
144
145
146
147 public void setUseSubDirectoryPerScope( boolean theUseSubDirectoryPerScope )
148 {
149 this.useSubDirectoryPerScope = theUseSubDirectoryPerScope;
150 }
151
152
153
154
155 public boolean isUseSubDirectoryPerType()
156 {
157 return this.useSubDirectoryPerType;
158 }
159
160
161
162
163 public void setUseSubDirectoryPerType( boolean theUseSubDirectoryPerType )
164 {
165 this.useSubDirectoryPerType = theUseSubDirectoryPerType;
166 }
167
168
169
170
171 public boolean isFailOnMissingClassifierArtifact()
172 {
173 return failOnMissingClassifierArtifact;
174 }
175
176
177
178
179 public void setFailOnMissingClassifierArtifact( boolean failOnMissingClassifierArtifact )
180 {
181 this.failOnMissingClassifierArtifact = failOnMissingClassifierArtifact;
182 }
183
184
185
186
187 public boolean isStripVersion()
188 {
189 return stripVersion;
190 }
191
192
193
194
195 public void setStripVersion( boolean stripVersion )
196 {
197 this.stripVersion = stripVersion;
198 }
199
200
201
202
203 public boolean isUseRepositoryLayout()
204 {
205 return useRepositoryLayout;
206 }
207
208
209
210
211 public void setUseRepositoryLayout( boolean useRepositoryLayout )
212 {
213 this.useRepositoryLayout = useRepositoryLayout;
214 }
215 }