https://github.com/faranak-cs/spring-fundamentals
Simple app in Spring
https://github.com/faranak-cs/spring-fundamentals
java maven spring-boot
Last synced: 3 months ago
JSON representation
Simple app in Spring
- Host: GitHub
- URL: https://github.com/faranak-cs/spring-fundamentals
- Owner: faranak-cs
- Created: 2024-06-28T11:45:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T11:17:18.000Z (5 months ago)
- Last Synced: 2024-12-25T16:09:34.809Z (5 months ago)
- Language: Java
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java with Maven & Spring Boot
Introduction to Java with Maven and Spring Boot## SDK commands
- Install SDKMAN
```
curl -s "https://get.sdkman.io" | bash
```- Use the following command to see the list of Java versions
```
sdk list java
```- Use the following command to install Java
```
sdk install java version
```- Use the following command to select the Java version for the project:
```
sdk use java version
```- See current version:
```
sdk current java
```- Set default version:
```
sdk default java version
```## Maven commands
- Compile the code:
```
mvn clean compile
```- Compile, test (all) and package the project:
```
mvn clean install
```- Compile, test (unit tests), package and skip ITs:
```
mvn clean install -DskipITs
```- Run the ITs using Failsafe plugin:
> It will not fail the build if ITs are failed
```
mvn failsafe:integration-test
```- Verify the results using Failsafe plugin:
> It will fail the build if ITs are failed in the reports
```
mvn failsafe:verify
```- Generate report for code coverage using JaCoCo plugin:
```
mvn jacoco:report
```- Build and verify the results:
```
mvn clean verify
```- Run unit tests:
```
mvn clean test install -B -U -e -Dmaven.repo.local=path -DskipITs
```## JUnit
- 4
```junit
junit
4.13.2
test```
- 5
```org.junit.jupiter
junit-jupiter-api
5.11.3
test```
## Component Diagram
## Version
| Library | Version |
| ----------- | ----------- |
| IntelliJ IDEA CE | 2024.1.4 |
| Java | 17.0.11-tem |
| Maven | 3.9.8 |
| Spring Boot | 3.3.1 |
| Spring Framework | 6.1.10 |## Useful links
- https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html