This project is no longer supported and has been archived.
A web site for "Southern Maritime Agency" company.
You can get Jetty and Maven from the lib directory (you can find details below).
- Open sma-site/pom.xml as a project
- Go to File->Project Structure->Project Settings->Project and be sure that Project SDK and Project language level options are defined to Java 8 or higher
You can skip this option if you're using Intellij IDEA 2016 or higher
Unpack apache-maven-*-bin.zip archive from sma-site/lib folder to any place you want (e.g. sma-site/../Tools)You can skip this option if you're using Intellij IDEA 2016 or higher
Go to File->Settings->Build, Execution, Deployment->Build Tools->Maven and set Maven home directory to unpacked Maven folder- Copy sma-site/lib/runConfigurations folder to sma-site/.idea
- Run frontend-install configuration or the command below on a main pom.xml
$ mvn install -P frontend-install
- Run frontend-build configuration or the command below on a main pom.xml
$ mvn install -P frontend-build
In the future you can just run frontend-build configuration or the command below to build the project.
$ mvn clean install -P frontend-build
You can just run the command below if you don't want to build frontend part (not recommended).
$ mvn clean install
Run Setup configuration to install DB.
Edit Setup configuration and change second program argument to any path in case you want to change default deploy path.
- There are two ways of running application
- Using IDEA Jetty Runner plugin
- Go to File->Settings->Plugins and be sure that IDEA Jetty Runner plugin is installed
- Run Jetty configuration from Intellij IDEA.
- Using Maven Jetty Runner plugin
- Run jetty-run configuration from Intellij IDEA.
- Using IDEA Jetty Runner plugin
- Open http://127.0.0.1:8080/ in browser.