Skip to content
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

maven build error for app spring-petclinic-customers-service #75

Open
maiconrocha opened this issue Dec 2, 2024 · 3 comments
Open

maven build error for app spring-petclinic-customers-service #75

maiconrocha opened this issue Dec 2, 2024 · 3 comments

Comments

@maiconrocha
Copy link

after running

./mvnw clean install -P buildDocker
below are the errors:

[INFO] 65 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] spring-petclinic-microservices 2.6.7 ............... SUCCESS [  0.176 s]
[INFO] spring-petclinic-admin-server ...................... SUCCESS [  4.172 s]
[INFO] spring-petclinic-customers-service ................. FAILURE [  1.394 s]
[INFO] spring-petclinic-vets-service ...................... SKIPPED
[INFO] spring-petclinic-visits-service .................... SKIPPED
[INFO] spring-petclinic-config-server ..................... SKIPPED
[INFO] spring-petclinic-discovery-server .................. SKIPPED
[INFO] spring-petclinic-api-gateway 2.6.7 ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.130 s
[INFO] Finished at: 2024-12-02T16:19:26+10:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project spring-petclinic-customers-service: Compilation failure: Compilation failure:
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[64,18] cannot find symbol
[ERROR]   symbol:   method getFirstName()
[ERROR]   location: variable owner of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[76,13] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[101,45] cannot find symbol
[ERROR]   symbol:   method getFirstName()
[ERROR]   location: variable ownerRequest of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[102,44] cannot find symbol
[ERROR]   symbol:   method getLastName()
[ERROR]   location: variable ownerRequest of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[103,40] cannot find symbol
[ERROR]   symbol:   method getCity()
[ERROR]   location: variable ownerRequest of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[104,43] cannot find symbol
[ERROR]   symbol:   method getAddress()
[ERROR]   location: variable ownerRequest of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[105,45] cannot find symbol
[ERROR]   symbol:   method getTelephone()
[ERROR]   location: variable ownerRequest of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[106,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[112,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[116,12] cannot find symbol
[ERROR]   symbol:   method setName(java.lang.String)
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[125,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[128,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[132,14] cannot find symbol
[ERROR]   symbol:   method setFirstName(java.lang.String)
[ERROR]   location: variable owner of type org.springframework.samples.petclinic.customers.model.Owner
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[141,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/OwnerResource.java:[144,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.OwnerResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Owner.java:[110,12] cannot find symbol
[ERROR]   symbol:   method setOwner(org.springframework.samples.petclinic.customers.model.Owner)
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Owner.java:[117,31] cannot find symbol
[ERROR]   symbol: method getId()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Owner.java:[118,37] cannot find symbol
[ERROR]   symbol: method getLastName()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Owner.java:[119,38] cannot find symbol
[ERROR]   symbol: method getFirstName()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[72,31] cannot find symbol
[ERROR]   symbol: method getId()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[73,33] cannot find symbol
[ERROR]   symbol: method getName()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[74,38] cannot find symbol
[ERROR]   symbol: method getBirthDate()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[75,33] cannot find symbol
[ERROR]   symbol: method getType()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[76,43] cannot find symbol
[ERROR]   symbol: method getOwner()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/model/Pet.java:[77,42] cannot find symbol
[ERROR]   symbol: method getOwner()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetInsurance.java:[34,35] cannot find symbol
[ERROR]   symbol: method getId()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetInsurance.java:[35,39] cannot find symbol
[ERROR]   symbol: method getPet_id()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetInsurance.java:[36,42] cannot find symbol
[ERROR]   symbol: method getInsurance_name()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetInsurance.java:[37,45] cannot find symbol
[ERROR]   symbol: method getInsurance_id()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetInsurance.java:[38,38] cannot find symbol
[ERROR]   symbol: method getPrice()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[82,13] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[82,76] cannot find symbol
[ERROR]   symbol:   method getName()
[ERROR]   location: variable petRequest of type org.springframework.samples.petclinic.customers.web.PetRequest
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[91,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[93,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[94,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[96,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[97,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[98,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[100,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[101,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[103,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[104,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[106,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[107,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[109,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[115,31] cannot find symbol
[ERROR]   symbol:   method getId()
[ERROR]   location: variable petRequest of type org.springframework.samples.petclinic.customers.web.PetRequest
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[123,31] cannot find symbol
[ERROR]   symbol:   method getName()
[ERROR]   location: variable petRequest of type org.springframework.samples.petclinic.customers.web.PetRequest
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[124,36] cannot find symbol
[ERROR]   symbol:   method getBirthDate()
[ERROR]   location: variable petRequest of type org.springframework.samples.petclinic.customers.web.PetRequest
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[125,49] cannot find symbol
[ERROR]   symbol:   method getTypeId()
[ERROR]   location: variable petRequest of type org.springframework.samples.petclinic.customers.web.PetRequest
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[126,24] invalid method reference
[ERROR]   cannot find symbol
[ERROR]     symbol:   method setType()
[ERROR]     location: class org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[128,9] cannot find symbol
[ERROR]   symbol:   variable log
[ERROR]   location: class org.springframework.samples.petclinic.customers.web.PetResource
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[139,130] cannot find symbol
[ERROR]   symbol:   method getId()
[ERROR]   location: variable detail of type org.springframework.samples.petclinic.customers.web.PetDetails
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[149,44] cannot find symbol
[ERROR]   symbol:   method getInsurance_id()
[ERROR]   location: variable petInsurance of type org.springframework.samples.petclinic.customers.web.PetInsurance
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[150,46] cannot find symbol
[ERROR]   symbol:   method getInsurance_name()
[ERROR]   location: variable petInsurance of type org.springframework.samples.petclinic.customers.web.PetInsurance
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[151,37] cannot find symbol
[ERROR]   symbol:   method getPrice()
[ERROR]   location: variable petInsurance of type org.springframework.samples.petclinic.customers.web.PetInsurance
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[156,125] cannot find symbol
[ERROR]   symbol:   method getType()
[ERROR]   location: variable detail of type org.springframework.samples.petclinic.customers.web.PetDetails
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetResource.java:[166,46] cannot find symbol
[ERROR]   symbol:   method getFacts()
[ERROR]   location: variable petNutrition of type org.springframework.samples.petclinic.customers.web.PetNutrition
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[54,22] cannot find symbol
[ERROR]   symbol:   method getId()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[55,24] cannot find symbol
[ERROR]   symbol:   method getName()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[56,25] cannot find symbol
[ERROR]   symbol:   method getOwner()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[56,63] cannot find symbol
[ERROR]   symbol:   method getOwner()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[57,29] cannot find symbol
[ERROR]   symbol:   method getBirthDate()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetDetails.java:[58,24] cannot find symbol
[ERROR]   symbol:   method getType()
[ERROR]   location: variable pet of type org.springframework.samples.petclinic.customers.model.Pet
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetNutrition.java:[28,41] cannot find symbol
[ERROR]   symbol: method getPet_type()
[ERROR] /Users/alegrm/Downloads/application-signals-demo/spring-petclinic-customers-service/src/main/java/org/springframework/samples/petclinic/customers/web/PetNutrition.java:[29,38] cannot find symbol
[ERROR]   symbol: method getFacts()
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spring-petclinic-customers-service
@pxaws
Copy link
Member

pxaws commented Dec 2, 2024

Could you give more information about the environment in which the command was executed? For example, OS, java version, any particular settings?

@maiconrocha
Copy link
Author

MacBook Pro M1 Chip
OS: MacOS 15.1.1 (24B91)
java --version
java 23.0.1 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)

@maiconrocha
Copy link
Author

maiconrocha commented Dec 4, 2024

I also faced the same issue when running the command from AWS CloudShell which is linux based, also on EC2 Instance with ECS Optimized AMI ami-0267e832116a2026a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants