Tag Archives: IDEA Package Spring Boot Project Error

[Solved] IDEA Package Spring Boot Project Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project randomaward: Input length = 1 -> [Help 1]

Error in idea packaging spring boot project: failed to execute goal org.apache.maven.plugins: Maven resources plugin: 3.2.0: resources (default resources) on project random Watch: input length = 1 – & gt; [Help 1]

I encountered such a problem when packaging the project today.

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project randomaward: Input length = 1 -> [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

Solution:

1. Confirm whether it is in UTF-8 format

2. After changing UTF-8, application.yml will change

The following errors may be reported when starting the project:

org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1

Cause of problem:

The application.yml file is incorrectly written. Generally, the reason is that there are many or few spaces. Check the spaces
the code of application.yml has changed, and the problems of GBK and UTF-8 coding formats
solution:
the fastest and most effective way is to copy everything on application.yml, delete the current application.yml file, and create a new application.yml, Paste it
note: no matter whether an error is reported or not, it is best to delete application.yml and rebuild it again (it is valid for personal trial).

3. Skip test mode

4. Start packing

Successful as shown in the figure:

Here, the jar is packaged!