You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:28:45 UTC
[maven-ant-plugin] 04/18: o Tidied up mojo annotations
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to annotated tag maven-ant-plugin-2.2
in repository https://gitbox.apache.org/repos/asf/maven-ant-plugin.git
commit 7c4ca91b6628ace1631172869445712831447466
Author: Benjamin Bentmann <be...@apache.org>
AuthorDate: Mon Apr 13 10:34:00 2009 +0000
o Tidied up mojo annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@764394 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java | 3 ++-
src/main/java/org/apache/maven/plugin/ant/AntMojo.java | 11 +++++++----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java b/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
index 12297bd..f61ba0a 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
@@ -38,8 +38,9 @@ public class AntCleanMojo
/**
* The working project.
*
- * @parameter expression="${project}"
+ * @parameter default-value="${project}"
* @required
+ * @readonly
*/
private MavenProject project;
diff --git a/src/main/java/org/apache/maven/plugin/ant/AntMojo.java b/src/main/java/org/apache/maven/plugin/ant/AntMojo.java
index a93386b..b394e8e 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntMojo.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntMojo.java
@@ -45,8 +45,9 @@ public class AntMojo
/**
* The project to create a build for.
*
- * @parameter expression="${project}"
+ * @parameter default-value="${project}"
* @required
+ * @readonly
*/
private MavenProject project;
@@ -67,22 +68,24 @@ public class AntMojo
/**
* The local repository where the artifacts are located.
*
- * @parameter expression="${localRepository}"
+ * @parameter default-value="${localRepository}"
* @required
+ * @readonly
*/
private ArtifactRepository localRepository;
/**
* The remote repositories where artifacts are located.
*
- * @parameter expression="${project.remoteArtifactRepositories}"
+ * @parameter default-value="${project.remoteArtifactRepositories}"
+ * @readonly
*/
private List remoteRepositories;
/**
* The current user system settings for use in Maven.
*
- * @parameter expression="${settings}"
+ * @parameter default-value="${settings}"
* @required
* @readonly
*/
--
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.