Skip to content

beerd7017/java-project-template

Repository files navigation

Welcome to the New Java Project Template Repository

Purpose

This repository contains a basic project setup for any new Java project and assumes that there will be some kind of database migrations as well.

Rules of the Repository

  • Master branch is production, period.
  • Do not commit to master, please work off the development branch.
  • When working locally, try to work in feature branches.
  • Follow your git flow in SourceTree.

Setup the Oracle JDBC Driver

We have to install the JDBC driver to our local maven repository because Oracle's licensing prohibits the driver from being available publicly. The follow command will install this in the local repo.

mvn install:install-file -Dfile="{path/to/ojdbc6.jar}" -DgroupId="com.oracle" -DartifactId="ojdbc6" -Dversion="11.2.0.4" -Dpackaging="jar" -DgeneratePom="true"

Build Script

The following command will being a build and database migration for the local instance. To target another instance modify the -Penv flag.

build -Penv=local flywayMigrate -i --stacktrace

About

A project template for Java projects using config and properties files for multiple target environments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors