https://github.com/andriykalashnykov/maven-simple
Maven based Java project for general purpose testing
https://github.com/andriykalashnykov/maven-simple
apache-http-client gson httpclient httpurlconnection jackson jacoco java log4j makefile maven okhttp owasp rest retrofit sdkman
Last synced: 8 months ago
JSON representation
Maven based Java project for general purpose testing
- Host: GitHub
- URL: https://github.com/andriykalashnykov/maven-simple
- Owner: AndriyKalashnykov
- License: mit
- Created: 2021-09-02T16:48:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-10-10T04:58:23.000Z (8 months ago)
- Last Synced: 2025-10-11T17:11:54.112Z (8 months ago)
- Topics: apache-http-client, gson, httpclient, httpurlconnection, jackson, jacoco, java, log4j, makefile, maven, okhttp, owasp, rest, retrofit, sdkman
- Language: Java
- Homepage:
- Size: 617 KB
- Stars: 6
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/AndriyKalashnykov/maven-simple/actions/workflows/ci.yml)
[](https://hits.sh/github.com/AndriyKalashnykov/maven-simple/)
[](https://opensource.org/licenses/MIT)
# Maven based Java project for general purpose testing
## Pre-requisites
- [sdkman](https://sdkman.io/install)
Install and use JDK
```bash
sdk install java 21-tem
sdk use java 21-tem
```
- [Apache Maven](https://maven.apache.org/install.html)
Install Apache Maven
```bash
sdk install maven 3.9.9
sdk use maven 3.9.9
```
- [`GNU Make`](https://www.gnu.org/software/make/)
## [HTTP clients in Java](https://github.com/AndriyKalashnykov/maven-simple/tree/main/src/main/java/http/client)
Core Java:
* [HttpURLConnection](https://www.javatpoint.com/java-http-url-connection)
* [HttpClient](https://openjdk.java.net/groups/net/httpclient/intro.html)
Popular Libraries:
* [ApacheHttpClient](https://mkyong.com/java/apache-httpclient-examples/)
* [OkHttp](https://www.baeldung.com/guide-to-okhttp)
* [Retrofit](https://www.baeldung.com/retrofit)
## [JSON in Java](https://github.com/AndriyKalashnykov/maven-simple/tree/main/src/main/java/jsonparse/)
of how to work with using
* [Jackson](https://github.com/FasterXML/jackson)
* [Gson](https://github.com/google/gson)
## Usage
Check pre-reqs:
```bash
make check-env
```
Run dependencies check for publicly disclosed vulnerabilities in application dependencies:
```bash
make cve-check
```
Update project dependencies to latest releases
```bash
mvn update-deps
```
### Help
```bash
make help
```
```text
Usage: make COMMAND
Commands :
help - List available tasks on this project
check-env - Check installed tools
clean - Cleanup
test - Run project tests
build - Build project
cve-check - Run dependencies check for publicly disclosed vulnerabilities in application dependencies
coverage-generate - Generate code coverage report
coverage-check - Verify code coverage meets minimum threshold ( > 70%)
coverage-open - Open code coverage report
print-deps-updates - Print project dependencies updates
update-deps - Update project dependencies to latest releases
```