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