-
Notifications
You must be signed in to change notification settings - Fork 67
buildpack template does not build Java applications #46
Comments
cc @sclevine |
The buildpacks template using the CF Java buildpack. This takes a JAR or WAR as input. You can either extract the contents of the JAR/WAR to |
Will build from source be supported? |
I'm unsure if that's on the roadmap for the CF Java buildpack. You could reach out to the folks that maintain it. We do have a sample v3 buildpack for Java that supports source-based workflows. This should be usable with knative build after #45 is complete. |
would that be @nebhale :) |
@saturnism It will be an option for deploying Java applications, but likely not the most common way to do it. Over the years we've found that enterprise Java applications have lots of problems building in offline, containerized, environments (the traditional CF use-case). Between the need to go to repositories/proxies for plugins/dependencies that are available in CI environments but not in production environments, to the fact that many enterprise Java build agents are snowflakes that are difficult to replicate in CF, most customers prefer to build a compiled, complete Java artifact with their existing build infrastructure and push that from a repository. This will be the first use-case we'll be aiming to satisfy and then add building from source once that's solid. |
agreed on the building locally. but it's also suboptimal to having to checking a JAR/WAR into git though. Reminds me of openshift days :) There is already a way to build and push containers to knative. |
Pulling from a Maven repository (typically Artifactory) is definitely on our radar. It’s already the most common way to push to Cloud Foundry (CI pipeline pushes to Artifactory, subsequent steps always pull that artifact and push to appropriate testing locations) so it’s a target use-case. |
nice! if we can have a shared build-step that can do the maven repository download, we can then also reuse it in a few different builders :D |
@saturnism https://github.com/cloudfoundry/build-system-buildpack The first cuts of both the |
yay!! just learned from @trisberg! Thank you! |
how to use build-system-buildpack to build a image from source? i tried and i got the below error |
@ctatineni The |
looks like the cnbuildpack is in and i tried to build from source: https://github.com/saturnism/catnotcat-function.git After maven install, it displayed an error:
|
@saturnism try deleting the registry you are using for the image or use a new one, the buildpacks sometimes fail to read metadata from existing images |
Errors with "None of the buildpacks detected a compatible application"
The text was updated successfully, but these errors were encountered: