A simple Java standalone application built using Maven. This project demonstrates how to structure, build, and run a basic Java project with Maven as the build tool.
hello-world-java/
├── src/
│ ├── main/
│ │ └── java/
│ │ └── com/
│ │ └── rt/
| └── sample
│ │ └── HelloWorld.java
│ └── test/
│ └── java/
│ └── com/
│ └── rt/
| └── sample
│ └── HelloWorldTest.java
├── pom.xml
└── README.md
- Java JDK 8 or higher
- Maven 3.6+
git clone https://github.com/Rushi-Technologies/hello-world-java.git
cd hello-world-javamvn clean packageThis will generate a .jar file in the target/ directory.
java -jar target/hello-world-java-1.0.0.jarmvn testThis will execute all unit tests under src/test/java.
To create a runnable JAR:
mvn clean packageIf needed, you can skip tests during packaging:
mvn clean package -DskipTestsBalaji Reddy Lachhannagari
Rushi Technologies
Training & Consulting
Website: https://rushitechnologies.com