小编Al *_*rth的帖子

另一个 Maven “不再支持源选项 6。使用 7 或更高版本。”

我看到这个问题的很多答案,但它们对我不起作用。我在 PC 上安装了 Visual Studion Code、最新版本的 Java 和 Maven,并且能够在 PC 上使用 Maven 成功构建我的应用程序。然后我在 Mac 上执行了相同的步骤,但出现此错误。

Macos、Visual Studio Code、Maven 和 Java 的新版本。就像其他人所说的那样,我将这些行添加到我的 pom.xml 文件的属性部分:

    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
Run Code Online (Sandbox Code Playgroud)

仍然得到同样的错误。这是 mvn 构建的相关输出:

alberts-mbp:com.versabuilt.rushmore.process albertyoungwerth$ mvn package
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------< com.versabuilt.rushmore.process:VersaBuiltProcess >----------
[INFO] Building VersaBuilt Process 0.2.18
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ VersaBuiltProcess ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO] 
[INFO] --- …
Run Code Online (Sandbox Code Playgroud)

java macos maven visual-studio-code

11
推荐指数
2
解决办法
2万
查看次数

标签 统计

java ×1

macos ×1

maven ×1

visual-studio-code ×1