github-workflow-mvn-archetypes
Maven Archetypes for java based projects with configured github workflow.
github-workflow-java-archetype
Description:
A maven archetype which generates a java / maven project. It has configured github workflow for building your maven project.
- Whenever a code is pushed to
master
or a pull request is opened onmaster
branch, an automatic build via github actions will be triggered automatically. - A nice workflow badge with build status will be visible in your README.md.
How to use:
Open a terminal, goto folder where you want to generate the project and run below command.
mvn archetype:generate -DarchetypeGroupId=com.github.hemantsonu20 -DarchetypeArtifactId=github-workflow-java-archetype -DarchetypeVersion=1.0.1
When asked provide groupId
, artifactId
, package
, GithubOrgOrAccount
(your github org name or username).
You can also provide these options on command line directly as:
mvn archetype:generate -DarchetypeGroupId=com.github.hemantsonu20 \
-DarchetypeArtifactId=github-workflow-java-archetype \
-DarchetypeVersion=1.0.1 \
-DgroupId=com.example \
-DartifactId=demo \
-DGithubOrgOrAccount=YourGithubOrgOrAccount