From 7aa75756d653fd1c76a1b5eb64920890c37aded0 Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Wed, 13 Mar 2013 01:33:06 +0000 Subject: [PATCH] HADOOP-9399. protoc maven plugin doesn't work on mvn 3.0.2. Contributed by Todd Lipcon. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1455771 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 2dfde4a8d7..9e75e9179e 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -558,6 +558,8 @@ Release 2.0.5-beta - UNRELEASED HADOOP-9379. capture the ulimit info after printing the log to the console. (Arpit Gupta via suresh) + HADOOP-9399. protoc maven plugin doesn't work on mvn 3.0.2 (todd) + Release 2.0.4-alpha - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java b/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java index 0844510170..47e97db9ef 100644 --- a/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java +++ b/hadoop-maven-plugins/src/main/java/org/apache/hadoop/maven/plugin/protoc/ProtocMojo.java @@ -37,7 +37,7 @@ public class ProtocMojo extends AbstractMojo { private MavenProject project; @Parameter - private List imports; + private File[] imports; @Parameter(defaultValue="${project.build.directory}/generated-sources/java") private File output; @@ -83,4 +83,4 @@ public void execute() throws MojoExecutionException { project.addCompileSourceRoot(output.getAbsolutePath()); } -} \ No newline at end of file +}