diff --git a/pom.xml b/pom.xml index 4f05a5f8..1ff2e4cc 100644 --- a/pom.xml +++ b/pom.xml @@ -261,10 +261,21 @@ limitations under the License. + src/scripts src/java src/test + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + org.codehaus.mojo + build-helper-maven-plugin + 1.7 + org.apache.maven.plugins maven-clean-plugin @@ -298,6 +309,47 @@ limitations under the License. + + org.apache.maven.plugins + maven-antrun-plugin + + + generate-version-tool + generate-sources + run + + + Generating version tool + + + + + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-generated-sources + generate-sources + + add-source + + + + ${basedir}/target/generated-sources/src + + + + + org.apache.maven.plugins maven-surefire-plugin diff --git a/src/java/org/apache/sqoop/mapreduce/db/DBOutputFormat.java b/src/java/org/apache/sqoop/mapreduce/db/DBOutputFormat.java index 47a80df9..658abdb8 100644 --- a/src/java/org/apache/sqoop/mapreduce/db/DBOutputFormat.java +++ b/src/java/org/apache/sqoop/mapreduce/db/DBOutputFormat.java @@ -37,7 +37,6 @@ import com.cloudera.sqoop.config.ConfigurationHelper; import com.cloudera.sqoop.mapreduce.db.DBConfiguration; -import com.cloudera.sqoop.mapreduce.db.DBOutputFormat.DBRecordWriter; /** * A OutputFormat that sends the reduce output to a SQL table. @@ -119,7 +118,8 @@ public RecordWriter getRecordWriter(TaskAttemptContext context) statement = connection.prepareStatement( constructQuery(tableName, fieldNames)); - return new DBRecordWriter(connection, statement); + return new com.cloudera.sqoop.mapreduce.db.DBOutputFormat.DBRecordWriter( + connection, statement); } catch (Exception ex) { throw new IOException(ex); }