[MPLUGINTESTING-47] Incorrect Mojo Java5 annotations in example
authorAnders Hammar <anders@hammar.net>
Thu, 14 Jan 2016 08:45:30 +0000 (09:45 +0100)
committerAnders Hammar <anders@hammar.net>
Thu, 14 Jan 2016 08:45:30 +0000 (09:45 +0100)
Signed-off-by: Anders Hammar <anders@hammar.net>
maven-plugin-testing-harness/src/site/apt/examples/complex-mojo-parameters.apt

index a0761c2..29b78a9 100644 (file)
@@ -60,7 +60,7 @@ public class MyMojo
     /**
      * The Maven Project.
      */
-    @Component
+    @Parameter( defaultValue = "${project}", readonly = true )
     protected MavenProject project;
 
     /**
@@ -72,7 +72,7 @@ public class MyMojo
     /**
      * The Maven Settings.
      */
-    @Component
+    @Parameter( defaultValue = "${settings}", readonly = true )
     private Settings settings;
 
     ...