thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Gould (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4083) maven-thrift-plugin doesn't work with thrift 0.10.0
Date Sat, 11 Feb 2017 05:50:42 GMT

    [ https://issues.apache.org/jira/browse/THRIFT-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862235#comment-15862235
] 

Benjamin Gould commented on THRIFT-4083:
----------------------------------------

You're using an old version of the maven plugin (like 6 years old), and that version appears
to use a generator option (:hashcode) by default that disappeared in Thrift 0.9.2:

https://github.com/bgould/thrift/commit/acdac816659c88e7b8b601b4ad42dc43bf7d48e2

That plugin was contributed to ASF and is now part of Apache Thrift, and you can use the current
version by including the following in your configuration:

    <groupId>org.apache.thrift</groupId>
    <artifactId>thrift-maven-plugin</artifactId>
    <version>0.10.0</version>

Alternatively if you don't want to upgrade the plugin version in your project, you can explicitly
specify the generator in your configuration as "java" as opposed to the default of "java:hashcode"

> 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)

Mime
View raw message