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 import java.util.List;
23
24 import org.apache.commons.weaver.maven.AbstractCWMojo.TestScope;
25 import org.apache.maven.model.Build;
26 import org.apache.maven.plugins.annotations.LifecyclePhase;
27 import org.apache.maven.plugins.annotations.Mojo;
28 import org.apache.maven.plugins.annotations.Parameter;
29 import org.apache.maven.plugins.annotations.ResolutionScope;
30 import org.apache.maven.project.MavenProject;
31
32
33
34
35 @Mojo(
36 name = "test-weave",
37 defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES,
38 requiresDependencyCollection = ResolutionScope.TEST,
39 requiresDependencyResolution = ResolutionScope.TEST
40 )
41 @TestScope
42 public class TestWeaveMojo extends AbstractWeaveMojo {
43
44
45
46
47 @Parameter(readonly = true, required = true, defaultValue = "${project.testClasspathElements}")
48 protected List<String> classpath;
49
50
51
52
53 @Parameter(readonly = true, required = true, defaultValue = "${project.build.testOutputDirectory}")
54 protected File target;
55
56
57
58
59 @Override
60 protected File getTarget() {
61 return target;
62 }
63 }