Maven 错误:无效的目标发行版:11.0.2

Maven Java About 320 words

打包错误

mvn -DskipTests clean package

解决方法

pom.xml中添加Java版本:<java.version>11</java.version>

<properties>
    <java.version>11</java.version>
    <maven.compiler.source>11</maven.compiler.source>
    <maven.compiler.target>11</maven.compiler.target>
</properties>
Views: 1,361 · Posted: 2022-07-19

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh