FFL2:FFL2 Main/Dev Environment/Import FFL2 project into IntelliJ: Difference between revisions

From FFL Wiki
Jump to navigation Jump to search
Added page describing importing project into IntelliJ
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
** Working directory: $MODULE_WORKING_DIR$
** Working directory: $MODULE_WORKING_DIR$
** Use classpath of module: fantacyweb
** Use classpath of module: fantacyweb
= Create Service (Optional but handy) =
* 'View' | 'Tool Windows' | 'Services'
* '+' icon to add a service
* 'Run Configuration Type' | 'Kotlin'
Now you can run / debug the service from the services tab

Latest revision as of 12:36, 10 November 2020

Create project

  • File | New module from existing sources
  • select 'fflmain' directory
  • 'Import project from external model' | 'Maven' | 'Finish'

Import Maven Modules

  • File | New module from existing sources
  • select 'java' directory
  • 'Import module from external model' | 'Maven' | 'Finish'

Create Run Configuration

  • Open FantacyApplication (Ctrl-N Windows / Ctrl-0 Mac)
  • Run the main method (this will error)
  • Fix the run configuration
    • 'Run' | 'Edit configurations...'
    • Working directory: $MODULE_WORKING_DIR$
    • Use classpath of module: fantacyweb

Create Service (Optional but handy)

  • 'View' | 'Tool Windows' | 'Services'
  • '+' icon to add a service
  • 'Run Configuration Type' | 'Kotlin'

Now you can run / debug the service from the services tab