如何修复转储文件(如果存在)[日期].dump,[日期]-jvmRun[N].dump和[日期]. dumpstream.,同时使用maven surefire插件3.0.0-M4

igetnqfo  于 2022-11-02  发布在  Maven
关注(0)|答案(4)|浏览(195)

{"header":{"type":"auto_translation","ret_code":"error","time_cost":1200.0,"request_id":"b8b86e525a7811eda5f929aa07da9b03"},"message":"Translation error (20001), please retry later. Detail: RuntimeException - The length of source sentence is too long!!! - {\n "header": {\n "time_cost": 0.000347,\n "type": "auto_translation",\n "ret_code": "The length of source sentence is too long!!!"\n }\n}"}

tf7tbtn2

tf7tbtn21#

您可以尝试以下操作:将此代码添加到pom.xml的插件部分

<plugin>  
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-surefire-plugin</artifactId>  
    <version>2.22.2</version>  
    <configuration>  
    <skipTests>true</skipTests>  
    </configuration>  
</plugin>

你可以看到这个链接https://programmerah.com/solved-there-are-test-failures-please-refer-to-djava_studyspringbootspringboot-sugon-3targetsurefire-reports-for-the-individual-test-results-28892/

w8biq8rn

w8biq8rn2#

这一问题可以通过改变MVN的环境执行来解决。
请尝试以下命令:

- apt install locales-all
- update-locale LANG=fr_FR.UTF-8 LANGUAGE
- update-locale LC_TIME=fr_FR.UTF-8
- update-locale LANG="fr_FR.UTF-8" LANGUAGE="fr_FR"
- dpkg-reconfigure locales
- apt-get update >/dev/null
- apt-get install -y locales >/dev/null
- echo "fr_FR UTF-8" > /etc/locale.gen
- locale-gen fr_FR.UTF-8
- export LANG=fr_FR.UTF-8
- export LANGUAGE=fr_FR:fr
- export LC_ALL=fr_FR.UTF-8
wixjitnu

wixjitnu3#

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<skip>true</skip>
 </configuration>
</plugin>
cetgtptt

cetgtptt4#

我遇到了这个错误,它的发生是因为一个失败的单元测试。所以,你只需要检查失败的单元测试,并使它通过,以绕过这个错误。

相关问题