1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.commons.weaver.maven;
20
21 import java.io.File;
22
23 import org.apache.maven.model.Build;
24 import org.apache.maven.plugins.annotations.LifecyclePhase;
25 import org.apache.maven.plugins.annotations.Mojo;
26 import org.apache.maven.plugins.annotations.Parameter;
27 import org.apache.maven.plugins.annotations.ResolutionScope;
28
29
30
31
32 @Mojo(
33 name = "prepare",
34 defaultPhase = LifecyclePhase.INITIALIZE,
35 requiresDependencyCollection = ResolutionScope.RUNTIME_PLUS_SYSTEM,
36 requiresDependencyResolution = ResolutionScope.RUNTIME_PLUS_SYSTEM
37 )
38 public class PrepareMojo extends AbstractPrepareMojo {
39
40
41
42 @Parameter(readonly = true, required = true, defaultValue = "${project.build.outputDirectory}")
43 protected File target;
44
45
46
47
48 @Override
49 protected File getTarget() {
50 return target;
51 }
52 }