Maven archetype to create a simple Temporal Java project
- Clone this project and build it
git clone [email protected]:tsurdilo/temporal-simple-archetype.git
cd temporal-simple-archetype
mvn clean install
- Go to a directory where you want to create your new Temporal Java project and run:
mvn archetype:generate -DarchetypeGroupId=io.temporal -DarchetypeArtifactId=temporal-simple-archetype -DarchetypeVersion=1.0.0 -DgroupId=io.myproject -DartifactId=temporal-java-project -DclassPrefix=Temporal
Change values of "-DgroupId", "-DartifactId" and "-DclassPrefix" to what you want.
-
CD into the project that was created for you
-
Build your new project and run the tests:
mvn clean install
Free free to change your new Temporal Java project as you wish and learn about Temporal :)
To run the created greeting workflow you have to have the Temporal server installed. Easy way is to do that with Docker Compose.
- Start the Temporal Server
In your created project run:
docker-compose -f docker-compose-cas-es.yml up
-
Run the Worker
-
Run the Starter