-
Notifications
You must be signed in to change notification settings - Fork 11
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
Failed to build SpringCloudEventsApplication #64
Comments
@danieloh30 can this be closed now with knative/func#265 having landed? |
@lance I just recreated a new spring boot project via |
@danieloh30 sorry! I should have been more explicit. Did you use the latest build from that PR? You can download it here https://github.com/boson-project/func/actions/runs/612739644 |
@lance I think I have the latest. The link shows func tool but I'm most likely using 'kn func' Here is what I'm using: kn version
|
@danieloh30 |
Still a bit confused. What is our position to create, build, and deploy functions? kn or func? When will you merge this fix to kn cli? Also, I see this version. Is this correct? ./func_darwin_amd64 version |
Sorry for the confusion, @danieloh30. You can think of We will ship the next The version problem was a known issue that should be resolved now. knative/func#204 |
Good to know. Here are further questions:
|
The next Serverless release (1.14) should have this. It will be available in the next couple of weeks.
Hmm - I will follow up on this in the func repo. |
Once SpringCloudEventsApplication is created via kn func create -l springboot -t events, this app can't be built with the following errors:
The template doesn't seem to be generated properly. For example, there is no definition about "HTTP_ATTR_PREFIX" in code.
ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java:[15,53] cannot find symbol
[ERROR] symbol: class CloudEventAttributesP[builder] rovider
[ERROR] location: package org.springframework.cloud.function.cloudeve[builder] nt
[ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java:[33,7] [builder] cannot find symbol
[ERROR] symbol: class CloudEventAttributesProvider
[ERROR] location: [builder] class functions.SpringCloudEventsApplication
[ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java[builder] :[59,10] cannot find symbol
[ERROR] symbol: class CloudEventAttributesProvider
[ERROR[builder] ] location: class functions.SpringCloudEventsApplication
[ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java:[3,1] cannot find symbol
[ERROR] symbol: static [builder] HTTP_ATTR_PREFIX
[ERROR] location: class org.springframework.cloud.function.cloud[builder] event.CloudEventMessageUtils
[ERROR] /workspace/src/main/j[builder] ava/functions/SpringCloudEventsApplication.java:[39,11] cannot find symbol
[ERROR] symbol: variable HTTP_ATTR_PREFIX
[ERROR] location: class functions.Spring[builder] CloudEventsApplication
[ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java:[41,32] cannot find symbol
[ERROR] symbol:[builder] variable HTTP_ATTR_PREFIX
[ERROR] [builder] location: class functions.SpringCloudEventsApplication
[ERROR] /workspace/src/main/java/functions/SpringCloudEventsApplication.java[builder] :[43,32] cannot find symbol
[ERROR] symbol: variable HTTP_ATTR_PREFIX
[ERROR] location: class functions.SpringCloudEventsApplication
[ERROR] /[builder] workspace/src/main/java/functions/SpringCloudEventsApplication.java:[45,32] cannot find symbol
[ERROR] symbol: variable HTTP_ATTR_PREFIX
[ERROR] location: class functions.S[builder] pringCloudEventsApplication
[ERROR] /works[builder] pace/src/main/java/functions/SpringCloudEventsApplication.java:[51,47] cannot find symbol
[ERROR] symbol: variable HTT[builder] P_ATTR_PREFIX
[ERROR] location: class fu[builder] nctions.SpringCloudEventsApplication
[ERROR] -> [Help 1]
[ERROR]
[builder] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[builder] [ERROR] Re-run Maven using the -X switch to enable ful[builder] l debug logging.
[ERROR]
[ERROR] For more info[builder] rmation about the errors and possible solutions, please read the following articles:
[builder] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN[builder] /MojoFailureException
[builder] ERROR: failed to build: exit status 1
The text was updated successfully, but these errors were encountered: