简体   繁体   English

在Java Play SBT中进行IntelliJ更新后项目名称无效

[英]Invalid project name after IntelliJ update in Java Play SBT

I've recently updated IntelliJ to version 2018.2, and since the update, I keep getting this error when trying to start my Java Play SBT project: 我最近将IntelliJ更新到版本2018.2,自更新以来,我在尝试启动Java Play SBT项目时遇到此错误:

BUILD_NUMBER not defined, setting version: 
sbt.SettingKey$$anon$4@2ad8aeb5
[info] Loading settings from build.sbt ...
BUILD_NUMBER not defined, setting version: sbt.SettingKey$$anon$4@2ad8aeb5
[info] Set current project to [PROJECT_NAME] (in build file:/Users/username/Documents/Repos/[PROJECT_NAME]/)
[error] Not a valid project ID: [PROJECT_NAME]
[error] project [PROJECT_NAME]
[error]                      ^

I cannot find out why. 我找不到原因。 I didn't change anything in my build.sbt or plugins.sbt files. 我没有更改build.sbtplugins.sbt文件中的任何内容。

Probably your project structure was changed after update. 更新后,您的项目结构可能已更改。 Check your project modules. 检查您的项目模块。 In my case root module was renamed to project-id . 在我的情况下, root模块被重命名为project-id Renaming back that module to root (this was specified in my run configuration) solved the issue. 将该模块重命名为root (这在我的运行配置中指定)解决了该问题。

在此输入图像描述 在此输入图像描述

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

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