[ https://issues.apache.org/jira/browse/THRIFT-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862508#comment-15862508 ]
Manasi Vartak commented on THRIFT-4083: --------------------------------------- I switched to thrift-maven-plugin as recommended above. The plugin is generating code for Java 1.7; however, our other sources are for Java 1.8 so when I build with Java 1.8, the compiler is unable to find any of the packages/classes that are generated by thrift (Error: "package xyz does not exist"). On the other hand, dropping the Java version 1.7 doesn't work because the code uses Java 1.8 features such as lambdas. Can you update the dependency to build with Java 1.8? Or is there a suggested workaround? Thanks! > maven-thrift-plugin doesn't work with thrift 0.10.0 > --------------------------------------------------- > > Key: THRIFT-4083 > URL: https://issues.apache.org/jira/browse/THRIFT-4083 > Project: Thrift > Issue Type: Dependency upgrade > Affects Versions: 0.10.0 > Environment: Found on OS-X > Reporter: Manasi Vartak > > maven-thrift-plugin (0.1.10) doesn't work with thrift 0.10.0. > When compiling thrift sources (which worked with 0.9.3), the plugin throws > the following error: > [INFO] --- maven-thrift-plugin:0.1.11:compile (thrift-sources) @ project --- > [ERROR] thrift failed output: > [ERROR] thrift failed error: [FAILURE:generation:1] Error: unknown option > java:hashcode -- This message was sent by Atlassian JIRA (v6.3.15#6346)