【发布时间】:2020-11-25 00:01:52
【问题描述】:
我正在使用 JDK 11 为 spring-boot 应用程序设置管道。运行管道时出现以下错误。
[错误] 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project xxxxx: Fatal error compile: invalid target release: 11 -> [帮助1]。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<verbose>true</verbose>
</configuration>
</plugin>
但这在本地部署命令中运行良好:mvn clean package spring-boot:run。
谁能告诉我为什么这个问题只在管道中发生?
【问题讨论】:
标签: azure spring-boot maven