idea提示错误:没有为模块 XXXX 指定输出路径

作者
2024-05-14阅读 1243

1、背景

导入了一个项目,发现idea报错

没有为模块 selenium-demo 指定输出路径

null

2、解决方式

(1)如果不是springboot项目的话,应该是以下的解决方式。既然提示没有输出路径,那么设置上路径即可

菜单:文件 - > 项目结构

null

(2)我的是springboot项目,主要是检查一下pom文件,基本上是配置上不正确

缺少spring-boot-maven-plugin插件

在pom.xml中加上一下配置

      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
          <fork>true</fork>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>build-info</goal>
            </goals>
          </execution>
        </executions>
      </plugin>



全部评论