Trying to build with ./mvnw clean install fails
See original GitHub issueHello,
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 README.md 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/ReportView.java:25: 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:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you’re probably running on JDK 8. I use 14, but 11+ should work.
@F43nd1r thank you for the explanation for the choice of the package manager and its limitation with passwords!