Eclipse 的 Maven 目录结构中缺少目录

发布于 2024-09-06 16:51:26 字数 532 浏览 3 评论 0原文

最近在Ubuntu下搭建了一个j2ee开发环境:Eclipse(Helios),使用maven插件(m2eclipse)。

当我尝试创建 Maven 项目时,它告诉我选择一个“Archetype”。 然后,我选择带有 GroupId 的 Archetype:“org.apache.maven.archetypes” 和 ArctifactId :“maven-archetype-quickstart”(我也尝试使用 followinf artifactIds “maven-archetype-mojo”“maven-archetype-j2ee-simple”,......)。

然后,它创建一个标准的 Maven 目录结构。

我添加了加载“persistence-api-1.0.jar”的“javax.persitence”Maven 依赖项。

但我找不到“src/main/ressources”和“src/test/ressources”来访问“persistence.xml”文件。

这是一个错误吗?我应该手动创建它吗?

谢谢您的回答;)

I recently set up a j2ee development environment under Ubuntu: Eclipse (Helios) with the maven plugin (m2eclipse).

When I try to create a maven project, it tells me to select an "Archetype".
Then, I select an Archetype with a GroupId : "org.apache.maven.archetypes" and the
ArctifactId : "maven-archetype-quickstart" (I tried also with the followinf artifactIds
"maven-archetype-mojo" "maven-archetype-j2ee-simple", ....).

Then, it creates a standard maven directory structure.

I added the "javax.perssitence" Maven Dependency that load the "persistence-api-1.0.jar".

But I can't find the "src/main/ressources" and "src/test/ressources" to access to the "persistence.xml" file.

Is it a bug? Should I create it manually?

Thank you for your answers ;)

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

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

发布评论

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

评论(1

路弥 2024-09-13 16:51:26

不,这不是一个错误,只需手动创建它们并在 Eclipse 下更新项目配置(通过在项目上右键单击Maven >更新项目配置

No, it's not a bug, just create them manually and update the project configuration under Eclipse (via right-click on the project and Maven > Update Project Configuration)

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