Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build succeeds but file is unusable on alpine/docker #397

Closed
Haui1112 opened this issue Jun 26, 2024 · 1 comment
Closed

Build succeeds but file is unusable on alpine/docker #397

Haui1112 opened this issue Jun 26, 2024 · 1 comment

Comments

@Haui1112
Copy link

Hi, thank you for making this! I'm trying to essentially make a runner that builds the app from source and outputs it. Sadly, the output is not usable as of now:

Error

"Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.slf4j.Logger.error(String, java.lang.Throwable)" because "org.mustangproject.commandline.Main.LOGGER" is null
        at org.mustangproject.commandline.Main.main(Main.java:442)"

and

no main manifest attribute, in original-Mustang-CLI-3.0.0-SNAPSHOT.jar

Expected behavior

The app runs normally

Steps to reproduce

  1. sudo docker run --rm -it alpine
  2. apk add openjdk21 maven git --no-cache &&
    git clone https://github.com/ZUGFeRD/mustangproject.git &&
    cd mustangproject &&
    mvn clean install
  3. cd Mustang-CLI/target
  4. java -jar Mustang-CLI-3.0.0-SNAPSHOT.jar
  5. see error "Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.slf4j.Logger.error(String, java.lang.Throwable)" because "org.mustangproject.commandline.Main.LOGGER" is null
    at org.mustangproject.commandline.Main.main(Main.java:442)"
  6. java -jar original-Mustang-CLI-3.0.0-SNAPSHOT.jar
  7. see error "no main manifest attribute, in original-Mustang-CLI-3.0.0-SNAPSHOT.jar"
@jstaerk
Copy link
Collaborator

jstaerk commented Jun 26, 2024

thanks I just fixed that. However, the master is not yet stable, maybe you rever to the branch of a release version?

@jstaerk jstaerk closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants