java - 警告无法激活请求的配置文件 "pom.xml",因为它不存在

标签 java eclipse maven maven-profiles

我正在尝试运行 maven 目标:验证并不断收到:[警告] 无法激活请求的配置文件“pom.xml”,因为它不存在。

在我的 org.eclipse.m2e.core.prefs 中:

activeProfiles=pom.xml
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

我做错了什么?

最佳答案

  1. 右键单击您的项目
  2. 转到“运行方式”
  3. 转到“运行配置...”
  4. 当屏幕打开时,请从“配置文件:”行中删除单词“pom.xml”,然后单击“运行”。

项目现在将运行。

profile

关于java - 警告无法激活请求的配置文件 "pom.xml",因为它不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25232541/

相关文章:

java - 使用 Byte Buddy 将 DTO 转换为实体的注释

java - 使用 jsp request.getContextPath() 使 eclipse 无法识别 css 文件

java - 集成总线添加外部 jar 异常

java - Date.toString 不显示本地时区

android - 谷歌地图在 android 上不断出现黑屏

eclipse - 如何解决 Spring Data Maven 构建的 "Plugin execution not covered by lifecycle configuration"

maven - JUnit4 和 JUnit5 测试未在 IntelliJ 中运行

java - Spring Boot + Spring Data JPA + H2 :Error creating bean with name 'entityManagerFactory' defined in class path resource

Java SpringBoot : when inside a Docker the liquibase plugin runs with errors and does not execute changelogs

java - 线程联网导致空指针异常