Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to build with ./mvnw clean install fails

See original GitHub issue


I wonder how I have to build the jar/war? In old issues I see that there might have been a Gradle build in the past? But there are no build.gradle files (anymore?). Maybe my environment needs some specific setup? If so, could it be described in the how to build?

I see this error messages appear when running ./mvnw clean install in the top-level directory

... [removed output that indicates no issues]
[INFO] --- kotlin-maven-plugin:1.4.0:kapt (kapt) @ acrarium ---
[INFO] Applied plugin: 'spring'
[INFO] Applied plugin: 'jpa'
[INFO] Applied plugin: 'all-open'
[INFO] Applied plugin: 'no-arg'
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/target/kaptStubs/compile/com/faendir/acra/ui/view/report/ error: cannot access PrettyTime
    private final org.xbib.time.pretty.PrettyTime prettyTime = null;
  bad class file: /Users/franchan/.m2/repository/org/xbib/time/2.1.0/time-2.1.0.jar(org/xbib/time/pretty/PrettyTime.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/src/main/kotlin/com/faendir/acra/model/view/Queries.kt: (18, 31) Unresolved reference: QApp
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/src/main/kotlin/com/faendir/acra/model/view/Queries.kt: (19, 31) Unresolved reference: QBug
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/src/main/kotlin/com/faendir/acra/model/view/Queries.kt: (20, 31) Unresolved reference: QReport
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/src/main/kotlin/com/faendir/acra/model/view/Queries.kt: (21, 31) Unresolved reference: QStacktrace
[ERROR] /Users/franchan/dev/acrarium/Acrarium/acrarium/src/main/kotlin/com/faendir/acra/model/view/Queries.kt: (31, 46) Unresolved reference: QBug
... [several similar errors]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

F43nd1rcommented, Sep 6, 2020

you’re probably running on JDK 8. I use 14, but 11+ should work.

aptly-iocommented, Apr 5, 2021

@F43nd1r thank you for the explanation for the choice of the package manager and its limitation with passwords!

Read more comments on GitHub >

github_iconTop Results From Across the Web

mvn clean install throwing build failure error - maven
it says that it cannot find (resolve) jasmine-maven-plugin (or one of its dependencies). it cannot find it in the maven repo. · Could...
Read more >
mvn clean install - a short guide to Maven - Marco Behler
You are using the clean command, which will delete all previously compiled Java .class files and resources (like .properties) in your project.
Read more >
Solved: Not able to build project using maven command
Not able to build project using maven command -mvn clean install and I am getting the below error.
Read more >
"mvn clean install" Build Failure - Ask OpenMRS
When I am running the “mvn clean install” command, eventually during the API tests the build fails and I am not sure why....
Read more >
How to Setup Maven (what is mvn clean install) - YouTube
This video explains how to set up Maven on Windows and use mvn clean install command on spring bootMicroservices Tutorials here: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found