You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by cu...@apache.org on 2012/11/19 21:57:11 UTC
svn commit: r1411406 - in /avro/trunk: ./ lang/java/maven-plugin/
lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/
lang/java/maven-plugin/src/test/ lang/java/maven-plugin/src/test/avro/
lang/java/maven-plugin/src/test/avro/directImport/ lang/...
Author: cutting
Date: Mon Nov 19 20:57:09 2012
New Revision: 1411406
URL: http://svn.apache.org/viewvc?rev=1411406&view=rev
Log:
AVRO-1207. Java: Add tests for Maven plugins. Contributed by Sharmarke Aden.
Added:
avro/trunk/lang/java/maven-plugin/src/test/
avro/trunk/lang/java/maven-plugin/src/test/avro/
avro/trunk/lang/java/maven-plugin/src/test/avro/User.avdl
avro/trunk/lang/java/maven-plugin/src/test/avro/User.avpr
avro/trunk/lang/java/maven-plugin/src/test/avro/User.avsc
avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/
avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/PrivacyDirectImport.avsc
avro/trunk/lang/java/maven-plugin/src/test/avro/imports/
avro/trunk/lang/java/maven-plugin/src/test/avro/imports/PrivacyImport.avsc
avro/trunk/lang/java/maven-plugin/src/test/java/
avro/trunk/lang/java/maven-plugin/src/test/java/org/
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java (with props)
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java (with props)
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java (with props)
avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java (with props)
avro/trunk/lang/java/maven-plugin/src/test/resources/
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml (with props)
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml (with props)
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/
avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml (with props)
Modified:
avro/trunk/CHANGES.txt
avro/trunk/lang/java/maven-plugin/pom.xml
avro/trunk/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1411406&r1=1411405&r2=1411406&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Mon Nov 19 20:57:09 2012
@@ -29,6 +29,8 @@ Trunk (not yet released)
AVRO-1183. Java: Provide a better error message when the schema
for a Pair cannot be inferred. (cutting)
+ AVRO-1207. Java: Add tests for Maven plugins. (Sharmarke Aden via cutting)
+
BUG FIXES
AVRO-1171. Java: Don't call configure() twice on mappers & reducers.
Modified: avro/trunk/lang/java/maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/pom.xml?rev=1411406&r1=1411405&r2=1411406&view=diff
==============================================================================
--- avro/trunk/lang/java/maven-plugin/pom.xml (original)
+++ avro/trunk/lang/java/maven-plugin/pom.xml Mon Nov 19 20:57:09 2012
@@ -37,6 +37,10 @@
<maven>${maven.version}</maven>
</prerequisites>
+ <properties>
+ <pluginTestingVersion>1.3</pluginTestingVersion>
+ </properties>
+
<build>
<plugins>
<plugin>
@@ -56,6 +60,7 @@
</build>
<dependencies>
+ <!-- maven -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
@@ -76,6 +81,25 @@
<artifactId>avro-compiler</artifactId>
<version>${project.version}</version>
</dependency>
+ <!-- test-->
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ <version>${maven.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-testing</groupId>
+ <artifactId>maven-plugin-testing-tools</artifactId>
+ <version>${pluginTestingVersion}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.plugin-testing</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>${pluginTestingVersion}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
Modified: avro/trunk/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java?rev=1411406&r1=1411405&r2=1411406&view=diff
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java (original)
+++ avro/trunk/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java Mon Nov 19 20:57:09 2012
@@ -63,6 +63,12 @@ public class IDLProtocolMojo extends Abs
try {
@SuppressWarnings("rawtypes")
List runtimeClasspathElements = project.getRuntimeClasspathElements();
+ Idl parser;
+
+ // If runtimeClasspathElements is not empty values add its values to Idl path.
+ if(runtimeClasspathElements == null || runtimeClasspathElements.isEmpty()) {
+ parser = new Idl(new File(sourceDirectory, filename));
+ } else {
URL[] runtimeUrls = new URL[runtimeClasspathElements.size()];
for (int i = 0; i < runtimeClasspathElements.size(); i++) {
String element = (String) runtimeClasspathElements.get(i);
@@ -70,8 +76,9 @@ public class IDLProtocolMojo extends Abs
}
URLClassLoader projPathLoader = new URLClassLoader
(runtimeUrls, Thread.currentThread().getContextClassLoader());
+ parser = new Idl(new File(sourceDirectory, filename), projPathLoader);
+ }
- Idl parser = new Idl(new File(sourceDirectory, filename), projPathLoader);
Protocol p = parser.CompilationUnit();
String json = p.toString(true);
Protocol protocol = Protocol.parse(json);
Added: avro/trunk/lang/java/maven-plugin/src/test/avro/User.avdl
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/avro/User.avdl?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/avro/User.avdl (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/avro/User.avdl Mon Nov 19 20:57:09 2012
@@ -0,0 +1,14 @@
+@namespace("test")
+protocol IdlTest {
+
+ enum IdlPrivacy {
+ Public, Private
+ }
+
+ record IdlUser {
+ union { null, string } id;
+ union { null, long } createdOn;
+ union { null, IdlPrivacy } privacy;
+ }
+
+}
\ No newline at end of file
Added: avro/trunk/lang/java/maven-plugin/src/test/avro/User.avpr
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/avro/User.avpr?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/avro/User.avpr (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/avro/User.avpr Mon Nov 19 20:57:09 2012
@@ -0,0 +1,34 @@
+{
+ "protocol" : "ProtocolTest",
+ "namespace" : "test",
+ "types" : [
+ {
+ "type" : "enum",
+ "name" : "ProtocolPrivacy",
+ "symbols" : [ "Public", "Private"]
+ },
+ {
+ "type": "record",
+ "namespace": "test",
+ "name": "ProtocolUser",
+ "doc": "User Test Bean",
+ "fields": [
+ {
+ "name": "id",
+ "type": ["null", "string"],
+ "default": null
+ },
+ {
+ "name": "createdOn",
+ "type": ["null", "long"],
+ "default": null
+ },
+ {
+ "name": "privacy",
+ "type": ["null", "ProtocolPrivacy"],
+ "default": null
+ }
+ ]
+ }
+ ]
+}
Added: avro/trunk/lang/java/maven-plugin/src/test/avro/User.avsc
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/avro/User.avsc?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/avro/User.avsc (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/avro/User.avsc Mon Nov 19 20:57:09 2012
@@ -0,0 +1,38 @@
+{
+ "type": "record",
+ "namespace": "test",
+ "name": "SchemaUser",
+ "doc": "User Test Bean",
+ "fields": [
+ {
+ "name": "id",
+ "type": ["null", "string"],
+ "default": null
+ },
+ {
+ "name": "createdOn",
+ "type": ["null", "long"],
+ "default": null
+ },
+ {
+ "name": "privacy",
+ "type": ["null", {
+ "type": "enum",
+ "name": "SchemaPrivacy",
+ "namespace": "test",
+ "symbols" : ["Public","Private"]
+ }],
+ "default": null
+ },
+ {
+ "name": "privacyImported",
+ "type": ["null", "test.PrivacyImport"],
+ "default": null
+ },
+ {
+ "name": "privacyDirectImport",
+ "type": ["null", "test.PrivacyDirectImport"],
+ "default": null
+ }
+ ]
+}
Added: avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/PrivacyDirectImport.avsc
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/PrivacyDirectImport.avsc?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/PrivacyDirectImport.avsc (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/avro/directImport/PrivacyDirectImport.avsc Mon Nov 19 20:57:09 2012
@@ -0,0 +1,7 @@
+{
+ "type": "enum",
+ "namespace": "test",
+ "name": "PrivacyDirectImport",
+ "doc": "Privacy Test Enum",
+ "symbols" : ["Public","Private"]
+}
Added: avro/trunk/lang/java/maven-plugin/src/test/avro/imports/PrivacyImport.avsc
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/avro/imports/PrivacyImport.avsc?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/avro/imports/PrivacyImport.avsc (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/avro/imports/PrivacyImport.avsc Mon Nov 19 20:57:09 2012
@@ -0,0 +1,7 @@
+{
+ "type": "enum",
+ "namespace": "test",
+ "name": "PrivacyImport",
+ "doc": "Privacy Test Enum",
+ "symbols" : ["Public","Private"]
+}
Added: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java Mon Nov 19 20:57:09 2012
@@ -0,0 +1,60 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.avro.mojo;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.List;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+
+/**
+ * Base class for all Arvo mojo test classes.
+ *
+ * @author saden
+ */
+public class AbstractAvroMojoTest extends AbstractMojoTestCase {
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ /**
+ * Assert the existence files in the given given directory.
+ *
+ * @param directory the directory being checked
+ * @param files the files whose existence is being checked.
+ */
+ protected void assertFilesExist(File directory, String... files) {
+ assertNotNull(directory);
+ assertTrue(directory.exists());
+ assertNotNull(files);
+ assertTrue(files.length > 0);
+
+ List<String> dirList = Arrays.asList(directory.list());
+
+ for (String file : files) {
+ assertTrue("File " + file + " does not exist.", dirList.contains(file));
+ }
+ }
+}
Propchange: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/AbstractAvroMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java Mon Nov 19 20:57:09 2012
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.avro.mojo;
+
+import java.io.File;
+
+/**
+ * Test the IDL Protocol Mojo.
+ *
+ * @author saden
+ */
+public class TestIDLProtocolMojo extends AbstractAvroMojoTest {
+
+ protected File testPom = new File(getBasedir(),
+ "src/test/resources/unit/idl/pom.xml");
+
+ public void testIdlProtocolMojo() throws Exception {
+ IDLProtocolMojo mojo = (IDLProtocolMojo) lookupMojo("idl-protocol", testPom);
+
+ assertNotNull(mojo);
+ mojo.execute();
+
+ File outputDir = new File(getBasedir(), "target/test-harness/idl/test");
+ String[] generatedFiles = new String[]{"IdlPrivacy.java",
+ "IdlTest.java", "IdlUser.java"};
+
+ assertFilesExist(outputDir, generatedFiles);
+ }
+}
Propchange: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java Mon Nov 19 20:57:09 2012
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.avro.mojo;
+
+import java.io.File;
+
+/**
+ * Test the Protocol Mojo.
+ *
+ * @author saden
+ */
+public class TestProtocolMojo extends AbstractAvroMojoTest {
+
+ protected File testPom = new File(getBasedir(),
+ "src/test/resources/unit/protocol/pom.xml");
+
+ public void testProtocolMojo() throws Exception {
+ ProtocolMojo mojo = (ProtocolMojo) lookupMojo("protocol", testPom);
+
+ assertNotNull(mojo);
+ mojo.execute();
+
+ File outputDir = new File(getBasedir(), "target/test-harness/protocol/test");
+ String[] generatedFiles = new String[]{"ProtocolPrivacy.java",
+ "ProtocolTest.java", "ProtocolUser.java"};
+
+ assertFilesExist(outputDir, generatedFiles);
+ }
+}
Propchange: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestProtocolMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java Mon Nov 19 20:57:09 2012
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.avro.mojo;
+
+import java.io.File;
+
+/**
+ * Test the Schema Mojo.
+ *
+ * @author saden
+ */
+public class TestSchemaMojo extends AbstractAvroMojoTest {
+
+ protected File testPom = new File(getBasedir(),
+ "src/test/resources/unit/schema/pom.xml");
+
+ public void testSchemaMojo() throws Exception {
+ SchemaMojo mojo = (SchemaMojo) lookupMojo("schema", testPom);
+
+ assertNotNull(mojo);
+ mojo.execute();
+
+ File outputDir = new File(getBasedir(), "target/test-harness/schema/test");
+ String[] generatedFiles = new String[]{"PrivacyDirectImport.java",
+ "PrivacyImport.java", "SchemaPrivacy.java", "SchemaUser.java"};
+
+ assertFilesExist(outputDir, generatedFiles);
+ }
+}
Propchange: avro/trunk/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestSchemaMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml Mon Nov 19 20:57:09 2012
@@ -0,0 +1,48 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>avro-parent</artifactId>
+ <groupId>org.apache.avro</groupId>
+ <version>1.7.3-SNAPSHOT</version>
+ <relativePath>../../../../../../../../../</relativePath>
+ </parent>
+ <artifactId>avro-maven-plugin-test</artifactId>
+ <packaging>jar</packaging>
+
+ <name>testproject</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>avro-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>idl</id>
+ <goals>
+ <goal>idl-protocol</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <sourceDirectory>${basedir}/src/test/avro</sourceDirectory>
+ <outputDirectory>${basedir}/target/test-harness/idl</outputDirectory>
+ <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub"/>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>1.7.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-mapper-asl</artifactId>
+ <version>1.9.10</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml Mon Nov 19 20:57:09 2012
@@ -0,0 +1,48 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>avro-parent</artifactId>
+ <groupId>org.apache.avro</groupId>
+ <version>1.7.3-SNAPSHOT</version>
+ <relativePath>../../../../../../../../../</relativePath>
+ </parent>
+ <artifactId>avro-maven-plugin-test</artifactId>
+ <packaging>jar</packaging>
+
+ <name>testproject</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>avro-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>protocol</id>
+ <goals>
+ <goal>protocol</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <sourceDirectory>${basedir}/src/test/avro</sourceDirectory>
+ <outputDirectory>${basedir}/target/test-harness/protocol</outputDirectory>
+ <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub"/>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>1.7.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-mapper-asl</artifactId>
+ <version>1.9.10</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml?rev=1411406&view=auto
==============================================================================
--- avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml (added)
+++ avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml Mon Nov 19 20:57:09 2012
@@ -0,0 +1,47 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>avro-maven-plugin-test</artifactId>
+ <packaging>jar</packaging>
+
+ <name>testproject</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>avro-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>schema</id>
+ <goals>
+ <goal>schema</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <sourceDirectory>${basedir}/src/test/avro</sourceDirectory>
+ <outputDirectory>${basedir}/target/test-harness/schema</outputDirectory>
+ <imports>
+ <import>${basedir}/src/test/avro/imports</import>
+ <import>${basedir}/src/test/avro/directImport/PrivacyDirectImport.avsc</import>
+ </imports>
+ <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub"/>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>1.7.3-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-mapper-asl</artifactId>
+ <version>1.9.10</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: avro/trunk/lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native