https://github.com/hemantsonu20/github-workflow-mvn-archetypes
Maven Archetypes for java based projects with configured github workflow.
https://github.com/hemantsonu20/github-workflow-mvn-archetypes
github-workflow java maven-archetype mvn
Last synced: about 1 month ago
JSON representation
Maven Archetypes for java based projects with configured github workflow.
- Host: GitHub
- URL: https://github.com/hemantsonu20/github-workflow-mvn-archetypes
- Owner: hemantsonu20
- License: apache-2.0
- Created: 2020-08-28T06:48:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T19:02:19.000Z (over 3 years ago)
- Last Synced: 2025-07-27T06:10:08.327Z (11 months ago)
- Topics: github-workflow, java, maven-archetype, mvn
- Language: Groovy
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

# github-workflow-mvn-archetypes
Maven Archetypes for java based projects with configured github workflow.
* [github-workflow-java-archetype](#github-workflow-java-archetype)
## github-workflow-java-archetype
[](https://search.maven.org/search?q=g:%22com.github.hemantsonu20%22%20AND%20a:%22github-workflow-java-archetype%22)
**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 on `master` branch, an automatic build via
[github actions](https://docs.github.com/en/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
```
## Contributing
[See Contributing Guidelines](/CONTRIBUTING.md)
## License
[Apache License Version 2.0](/LICENSE)