avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radu Manole <manole.v.r...@gmail.com>
Subject idl-protocol compile error
Date Mon, 29 Jun 2015 22:28:09 GMT
I made some records types in separate avcs schemas, and I want to use them
to create a idl protocol. I when I compile them,idl-protocol plugin is
trying to create protocol interface from avcs files rather from avdl one.
Do I miss something?

<plugin>
      <groupId>org.apache.avro</groupId>
      <artifactId>avro-maven-plugin</artifactId>
      <version>1.7.7</version>
      <configuration>
        <stringType>String</stringType>
        <imports>
          <import>${basedir}/src/main/avro/types/AvroMimeType.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroReference.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroExtractorSpec.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroMetadata.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroTypeHandler.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroProductType.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroProduct.avsc</import>
          <import>${basedir}/src/main/avro/types/AvroFileTransferStatus.avsc</import>
        </imports>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>schema</goal>
            <goal>idl-protocol</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Catalog and Archive File Management Component 0.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- avro-maven-plugin:1.7.7:schema (default) @ cas-filemgr ---
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroMimeType.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroReference.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroExtractorSpec.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroMetadata.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroTypeHandler.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroProductType.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroProduct.avsc
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroFileTransferStatus.avsc
[INFO]
[INFO] --- avro-maven-plugin:1.7.7:idl-protocol (default) @ cas-filemgr ---
[INFO] Importing File:
/home/radu/gsoc/oodt/filemgr/src/main/avro/types/AvroMimeType.avsc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.942s
[INFO] Finished at: Tue Jun 30 01:18:29 EEST 2015
[INFO] Final Memory: 10M/211M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.avro:avro-maven-plugin:1.7.7:idl-protocol (default) on
project cas-filemgr: Error compiling protocol file AvroMimeType.avsc
to /home/radu/gsoc/oodt/filemgr/target/generated-sources/avro:
org.apache.avro.compiler.idl.ParseException: Encountered " "{" "{ ""
at line 1, column 1.
[ERROR] Was expecting one of:
[ERROR] "protocol" ...
[ERROR] "@" ...
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

<user@avro.apache.org>

Mime
View raw message