Skip to content

Commit

Permalink
Use standard Java annotation syntax instead of custom Javadoc tag
Browse files Browse the repository at this point in the history
For better support by building tools.
As reported by @KnustJohn_twitter , the custom
[@phase](https://maven.apache.org/plugin-tools/maven-plugin-tools-java/index.html)
Javadoc tag made NetBeans fail on Javadoc generation for the
GitRevmavenTask class.
Using instead standard Java 5
[annotations](https://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html#POM_configuration)
this is no more an issue.
  • Loading branch information
luccioman committed Jul 13, 2018
1 parent e1bc035 commit dcee2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbuild/GitRevMavenTask/src/GitRevMavenTask.java
Expand Up @@ -9,6 +9,7 @@
import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.logging.Log; import org.apache.maven.plugin.logging.Log;
import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProject;
Expand All @@ -25,9 +26,8 @@
* Maven plugin to create property with YaCy release number, * Maven plugin to create property with YaCy release number,
* a 4 digit number based on commits to the Git repository * a 4 digit number based on commits to the Git repository
* *
* @phase initialize
*/ */
@Mojo(name = "create") @Mojo(name = "create", defaultPhase = LifecyclePhase.INITIALIZE)
public class GitRevMavenTask extends AbstractMojo { public class GitRevMavenTask extends AbstractMojo {


@Component @Component
Expand Down

0 comments on commit dcee2ee

Please sign in to comment.