简体   繁体   English

没有在Spring Tool Suite中下载依赖项

[英]Dependencies not downloaded in Spring Tool Suite

I am creating a Spring Starter Project using Spring Tool Suite. 我正在使用Spring Tool Suite创建一个Spring Starter项目。 I selected JPA, Web and Derby Database dependencies. 我选择了JPA,Web和Derby数据库依赖项。 When my new project is created the src folder displays a "?" 创建新项目时, src文件夹显示“?” mark as shown in the screenshot. 标记,如屏幕截图所示。 What am I missing? 我想念什么? Why the question mark? 为什么问号?

在此处输入图片说明

Note that there's an entry called "Maven Dependencies" right above those folders. 请注意,在这些文件夹的上方有一个名为“ Maven Dependencies”的条目。 Maven doesn't download dependencies into your project, it puts them in your local repository (generally ~/.m2/repository ). Maven不会将依赖项下载您的项目中,而是将它们放入本地存储库(通常为~/.m2/repository )中。

The question marks have nothing to do with dependencies--they're Eclipse's indication that you haven't added those entries to source control. 问号与依赖关系无关-它们表示Eclipse尚未将这些条目添加到源代码管理中。 (Contrast with the mvnw and POM entries, which have a stylized disk pack to show they are in source control.) (与mvnw和POM条目进行对比,后者具有样式化的磁盘包以显示它们在源代码管理中。)

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

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