avoid @Component for Maven objects: replaced with normal @Parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599157 13f79535-47bb-0310-9956-ffa450edef68master
parent
f0a8bb4b3a
commit
a2602cf139
|
|
@ -45,7 +45,7 @@
|
|||
<doxiaVersion>1.2</doxiaVersion>
|
||||
<doxia-sitetoolsVersion>1.2</doxia-sitetoolsVersion>
|
||||
<it.debug>true</it.debug>
|
||||
<mavenPluginPluginVersion>3.1</mavenPluginPluginVersion>
|
||||
<mavenPluginPluginVersion>3.3</mavenPluginPluginVersion>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
@ -234,21 +234,20 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-plugin-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||
</configuration>
|
||||
<version>${mavenPluginPluginVersion}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>mojo-descriptor</id>
|
||||
<goals>
|
||||
<goal>descriptor</goal>
|
||||
</goals>
|
||||
<id>default-descriptor</id>
|
||||
<phase>process-classes</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>generated-helpmojo</id>
|
||||
<goals>
|
||||
<goal>helpmojo</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
|
@ -260,7 +259,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-plugin-plugin</artifactId>
|
||||
<version>3.2</version>
|
||||
<version>${mavenPluginPluginVersion}</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public abstract class AbstractGeneratorMojo
|
|||
/**
|
||||
* The project currently being built.
|
||||
*/
|
||||
@Component
|
||||
@Parameter( defaultValue = "${project}", readonly = true )
|
||||
protected MavenProject project;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public class PluginReport
|
|||
/**
|
||||
* The Maven Project.
|
||||
*/
|
||||
@Component
|
||||
@Parameter( defaultValue = "${project}", readonly = true )
|
||||
private MavenProject project;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ import org.apache.maven.artifact.repository.metadata.Versioning;
|
|||
import org.apache.maven.plugin.AbstractMojo;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.maven.plugin.descriptor.PluginDescriptor;
|
||||
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.Parameter;
|
||||
|
|
@ -54,7 +53,7 @@ public class AddPluginArtifactMetadataMojo
|
|||
/**
|
||||
* The project artifact, which should have the <code>latest</code> metadata added to it.
|
||||
*/
|
||||
@Component
|
||||
@Parameter( defaultValue = "${project}", readonly = true )
|
||||
private MavenProject project;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue