Time for action - setting up the project skeleton

Choose a location in your filesystem to home your development activity. I'm working on a Windows platform and have picked C:projectsfelixbooksources to hold my projects. We'll call this the case study source directory.

For each new project, we'll create a sub-directory with the name of the bundle. This bundle is the com.packtpub.felix.bookshelf-inventory-api. So create the following directory structure under your common directory:

com.packtpub.felix.bookshelf-inventory-api

˪ src

  • ˪ main
    • ˫ java
    • ˪ resources

The newly created directory com.packtpub.felix.bookshelf-inventory-api is this project's base directory.

The src/main/java directory will hold our Java sources, the src/main/resources will contain the other files (resources) that are needed by the java code or the framework.

This file structure adheres to the default Maven settings, we'll use it to keep the project object model definition simple. If you are bound to use another file structure for your projects, take a look at the Maven references for the ways to customize the source's layout.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.30.178