Code Monkey home page Code Monkey logo

java-mod-5-project-directory-structure's Introduction

Maven Project Directory Structure

Learning Goals

  • Set up the basic directory structure for a Maven project.
  • Explain what each directory is used for.

Introduction

A Maven project has a standard directory structure for source code and configurations. We’ll only look at the minimal structure in this lesson to get started.

Maven Directory Structure

The following is a basic structure of a Maven project:

└── ~/developer/example-app
		├── pom.xml
		├── src
		│   ├── main
		│   │   ├── java
		│   │   └── resources
		│   └── test
		│       ├── java
		│       └── resources
		└── target
  • src/main/java: this is where the application source files are stored.
  • src/main/resources: the .properties files, xml config, certificates, and other config files are stored here.
  • src/test/java: the source code for tests are stored here.
  • src/test/resources: this is where test config files are stored.
  • /target: this stores the output files of the build process.

There are more directories that you may see in a standard directory. Check out the official documentation for a list of these directories.

Conclusion

We’ve learned to set up the directory structure for adding our source and config files in a Maven project. We’ll look at how to add dependencies in later lessons.

java-mod-5-project-directory-structure's People

Contributors

alveem avatar linda-seiter avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.