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