简体   繁体   English

Eclipse在创建新的Maven项目时未显示工件

[英]eclipse not showing artifacts when creating new maven project

在此处输入图片说明 Hello Guys, 大家好,

I am new to both maven and spring. 我是Maven和Spring的新手。 I want to create a maven based spring project and Here is what I am doing. 我想创建一个基于Maven的spring项目,这就是我正在做的事情。

New->other -> maven project -> next -> next -> ? 新建->其他-> Maven项目->下一个->下一个->?

Here I want to select a type of project with required folder set up. 在这里,我想选择一种具有所需文件夹设置的项目类型。 For example to set up a simple maven based java project i select maven-archetype-quickstart . 例如,要设置一个简单的基于Maven的Java项目,请选择maven-archetype-quickstart。 But coming to spring I dont know which artifact to select and I have the feeling that it is not showing all the artifacts. 但是到了春天,我不知道该选择哪个工件,并且我感觉它没有显示所有工件。 I am attaching some screenshots of that step where I got confused. 我附上我感到困惑的那一步的屏幕截图。

To be more brief: 1) If I want to get a spring project which artifact should I select 2) It looks like I am not able to see all artifacts here. 简而言之:1)如果我想获得一个Spring项目,我应该选择哪个工件2)看起来我在这里看不到所有工件。 For example when I look for spring I see only two artifacts. 例如,当我寻找春天时,我只会看到两个文物。 when I search for webapp i see only two artifacts. 当我搜索webapp时,我只看到两个工件。 Should I do any configurations? 我应该做任何配置吗? 3)How to know which artifact suites for example for basic spring project which artifact should I choose? 3)如何知道哪些工件套件,例如用于基本的春季项目,我应该选择哪个工件?

My questions might be pretty basic. 我的问题可能很基本。 Please help me 请帮我

Thanks 谢谢

我能看到的所有文物与春天有关的文物![] [2]

The appfuse-basic-spring archetype should create a single directory spring project. appfuse-basic-spring原型应创建一个目录spring项目。 This is probably what you want for a simple project. 这可能就是您想要的简单项目。

The appfuse-modular-spring should create a multi-module (read: parent module with several child modules) project. appfuse-modular-spring应该创建一个多模块(读取:具有多个子模块的父模块)项目。 For more information on multi-module maven projects I would suggest looking at chapters 6 and 7 of Maven by Example . 有关多模块Maven项目的更多信息,我建议您看一下Maven by Example的第6章和第7章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM