下载地址是:
https://github.com/halo-dev/console
https://github.com/halo-dev/halo
console打包没有问题,放在src/main/resources/console后继续打包halo的时候会报错:
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:47: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
private final ThemePathPolicy themePathPolicy;
^
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:47: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
private final ThemePathPolicy themePathPolicy;
^
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:47: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
private final ThemePathPolicy themePathPolicy;
^
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:47: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
private final ThemePathPolicy themePathPolicy;
^
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:47: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
private final ThemePathPolicy themePathPolicy;
^
E:\halo\2\halo\src\main\java\run\halo\app\core\extension\reconciler\ThemeReconciler.java:59: 警告: [removal] run.halo.app.theme 中的 ThemePathPolicy 已过时, 且标记为待删除
themePathPolicy = new ThemePathPolicy(haloProperties.getWorkDir());
^
E:\halo\2\halo\src\main\java\run\halo\app\extension\router\ExtensionRouterFunctionFactory.java:57: 警告: [removal] run.halo.app.extension.router 中的 ListRequest 已过时, 且标记为待删除
QueryParamBuildUtil.buildParametersFromType(builder, ListRequest.class);
^
E:\halo\2\halo\src\main\java\run\halo\app\security\authorization\DefaultRuleResolver.java:56: 警告: [removal] AuthorizationRuleResolver 中的 visitRulesFor(UserDetails,RuleAccumulator) 已过时, 且标记为待删除
public void visitRulesFor(UserDetails user, RuleAccumulator visitor) {
^
E:\halo\2\halo\src\main\java\run\halo\app\security\authorization\DefaultRuleResolver.java:41: 警告: [removal] AuthorizationRuleResolver 中的 rulesFor(UserDetails) 已过时, 且标记为待删除
public PolicyRuleList rulesFor(UserDetails user) {
^
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
9 个警告
Task :generateGitProperties FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':generateGitProperties'.
Error while evaluating property 'generatedProperties' of task ':generateGitProperties'
No Git repository found.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 7s
3 actionable tasks: 3 executed
请问这个是什么原因呢?该如何解决