Skip to content

Unable to build the code - MalformedInputException error #363

@jigneshkvp

Description

@jigneshkvp

Unable to build the code - MalformedInputException error

Issue Summary

  • Cloned the repository and ran the mvn command to build the package
  • Following error occurs
[INFO] --- resources:3.3.0:resources (default-resources) @ demo ---
[WARNING] File encoding has not been set, using platform encoding UTF-8. Build is platform dependent!
[WARNING] See https://maven.apache.org/general.html#encoding-warning
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 537 resources
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:33 min
[INFO] Finished at: 2023-10-09T12:27:06+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.0:resources (default-resources) on project demo: 
filtering /Users/jigneshkvp/kafka-es/kafka-java-vertx-starter/src/main/resources/webroot/fonts/IBMPlexSans-SemiBold.woff2 
to /Users/jigneshkvp/kafka-es/kafka-java-vertx-starter/target/classes/webroot/fonts/IBMPlexSans-SemiBold.woff2 
failed with MalformedInputException: 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

Environment

  • OS: macOS

How To Reproduce This Issue

  1. Clone the repo on your local machine
  2. Run the command mvn package

Expected Behaviour

  • Should have built successfully

Relevant Info

> mvn --version
Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
Maven home: /usr/local/Cellar/maven/3.9.0/libexec
Java version: 19.0.2, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_SE, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "x86_64", family: "mac"

> npm --version
9.1.1


> javac --version
javac 19.0.2

> node --version
v14.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions