用于java的欺骗节俭生成器
我已经看到了两个生成与欺骗兼容的节俭的工具用于java的欺骗节俭生成器,java,generator,thrift,finagle,Java,Generator,Thrift,Finagle,我已经看到了两个生成与欺骗兼容的节俭的工具 她太老了?最新的是节俭0.9。我还能用吗 还是我应该使用?它在Scala上生成Java绑定 如果您的项目是Scala或Java,那么应该使用Scrooge。thrift-0.5.0-finagle已被弃用 你应该用史克鲁奇。Scrooge是由Twitter开发的。而欺骗也是由推特开发的 小贴士: scrooge maven插件的配置如下 <plugin> <groupId>com.twitter</groupId&
如果您的项目是Scala或Java,那么应该使用Scrooge。thrift-0.5.0-finagle已被弃用 你应该用史克鲁奇。Scrooge是由Twitter开发的。而欺骗也是由推特开发的 小贴士: scrooge maven插件的配置如下
<plugin>
<groupId>com.twitter</groupId>
<artifactId>scrooge-maven-plugin</artifactId>
<version>${scrooge.version}</version>
<configuration>
<thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
<includes>
<set>SyncWrite.thrift</set>
</includes>
<outputDirectory>${basedir}/src/main/gen/</outputDirectory>
<thriftNamespaceMappings>
<thriftNamespaceMapping>
<from>com.ganji.cdc.xapian.thrift.cpp</from>
<to>com.ganji.cdc.xapian.thrift.cpp</to>
</thriftNamespaceMapping>
</thriftNamespaceMappings>
<language>experimental-java</language>
<thriftOpts>
<thriftOpt>--finagle</thriftOpt>
</thriftOpts>
<buildExtractedThrift>false</buildExtractedThrift>
</configuration>
<executions>
<execution>
<id>thrift-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>thrift-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<finagle.version>6.25.0</finagle.version>
<scrooge.version>3.18.1</scrooge.version>
<!-- Finagle Start -->
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>scrooge-core_2.10</artifactId>
<version>${scrooge.version}</version>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>scrooge-runtime_2.10</artifactId>
<version>${scrooge.version}</version>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>util-core_2.10</artifactId>
<version>6.24.0</version>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finagle-core_2.10</artifactId>
<version>${finagle.version}</version>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finagle-thrift_2.10</artifactId>
<version>${finagle.version}</version>
</dependency>
<!-- Finagle End -->
仅此而已。这些版本可以更新吗?我看到一个github问题,libthrift被更新为0.10。几年前我使用了这个库或软件。我刚刚注意到他们把libthrift更新到了0.10。是的,我只是想从它开始,事实上,我遇到了这些答案,这就是为什么我问这个问题