java 环境 +斯卡拉 +在没有 Maven 的情况下在 Eclipse 中提升项目

发布于 2024-09-15 10:00:28 字数 347 浏览 1 评论 0原文

我试图了解设置项目的最佳方式是什么 这是 java 和 scala 的混合体,并且将使用 lift。 Lift 旨在通过码头嵌入另一个应用程序中运行。

我在 Eclipse 中工作很舒服并且也习惯了它的工作方式 使用 ant 作为构建工具。 我在 scala 和 lift 方面都是一个相对新手,并且感到困惑 关于不同的构建工具以及如何设置。 我不太了解maven,也没有真正看过sbt, 但这似乎是scala开发人员的选择,但我也是 依赖相当多的javacode。

任何建议、链接、教程或其他有关如何设置的信息 最好的环境,让我可以在 Eclipse 中舒适地工作 鉴于我的 scala/java/lift/jetty 也很容易构建版本 环境?

I'm trying to understand what's the best way to setup a project
that is a mix of java and scala and that will use lift.
Lift is intended to run embedded by jetty in another application.

I'm comfortable to work in Eclipse and also used to how it
works with ant as build tool.
I'm a relatively newbie in both scala and lift and get confused
about the different build tool and how to set up things.
I don't really understand maven and haven't really looked at sbt,
but it seem to be the choice of scala developers, but I'm also
dependent on quite some javacode.

Any suggestions, links, tutorials or else on how to setup
the best environment so I can work comfortably in Eclipse
and also build releases quite easily given my scala/java/lift/jetty
enrironment?

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

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

发布评论

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

评论(2

-残月青衣踏尘吟 2024-09-22 10:00:28

我想说,如果您习惯使用 Ant 作为构建工具,那么使用 Maven 应该是小菜一碟。它的主要优点是鼓励遵守约定,而不是进行大量配置,这意味着只要您遵循标准,任何大多数 Maven 项目的设置和使用都是轻而易举的。我强烈建议您投入时间来熟悉这个构建工具,因为它将是非常宝贵的经验/知识,您可以在您的 Java 职业生涯中继续使用。

除了 Maven 之外,如果您确信您和项目的其他开发人员都将使用 Eclipse,我建议使用 Eclipse 的内置项目管理基础设施。它在底层使用 Ant,因此您将能够利用您的经验从命令行运行/发布。您需要做的就是正常设置一个 eclipse Lift 项目,然后添加 scala 集成,请查看 Scala IDE 为 Eclipse 内部的 scala 开发提供了相当好的 IDE 支持。

祝你好运!

I would say that if you are comfortable using Ant as a build tool, Maven should be a piece of cake to use instead. It's main advantage is encouraging conforming to conventions rather than lots of configuration meaning that as long as you follow the standards, setup and usage of any most maven projects is a breeze. I strongly recommend that you invest the time to become familiar with this build tool because it will be very valuable experience/knowledge you can continue to use in your Java career.

With Maven aside, if you are convinced that you and the rest of the project's devs will all be using Eclipse, I would recommend using Eclipse's built in project management infrastructure. It uses Ant under the hood so you will be able to leverage you experience to also run/release from the command-line. All you need to do is set up a eclipse Lift project normally and then to add the scala integration, check out Scala IDE for pretty good IDE support of scala development inside of eclipse.

Good luck!

各自安好 2024-09-22 10:00:28

此截屏视频是我用来入门的。它以 SBT 模板的 git 存储库 开头,然后添加 Eclipsify sbt 插件 使其成为 Eclipse 项目。

This screencast is what I used to get started. It starts with a git repository for an SBT template and then adds the Eclipsify sbt plugin to make it into an Eclipse project.

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