[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (defaul
在 <project> 的根层级下加。
·
问题
maven打包时

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project bms-common: Compilation failure [ERROR] An unknown compilation problem occurred [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
原因

解决
把分隔符改成动态的
<bootclasspath>${env.JAVA_HOME}/jre/lib/rt.jar;${env.JAVA_HOME}/jre/lib/jce.jar</bootclasspath>
在 <project> 的根层级下加
<profiles>
<!-- Windows Profile -->
<profile>
<id>windows</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<path.separator>;</path.separator>
</properties>
</profile>
<!-- Linux or macOS Profile -->
<profile>
<id>unix</id>
<activation>
<os>
<family>Unix</family>
</os>
</activation>
<properties>
<path.separator>:</path.separator>
</properties>
</profile>
</profiles>
更多推荐



所有评论(0)