Sathya
May 11, 2023, 10:55am
1
Hi
I am currently working on a maven project, so looking how could I use buildkite for a maven project…
I cam across the below maven project and added to my buildkite , but it did not work for me
GitHub - buildkite/maven-example: This example uses Maven to run tests, build a package, and then uploads the package as a Buildkite artifact using the current stable Buildkite Agent
I see below error.
Not sure if I am missing anything here? Do I need to install maven ? My understanding is that it is using the maven docker image.
Please advice.
Thanks
Sathya
paula
May 11, 2023, 12:45pm
2
Hey @Sathya !
The error from that particular step seems to be on line 50; apparently, you don’t have docker-compose installed. Can you check if that is the case?
hanks!
Sathya
May 12, 2023, 10:03am
3
Hi Paula,
I got docker-compose installed now. However I get this issue now. Please can you look into this?
Thanks
Sathya
paula
May 12, 2023, 10:36am
4
Hey!
I don’t have experience with maven, but it seems it needs a proper JAVA_HOME environment variable set (from line 25). Do you have it configured?
Best!
Hi,
Have you modified either the docker-compose file or the Buildkite pipeline file?
Could you send the containers logs created as artifacts? The JAVA_HOME should be set but Maven can run without with other settings, so it’s possible that what you’re getting is actually a Maven error
Sathya
May 13, 2023, 11:12am
6
Hi,
I did not modify anything just added the below buildkite project
This example uses Maven to run tests, build a package, and then uploads the package as a Buildkite artifact using the current stable Buildkite Agent - GitHub - buildkite/maven-example: This example...
Please see the logs attached as pdf.
logs.pdf (3.2 KB)
Thanks
@Sathya Seems to be an issue with the latest Maven image introduced around May 30th: Docker Maven JAVA_HOME · Issue #282 · carlossg/docker-maven · GitHub
The two possible fixes mentioned there are:
using the previous Maven image ‘maven:3.8.4’
or updating Docker to latest version.
1 Like
Hi, using maven:3.8.4 failed with error “Source option 5 is no longer supported. Use 7 or later.”
Tried using maven:3.9 which seems to work
Thanks!
1 Like