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