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

Create workflow for compiling the samples #215

Closed
agoncal opened this issue May 9, 2022 · 1 comment
Closed

Create workflow for compiling the samples #215

agoncal opened this issue May 9, 2022 · 1 comment
Labels
ci CI / CD

Comments

@agoncal
Copy link
Collaborator

agoncal commented May 9, 2022

When compiling the samples from the root (mvn install) I realized that one does not compile. We should create a workflow that compiles all the samples when we push

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

$ git clone https://github.com/Azure-Samples/java-on-azure-examples.git
$ mvn install

Any log messages given by the failure

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.276 s
[INFO] Finished at: 2022-05-09T13:32:41+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.0:compile (default-compile) on project appservice-javase-springboot: Compilation failure: Compilation failure:
[ERROR] error reading /Users/agoncal/.m2/repository/org/springframework/spring-core/5.3.18/spring-core-5.3.18.jar; zip file is empty
[ERROR] /Users/agoncal/Documents/Code/Temp/java-on-azure-examples/compute/appservice/javase-springboot/src/main/java/examples/azure/appservice/javase/springboot/HelloWorldApplication.java:[1,1] cannot access examples.azure.appservice.javase.springboot
[ERROR]   zip END header not found
[ERROR] /Users/agoncal/Documents/Code/Temp/java-on-azure-examples/compute/appservice/javase-springboot/src/main/java/examples/azure/appservice/javase/springboot/HelloWorldController.java:[7,8] cannot access java.lang
[ERROR]   zip END header not found
[ERROR] /Users/agoncal/Documents/Code/Temp/java-on-azure-examples/compute/appservice/javase-springboot/src/main/java/examples/azure/appservice/javase/springboot/HelloWorldController.java:[6,2] cannot find symbol
[ERROR]   symbol: class RestController
[ERROR] /Users/agoncal/Documents/Code/Temp/java-on-azure-examples/compute/appservice/javase-springboot/src/main/java/examples/azure/appservice/javase/springboot/HelloWorldController.java:[10,12] cannot find symbol
[ERROR]   symbol:   class String
[ERROR]   location: class examples.azure.appservice.javase.springboot.HelloWorldController
@agoncal agoncal added the ci CI / CD label May 9, 2022
@agoncal
Copy link
Collaborator Author

agoncal commented May 11, 2022

@agoncal agoncal closed this as completed May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI / CD
Projects
None yet
Development

No branches or pull requests

1 participant