在Eclipse版本2020-06中创建第一个Maven项目时遇到问题。

huangapple go评论63阅读模式
英文:

Facing Problems while creating First Maven Project in Eclipse version 2020-06

问题

在Eclipse 2020-06版本中创建Maven项目时,我面临三个问题:

  1. 在“文件”->“新建”下没有找到Maven项目选项,但在项目部分存在。在“文件”->“新建”中找不到Maven项目选项

  2. 在src/main/java下找不到任何*.java*文件。在src/main/java下没有.java文件

  3. 没有找到任何自定义原型。没有自定义原型可用

注意:我在Windows 7中使用JDK 1.8和JRE 1.8。

如何为Maven项目添加所有这些?请提供建议。

英文:

While creating a Maven Project in Eclipse version 2020-06, I'm facing three problems:-

  1. Not getting the Maven Project option under File->New, but it is present under Project Section. No Maven Project Option Present in File->New

  2. Not getting any .java file under src/main/java.
    No .java file under src/main/java

  3. Not getting any custom Archetype.
    No custom Archetype present

NOTE:- I am using JDK 1.8 and JRE 1.8 in Windows 7.

How to add all this for the Maven Project? Please suggest.

答案1

得分: 1

  1. 它就是这样工作的。有什么问题吗?
  2. 只需添加您的 .java 文件。右键单击 -> 新建 -> 类/接口/其他
  3. 我认为您需要等待。在右下角,我们可以看到“正在检索原型”。可能需要几分钟来下载所有内容。
英文:
  1. It just works like this. What is wrong with it?
  2. Just add your .java file. Right click -> new -> class/interface/whatever
  3. I think you have to wait. In the bottom-right corner we can see "Retrieving archetypes". It can take a few minutes to download everything

答案2

得分: 1

你可以使用 'Window > Perspective > Customize Perspective' 来自定义当前透视图。选择 'Shortcuts',然后 'Maven > Maven Project',将其添加到 'File > New'。

由您来创建新的Java文件。

英文:

You can use 'Window > Perspective > Customize Perspective' to customize the current perspective. Choose 'Shortcuts' and then 'Maven > Maven Project' to add that to 'File > New'.

It is up to you to create new Java files.

huangapple
  • 本文由 发表于 2020年7月22日 15:44:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63029253.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定