alibaba / alibaba/fastjson2

[BUG]fastjson@2.0.23出现编译错误

Open
#1,077 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 问题描述
*简要描述您碰到的问题。*
mvn install -DskipTests出现编译错误

### 环境信息
*请填写以下信息:*

- OS信息: CentOS 8.4.2105 4Core 3.10GHz
- JDK信息: Openjdk 1.8.0_191
- 版本信息:Fastjson2 2.0.23

### 重现步骤
*如何操作可以重现该问题:*

mvn install -DskipTests
```java
//可在此输入示例代码
[root@bigdata spack-src]# java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.191-b12, mixed mode)
```

### 期待的正确结果
*对您期望发生的结果进行清晰简洁的描述。*
编译成功

### 相关日志输出
*请复制并粘贴任何相关的日志输出。*
```console
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] fastjson2 [jar]
[INFO] fastjson2-extension [jar]
[INFO] adapter [jar]
[INFO] fastjson2-benchmark [jar]
[INFO] fastjson2-extension-spring5 [jar]
[INFO] example-spring-test [jar]
[INFO] fastjson1-compatible [jar]
[INFO] fastjson2-kotlin [jar]
[INFO] fastjson2-parent [pom]
[INFO]
[INFO] ------------------< com.alibaba.fastjson2:fastjson2 >-------------------
[INFO] Building fastjson2 2.0.23 [1/9]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:3.2.0:check (checkstyle) @ fastjson2 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] fastjson2 2.0.23 ................................... FAILURE [ 1.561 s]
[INFO] fastjson2-extension 2.0.23 ......................... SKIPPED
[INFO] adapter 2.0.23 ..................................... SKIPPED
[INFO] fastjson2-benchmark 2.0.23 ......................... SKIPPED
[INFO] fastjson2-extension-spring5 2.0.23 ................. SKIPPED
[INFO] example-spring-test 2.0.23 ......................... SKIPPED
[INFO] fastjson1-compatible 2.0.23 ........................ SKIPPED
[INFO] fastjson2-kotlin 2.0.23 ............................ SKIPPED
[INFO] fastjson2-parent 2.0.23-SNAPSHOT ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.946 s
[INFO] Finished at: 2023-01-16T11:16:53+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.2.0:check (checkstyle) on project fastjson2: Failed during checkstyle execution: Unable to find configuration file at location: src/checkstyle/fastjson2-checks.xml: Could not find resource 'src/checkstyle/fastjson2-checks.xml'. -> [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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
```

#### 附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*

Contributor guide

Open the contributing guide

Research direction

Start by running `mvn install -DskipTests` and inspect the Maven checkstyle configuration for the missing `src/checkstyle/fastjson2-checks.xml` resource. Confirm the build succeeds on the reported Java 8 environment after the configuration issue is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.