maven-gae-plugin,如何将我的类打包为 JAR?

发布于 2024-12-13 06:37:56 字数 307 浏览 3 评论 0原文

显然打包效率更高您自己的类和资源作为 maven-gae-plugin 生成的 AppEngine WAR 文件中的 JAR。

我该怎么做?我尝试在 pom.xml 文件中的 waven-war-plugin 配置中设置 true 但这没有效果。

Apparently its much more efficient to package your own classes and resources as a JAR inside the AppEngine WAR file generateed by the maven-gae-plugin.

How do I do this? I tried setting <archiveClasses>true</archiveClasses> in the config for the waven-war-plugin in the pom.xml file but this had no effect.

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

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

发布评论

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

评论(1

稚然 2024-12-20 06:37:56

您可以:

  1. 将代码拆分为两个项目 - core 和 www
  2. 让 core 仅包含类。将打包设置为 jar
  3. 让 www 只有 JSP、资源、xml 和其他配置文件。使其依赖于核心项目。将包装设置为战争。

You can:

  1. Split the code in two project - core and www
  2. Let core has only the classes. Set the packaging to jar
  3. Let www has only the JSPs, resources, xml and other config files. Make it dependent on the core project. Set the packaging to war.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文