-------------------------------------------------------------------------------- Circ4Life Project No. 776503 ICT Platform Java OpenAPI Examples for the Java 8 Runtime environment. -------------------------------------------------------------------------------- Make sure you download to your workstation the following folders before trying to build and run the examples: https://circ4life.iccs.gr/AppsICTPlatform/openapi/ https://circ4life.iccs.gr/AppsICTPlatform/examples/ Once you have downloaded both, put them in the same working directory like this: Current working directory |_openapi |_CommonOpenAPI.yaml |_EcoCreditCalculatorOpenAPI.yaml |_EndUserModuleOpenAPI.yaml |_RecycleModuleOpenAPI.yaml |_RetailerModuleOpenAPI.yaml |_examples |_java |_EcoCreditCalculatorClient |_EndUserModuleClient |_RecycleModuleClient |_RetailerModuleClient |_README.txt To run the examples with Maven, change to the directory and execute this: mvn compile exec:java -pl App -am where is the corresponding module name project. In summary: cd examples/java/EcoCreditCalculatorClient mvn compile exec:java -pl EcoCreditCalculatorApp -am cd examples/java/EndUserModuleClient mvn compile exec:java -pl EndUserModuleApp -am cd examples/java/RecycleModuleClient mvn compile exec:java -pl RecycleModuleApp -am cd examples/java/RetailerModuleClient mvn compile exec:java -pl RetailerModuleApp -am You can also package the examples as standalone JARs and execute them with Java Runtime: cd examples/java/EcoCreditCalculatorClient mvn package java -jar EcoCreditCalculatorApp/target/EcoCreditCalculatorApp-0.0.1-jar-with-dependencies.jar cd examples/java/EndUserModuleClient mvn package java -jar EndUserModuleApp/target/EndUserModuleApp-0.0.1-jar-with-dependencies.jar cd examples/java/RecycleModuleClient mvn package java -jar RecycleModuleApp/target/RecycleModuleApp-0.0.1-jar-with-dependencies.jar cd examples/java/RetailerModuleClient mvn package java -jar RetailerModuleApp/target/RetailerModuleApp-0.0.1-jar-with-dependencies.jar