Skip to content

Failed to build SpringCloudEventsApplication #64

Open
@danieloh30

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions