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