yoh*_*oho 5 java maven visual-studio-code
我对 vscode 和一个 maven 项目有问题,其中为特定配置文件声明了一些依赖项,如下所示:
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
...
Run Code Online (Sandbox Code Playgroud)
当我在 Visual Studio 代码中打开此项目时,编译失败,因为无法解析为此配置文件(例如“dev”)声明的依赖项。
笔记:
如何让 vscode 加载我的 maven“dev”配置文件的依赖项?
| 归档时间: |
|
| 查看次数: |
2446 次 |
| 最近记录: |