[ https://issues.apache.org/jira/browse/THRIFT-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862633#comment-15862633 ]
Manasi Vartak commented on THRIFT-4083: --------------------------------------- Couple of things point me to a Java issue but maybe there's something I'm missing: 1. If I just add the dependency for thrift-maven-plugin and not specify any source/target version in the pom, the default Java version, 1.5, is used and the compiler throws various errors such as: "lambda expressions are not supported in -source 1.5" 2. If I add the dependency and specify the source/target version=1.8 via the maven-compiler-plugin configuration, the compiler throws errors saying "package XYZ does not exist" or "cannot find symbol ABC" where XYZ is the namespace defined in the thrift file and ABC is a struct/function in the thrift file. 3. If I add the dependency but specify the source/target version=1.7, I don't get any thrift related issues (so the thrift classes have compiled, I assume) but I get errors regarding features not supported in java 1.7, e.g., "lambda expressions are not supported in -source 1.5". This makes me think that it is a version issue. I can share the pom file if that helps. > 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 > Priority: Minor > > 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)