一,项目技术栈
通过开源的halo搭建,项目的github地址:github,jdk1.8,gradle管理项目jar包
二,出现的相关问题及处理办法
1.通过github上拉取完项目后,导入idea后,项目下载jar包失败:
解决:找到 C:\Users\yzsdt.gradle\caches\modules-2\files-2.1\com.google.zxing\core\3.4.0\b7eab116a61512d8b669efcd69446cc45243bd28\zxing-parent-3.4.0.pom文件,将里面的标签写成全路径,并创建一个空android.jar(任意地方创建一个txt文件,改名为jar文件)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${android.platform}</version>
<scope>system</scope>
<!-- ANDROID_HOME must be absolute, but redundant leading / may help Gradle Spring Boot plugin -->
<!-- <systemPath>/${env.ANDROID_HOME}/platforms/android-${android.platform}/android.jar</systemPath> -->
<systemPath>C:/Users/weijiuzhu/.gradle/caches/modules-2/files-2.1</systemPath>
</dependency>
</dependencies>
</dependencyManagement>
2.主题安装
通过官网下载相关主题:主题仓库,替换项目的anatole文件
修改文件夹下的theme.yaml文件的id行,同时修改HaloConst.java文件的DEFAULT_THEME_ID参数和id值一致
id: weidashi_anatole
name: Fantastic
author:
name: Quinn
website: https://github.com/imkundev
description:
logo:
website: https://www.imkun.dev
repo: https://github.com/halo-dev/halo-theme-imkundev
version: 1.2.0
require: 1.3.0
public final static String DEFAULT_THEME_ID = "weidashi_anatole";