Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1497

[Java] javax annotations dependency missing for Java 11

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When trying to build with OpenJDK 11, I get errors due to the Generated annotation not being resolved:

      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ parquet-format-structures ---
      
      [INFO] Changes detected - recompiling the module!
      
      [INFO] Compiling 51 source files to /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/classes
      
      [INFO] -------------------------------------------------------------
      
      [WARNING] COMPILATION WARNING :
      
      [INFO] -------------------------------------------------------------
      
      [WARNING] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/src/main/java/org/apache/parquet/format/event/Consumers.java: /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/src/main/java/org/apache/parquet/format/event/Consumers.java uses or overrides a deprecated API.
      
      [WARNING] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/src/main/java/org/apache/parquet/format/event/Consumers.java: Recompile with -Xlint:deprecation for details.
      
      [INFO] 2 warnings
      
      [INFO] -------------------------------------------------------------
      
      [INFO] -------------------------------------------------------------
      
      [ERROR] COMPILATION ERROR :
      
      [INFO] -------------------------------------------------------------
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/NanoSeconds.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/NanoSeconds.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/StringType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/StringType.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DataPageHeaderV2.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DataPageHeaderV2.java:[43,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/Statistics.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/Statistics.java:[41,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/SortingColumn.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/SortingColumn.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TimestampType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TimestampType.java:[42,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TimeUnit.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MilliSeconds.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MilliSeconds.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MicroSeconds.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MicroSeconds.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DecimalType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DecimalType.java:[45,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/LogicalType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MapType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/MapType.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ListType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ListType.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/EnumType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/EnumType.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DateType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DateType.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TimeType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TimeType.java:[42,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/IntType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/IntType.java:[44,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/NullType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/NullType.java:[44,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/JsonType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/JsonType.java:[42,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/BsonType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/BsonType.java:[42,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/UUIDType.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/UUIDType.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/IndexPageHeader.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/IndexPageHeader.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageEncodingStats.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageEncodingStats.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnChunk.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnChunk.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnMetaData.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnMetaData.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/KeyValue.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/KeyValue.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageLocation.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageLocation.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DictionaryPageHeader.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DictionaryPageHeader.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageHeader.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/PageHeader.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DataPageHeader.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/DataPageHeader.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/FileMetaData.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/FileMetaData.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnIndex.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnIndex.java:[41,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/OffsetIndex.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/OffsetIndex.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/SchemaElement.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/SchemaElement.java:[43,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/RowGroup.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/RowGroup.java:[37,2] cannot find symbol
      
        symbol: class Generated
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/ColumnOrder.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TypeDefinedOrder.java:[32,24] package javax.annotation does not exist
      
      [ERROR] /Users/uwe/tmp/apache-parquet-1.11.0/parquet-format-structures/target/generated-sources/thrift/org/apache/parquet/format/TypeDefinedOrder.java:[40,2] cannot find symbol
      
        symbol: class Generated
      
      [INFO] 71 errors

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            uwe Uwe Korn
            uwe Uwe Korn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment