Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
devel:documentation:quickstart:dev:ide:idea [2019/06/19 11:12] klementm [Configure test runner] |
devel:documentation:quickstart:dev:ide:idea [2023/12/05 08:51] (current) kolombom [Importing a Module] |
||
---|---|---|---|
Line 7: | Line 7: | ||
====== Import project ====== | ====== Import project ====== | ||
- | Open Idea and choose to create | + | - Open Idea and choose to // |
- | + | - Import | |
- | Next tick " | + | - {{ .:importmaven.png? |
- | + | - Next. Next… Project should be imported. | |
- | Select profile: tick ' | + | |
- | + | | |
- | Select Maven projects to import: ignore " | + | |
- | + | ||
- | | + | |
- | * acc | + | |
- | * aggregator | + | |
- | + | ||
- | Next. Project | + | |
====== Metamodel generation ====== | ====== Metamodel generation ====== | ||
Line 31: | Line 24: | ||
* core-test-api | * core-test-api | ||
- | To set up metamodel generation, go to " | + | To set up metamodel generation, go to " |
====== Code style ====== | ====== Code style ====== | ||
- | Go to " | + | Go to " |
Next adjust the Import Layout on the bottom of the window as: | Next adjust the Import Layout on the bottom of the window as: | ||
< | < | ||
- | static all other, | + | static all other, |
- | blank, | + | blank, |
- | java.*, | + | java.*, |
- | blank, | + | blank, |
- | javax.*, | + | javax.*, |
- | blank, | + | blank, |
- | org.*, | + | org.*, |
- | blank, | + | blank, |
- | com.*, | + | com.*, |
- | blank, | + | blank, |
all other imports | all other imports | ||
+ | |||
</ | </ | ||
+ | |||
====== Configure test runner ====== | ====== Configure test runner ====== | ||
- | To create test run configuration for all modules (including ' | + | <note warning> |
+ | |||
+ | To create test run configuration for all modules (including ' | ||
* Test kind: All in package | * Test kind: All in package | ||
* Package: eu.bcvsolutions.idm | * Package: eu.bcvsolutions.idm | ||
Line 61: | Line 59: | ||
* Add to VM options following: -ea -Dspring.profiles.active=test | * Add to VM options following: -ea -Dspring.profiles.active=test | ||
- | <note important> | + | <note important> |
Save the configuration and test it by running. Tests from all modules should be executed. | Save the configuration and test it by running. Tests from all modules should be executed. | ||
+ | |||
+ | ====== Launch on Tomcat ====== | ||
+ | |||
+ | First of all make sure that you have Tomcat 9.0 installed. Then chose Tomcat server in Run/Debug Configurations in IDEA. Set URL to " | ||
+ | |||
+ | {{ .: | ||
+ | |||
+ | TIP 01: Deploy exploded artefact instead of compressed one. | ||
+ | |||
+ | TIP 02: If there is nothing deployed to the server check File → Project Structure → Artefacts tab. Add all modules you want to deploy to the artefact you deploy. This should happen automatically by Maven but sometimes it doesn' | ||
+ | |||
+ | ====== Importing a Module ====== | ||
+ | |||
+ | To develop a module alongside main CzechIdm, import the module from Project Structure > Project Settings > Modules > Right click in the list of modules > Add > Import Module | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | When the module is imported, go to Artifacts tab and drag the module artifact over idm-backend.war. | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | Then rebuild the project. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | If you see errors with missing dependencies, | ||
+ | |||
+ | If that doesn' | ||
+ | |||