有没有人设法让 Simple Workflow 和 Flow Framework 的 AWS 开发工具包示例正常工作?我已经按照 Eclipse 设置说明 (http://docs.amazonwebservices.com/amazonswf/latest/awsflowguide/setup.html) 进行了操作,但没有生成任何类。结果,我的项目无法构建,因为到处都缺少 *Client 类。
我已经对 SDK 中的示例和第一次登录 SWF 管理控制台时提供的 ImageProcessing
示例进行了尝试。同事同样无法让它发挥作用。
最佳答案
在这种情况下,我遇到了两个(可能不相关的)问题:
1) 你可能仍然错过了一个重要的先决条件(很容易错过,我也做过;) - 见 Setting up the Development Environment :
If you are using the Eclipse development environment, [...] install the AWS Toolkit for Eclipse using the update site http://aws.amazon.com/eclipse/. Be sure to install the Amazon Simple Workflow Service (SWF) Tools. Among other things, this plug-in processes the annotations and generates the client classes. [emphasis mine]
一旦我修复了我的这个疏忽,编译时编织就开始按预期在构建时生成类。
2) 我的 initial answer解决了由于 SpringSource Tool Suite (STS) 提供的 AspectJ 之间的明显冲突而导致 AspectJ 运行时丢失的后续问题。和 AspectJ developer tools for Eclipse .我还没有弄清楚这是否只是我的 STS 安装的本地问题 - 请参阅我的答案以了解详细信息,以防这种冲突也适用于您。
关于amazon-web-services - AWS SWF 流框架 - Eclipse AspectJ 加载时编织,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9412200/