[maven-release-plugin] copy for tag maven-plugin-tools-3.2

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/tags/maven-plugin-tools-3.2@1406624 13f79535-47bb-0310-9956-ffa450edef68
maven-plugin-tools-3.2
Kristian Rosenvold 2012-11-07 13:32:39 +00:00
commit 1363856d9f
19 changed files with 35 additions and 32 deletions

View File

@ -23,7 +23,7 @@
<parent> <parent>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-annotations</artifactId> <artifactId>maven-plugin-annotations</artifactId>

View File

@ -23,7 +23,7 @@
<parent> <parent>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -62,10 +62,6 @@ public class DescriptorGeneratorMojo
@Parameter( defaultValue = "false" ) @Parameter( defaultValue = "false" )
private boolean skipDescriptor; private boolean skipDescriptor;
@Component
protected Logger logger;
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@ -79,7 +75,7 @@ public class DescriptorGeneratorMojo
*/ */
protected Generator createGenerator() protected Generator createGenerator()
{ {
return new PluginDescriptorGenerator( logger ); return new PluginDescriptorGenerator( getLog() );
} }
/** /**

View File

@ -22,7 +22,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-annotations</artifactId> <artifactId>maven-plugin-tools-annotations</artifactId>

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-ant</artifactId> <artifactId>maven-plugin-tools-ant</artifactId>

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-api</artifactId> <artifactId>maven-plugin-tools-api</artifactId>

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-beanshell</artifactId> <artifactId>maven-plugin-tools-beanshell</artifactId>

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-generators</artifactId> <artifactId>maven-plugin-tools-generators</artifactId>

View File

@ -36,6 +36,7 @@ import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.Parameter; import org.apache.maven.plugin.descriptor.Parameter;
import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.plugin.descriptor.Requirement; import org.apache.maven.plugin.descriptor.Requirement;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProject;
import org.apache.maven.tools.plugin.ExtendedMojoDescriptor; import org.apache.maven.tools.plugin.ExtendedMojoDescriptor;
import org.apache.maven.tools.plugin.PluginToolsRequest; import org.apache.maven.tools.plugin.PluginToolsRequest;
@ -59,9 +60,9 @@ public class PluginDescriptorGenerator
implements Generator implements Generator
{ {
private final Logger log; private final Log log;
public PluginDescriptorGenerator( Logger log ) public PluginDescriptorGenerator( Log log )
{ {
this.log = log; this.log = log;
} }

View File

@ -21,6 +21,7 @@ package org.apache.maven.tools.plugin.generator;
import org.apache.maven.plugin.descriptor.MojoDescriptor; import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProject;
import org.apache.maven.tools.plugin.PluginToolsRequest; import org.apache.maven.tools.plugin.PluginToolsRequest;
import org.apache.velocity.VelocityContext; import org.apache.velocity.VelocityContext;
@ -60,7 +61,7 @@ import java.util.Properties;
* <p>Notice that the help mojo source needs to be generated before compilation, but when Java 5 annotations are used, * <p>Notice that the help mojo source needs to be generated before compilation, but when Java 5 annotations are used,
* plugin descriptor content is available only after compilation (detecting annotations in .class files): * plugin descriptor content is available only after compilation (detecting annotations in .class files):
* help mojo source can be generated with empty package only (and no plugin descriptor available yet), then needs * help mojo source can be generated with empty package only (and no plugin descriptor available yet), then needs
* to be updated after compilation - through {@link #rewriteHelpMojo(PluginToolsRequest)} which is called from plugin * to be updated after compilation - through {@link #rewriteHelpMojo(PluginToolsRequest, Log)} which is called from plugin
* descriptor XML generation.</p> * descriptor XML generation.</p>
* *
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a> * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
@ -236,7 +237,7 @@ public class PluginHelpGenerator
* *
* @param request * @param request
* @throws GeneratorException * @throws GeneratorException
* @see {@link #rewriteHelpMojo(PluginToolsRequest)} * @see {@link #rewriteHelpMojo(PluginToolsRequest, Log)}
*/ */
private void writeHelpPropertiesFile( PluginToolsRequest request, File destinationDirectory ) private void writeHelpPropertiesFile( PluginToolsRequest request, File destinationDirectory )
throws GeneratorException throws GeneratorException
@ -285,7 +286,7 @@ public class PluginHelpGenerator
* @param request * @param request
* @throws GeneratorException * @throws GeneratorException
*/ */
static void rewriteHelpMojo( PluginToolsRequest request, Logger log ) static void rewriteHelpMojo( PluginToolsRequest request, Log log )
throws GeneratorException throws GeneratorException
{ {
File tmpPropertiesFile = File tmpPropertiesFile =
@ -329,7 +330,7 @@ public class PluginHelpGenerator
} }
} }
private static String rewriteHelpClassToMojoPackage( PluginToolsRequest request, File destinationDirectory, Logger log ) private static String rewriteHelpClassToMojoPackage( PluginToolsRequest request, File destinationDirectory, Log log )
throws GeneratorException throws GeneratorException
{ {
String destinationPackage = GeneratorUtils.discoverPackageName( request.getPluginDescriptor() ); String destinationPackage = GeneratorUtils.discoverPackageName( request.getPluginDescriptor() );

View File

@ -25,9 +25,13 @@ import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import org.apache.maven.model.Build; import org.apache.maven.model.Build;
import org.apache.maven.monitor.logging.DefaultLog;
import org.apache.maven.plugin.descriptor.MojoDescriptor; import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.Parameter; import org.apache.maven.plugin.descriptor.Parameter;
import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.plugin.logging.SystemStreamLog;
import org.apache.maven.plugin.testing.SilentLog;
import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProject;
import org.apache.maven.tools.plugin.DefaultPluginToolsRequest; import org.apache.maven.tools.plugin.DefaultPluginToolsRequest;
import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.PlexusTestCase;
@ -137,11 +141,11 @@ public abstract class AbstractGeneratorTestCase
{ {
Class<?> generatorClass = Thread.currentThread().getContextClassLoader().loadClass( generatorClassName ); Class<?> generatorClass = Thread.currentThread().getContextClassLoader().loadClass( generatorClassName );
Logger logger = getContainer().getLogger(); Log log = new SystemStreamLog();
try try
{ {
Constructor<?> constructor = generatorClass.getConstructor( Logger.class ); Constructor<?> constructor = generatorClass.getConstructor( Log.class );
generator = (Generator) constructor.newInstance( logger ); generator = (Generator) constructor.newInstance( log );
} }
catch ( NoSuchMethodException ignore ) catch ( NoSuchMethodException ignore )
{ {

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-java</artifactId> <artifactId>maven-plugin-tools-java</artifactId>

View File

@ -28,6 +28,7 @@ import org.apache.maven.model.Model;
import org.apache.maven.plugin.descriptor.MojoDescriptor; import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.Parameter; import org.apache.maven.plugin.descriptor.Parameter;
import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.plugin.logging.SystemStreamLog;
import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProject;
import org.apache.maven.tools.plugin.DefaultPluginToolsRequest; import org.apache.maven.tools.plugin.DefaultPluginToolsRequest;
import org.apache.maven.tools.plugin.ExtendedMojoDescriptor; import org.apache.maven.tools.plugin.ExtendedMojoDescriptor;
@ -121,7 +122,7 @@ public class JavaMojoDescriptorExtractorTest
request.getPluginDescriptor().addMojo( mojoDescriptor ); request.getPluginDescriptor().addMojo( mojoDescriptor );
} }
Generator descriptorGenerator = new PluginDescriptorGenerator( new ConsoleLogger( 0, "A" ) ); Generator descriptorGenerator = new PluginDescriptorGenerator( new SystemStreamLog() );
descriptorGenerator.execute( new File( root, directory ), request ); descriptorGenerator.execute( new File( root, directory ), request );

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-javadoc</artifactId> <artifactId>maven-plugin-tools-javadoc</artifactId>

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-plugin-tools-model</artifactId> <artifactId>maven-plugin-tools-model</artifactId>

View File

@ -23,7 +23,7 @@ under the License.
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script</artifactId> <artifactId>maven-script</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-script-ant</artifactId> <artifactId>maven-script-ant</artifactId>

View File

@ -23,7 +23,7 @@ under the License.
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script</artifactId> <artifactId>maven-script</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-script-beanshell</artifactId> <artifactId>maven-script-beanshell</artifactId>

View File

@ -23,7 +23,7 @@ under the License.
<parent> <parent>
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
</parent> </parent>
<artifactId>maven-script</artifactId> <artifactId>maven-script</artifactId>

View File

@ -29,7 +29,7 @@
<groupId>org.apache.maven.plugin-tools</groupId> <groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools</artifactId> <artifactId>maven-plugin-tools</artifactId>
<version>3.3-SNAPSHOT</version> <version>3.2</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Maven Plugin Tools</name> <name>Maven Plugin Tools</name>
@ -142,9 +142,9 @@
</modules> </modules>
<scm> <scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugin-tools/trunk</connection> <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugin-tools/tags/maven-plugin-tools-3.2</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugin-tools/trunk</developerConnection> <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugin-tools/tags/maven-plugin-tools-3.2</developerConnection>
<url>http://svn.apache.org/viewvc/maven/plugin-tools/trunk</url> <url>http://svn.apache.org/viewvc/maven/plugin-tools/tags/maven-plugin-tools-3.2</url>
</scm> </scm>
<issueManagement> <issueManagement>
<system>jira</system> <system>jira</system>