Skip to main content

Project Set Up

Marven

marven logo

Maven is an open-source "build automation" and "project management" tool widely used for Java applications.
As a build automation tool, it automates the "source code compilation" and "dependency management", assembles binary codes into packages, and executes test scripts.

creating a project

set up

Coordinates

"Coordinates" refer to a set of identifiers that uniquely identify a specific artifact (such as a library or a project module). They are used to locate dependencies in repositories like Maven Central.

  • Groupid: This identifies the group, organization, or company behind the artifact. It's typically written in reverse domain notation, like com.example.
  • Artifactid: This is the name of the project or module, representing the specific artifact within the group. The name should be in lowercase letters and no strange symbols. For example, my-app.
File Structure
fileexplanation
src/main/javacontains the "source code"
src/main/resourcesresources for the "source code"
src/test/javacontains "test cases"
target/classescontains the built (executable)
pom.xml (Project Object Model)contains the project configuration (coordinates and dependencies) and description

adding a class

  • in the "file tree" on the left side: "right click" on the src/main/java folder to open the "context menu" to select New -> Java Class