Skip to content

Project-Group-B/BehavioralEnrichment-Java

Repository files navigation

Documentation

Import into Eclipse

  1. Can follow this guide: https://stackoverflow.com/questions/2061094/importing-maven-project-into-eclipse
  2. Basics:
    1. File -> Import -> Maven -> Existing Maven Project
    2. Browse to and select the root folder of the Maven project (containing the pom.xml)
    3. Click Next then Finish

Development

Maven dependencies

  • To add a dependency:
    • Open pom.xml in Eclipse
    • Go to "Dependencies" tab at the bottom
    • Click "Add..."
    • Search for your desired dependency and select it
    • Click "OK"
  • Clean install of dependencies
    • Follow same instructions as the "Deploying Locally" section below, except...
    • Set "Goals" as clean install
    • Keep "Profiles" empty
    • Run the configuration and you dependencies should be installed

Deploying Locally

  1. Right click on project in Eclipse
  2. Click "Run As" -> "Maven build..."
  3. Name it as something you'll remember/recognize
  4. Set Goals as "spring-boot:run"
    1. "Profiles" should be empty
  5. You should see some output in the console ending with something like "Started BehaviorEnrichmentJavaApplication in..."
  6. Application is now listening on port http://localhost:8080

Deploying Permanently

  1. Right click on project in Eclipse
  2. Click "Run As" -> "Maven build..."
  3. Set Goals as "-Dmaven.test.skip=true package"
  4. Upload resulting .jar to deployment location.
  5. Run .jar using "java -jar JAR_NAME"
  6. Use "lsof -i :8080" to determine the PID of the process for future reference.
  7. Optionally, since a .jar cannot be run by PM2 or similar process managers for Linux, the .jar may be run as a service. How to: https://dzone.com/articles/run-your-java-application-as-a-service-on-ubuntu

About

The Spring Boot Java back-end for the Behavioral Enrichment project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages