如何将没有aspectj文件的roo项目打包成jar

发布于 2024-09-18 19:54:09 字数 278 浏览 5 评论 0原文

您好,我正在使用 Spring Roo 创建一个访问数据库的服务,仅此而已。 因此,当我尝试使用 Eclipse 导出到 jar 时,该 jar 不包含一个 java 类, 但这些文件:
联系方式.class
Contact_Roo_Configurable.class
Contact_Roo_Entity.class
Contact_Roo_ToString.class
Contact_Roo_JavaBean.class
我知道这些是 AspectJ 文件,但为什么不编译成一个文件。

Hi I am using Spring Roo to create a service to access the data base, just that.
so, when I try to export to a jar using eclipse, the jar not contain one java class,
but these files:
Contact.class
Contact_Roo_Configurable.class
Contact_Roo_Entity.class
Contact_Roo_ToString.class
Contact_Roo_JavaBean.class
I know these was AspectJ files but why are not compiled into one file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还如梦归 2024-09-25 19:54:09

Roo 在幕后使用 AspectJ 来管理所有不属于业务逻辑的粘合剂。在 Eclipse 内部,这些文件存在,但被隐藏。这些文件是独立的(并且它们生成独立的类文件)这一事实应该不会对程序的操作产生真正的影响。

但是,如果您确实想删除这些文件,则可以进行推送重构以删除所有 roo 工件。请注意,这是一种单向转换。一旦推入,roo 就不可能再管理您的项目了。

Roo uses AspectJ behind the scenes to manage all of the glue that are not part of the business logic. Inside of Eclipse, these files exist, but are hidden. The fact that these files are separate (and that they produce separate class files) should have no real affect on the operation of your program.

However, if you do want to get rid of these files, you can do a push in refactoring to remove all of the roo artifacts. Just note that this is a one way transformation. Once pushed-in, it is not possible for roo to manage your project any more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文