Table of Contents | ||
---|---|---|
|
...
- Download IntelliJ community edition, it comes pre-built with GWT and Maven support.
- Install GWT SDK (install the actual SDK, not the eclipse plugin version)
- If downloading Java for the first time then download Java 8 as well.
- If you want to run Maven manually then install it from here (this will require you to add the mvn installation directory to your PATH as well), otherwise see notes here on configuring IntelliJ to run maven build.
- Import the SWC into IntelliJ by File → New Project From Existing Sources... <Select Path to SWC Location>
- To Setup running the GWT server from Intellij
- In the Menu bar
Run > Edit configurations
- Click the "+" button to add an new configuration and choose "GWT Configuration".
- This is what the configuration looks like on Windows, adapt the file paths to your project repository's location
- Dev Mode Parameter should be:
-war target/portal-develop-SNAPSHOT
- Dev Mode Parameter should be:
- The "Before Launch" tools can be ignored.
- It is simply a shortcut a execute the same command executed by the
libsass-maven-plugin
in the rootpom.xml
if using Maven to run GWT. - The alternative is to run this command manually in the command line, whenever the CSS gets messed up.
sass --no-source-map --load-path=. --style=compressed --unicode --stop-on-error --update "./src/main/webapp/sass":"./target/portal-develop-SNAPSHOT"
- This is caused by the GWT runner in IntelliJ sometimes clearing out the
/target
directory when recompiling - Even setting up SASS command in the "before launch" does ensure the CSS is compiled automatically
- The CSS will be compiled immediately before the GWT server runs. The GWT server then clears out the
/target
folder containing the compiled CSS - The only benefit to the set up is that a tab for SASS is created next to the GWT Server's tab, which you can then manually run after the GWT server has started up.
- This is very annoying and any improvements to this workflow would be greatly appreciated.
- The CSS will be compiled immediately before the GWT server runs. The GWT server then clears out the
- This is caused by the GWT runner in IntelliJ sometimes clearing out the
- It is simply a shortcut a execute the same command executed by the
- In the Menu bar
- If running Maven manually run like so (see note below on saving build time by running in debug mode):
- Run 'mvn clean install'
- Run 'mvn gwt:run'
- Not recommended because it currently does not detect changes to the
.ui.xml
files, which forces you to kill, redomvn clean install
, and restart the server. - Running in the IDE will detect
.ui.xml
changes
- Not recommended because it currently does not detect changes to the
...
Set the repository endpoint parameters in your maven settings.xml file.
To point to staging set:
<org.sagebionetworks.repositoryservice.endpoint>https://repo-staging.prod.sagebase.org/repo/v1</org.sagebionetworks.repositoryservice.endpoint>
To point to production set:
...