Table of Contents | ||
---|---|---|
|
...
Eclipse Workspace Settings
Set file encoding to UTF-8
and the line-endings (for new files) to Unix, so that text files are saved in a format that is not specific to the Windows or Mac OS and most easily shared across heterogeneous developer desktops:
- Open Preferences
- Navigate to the Workspace preferences: General → Workspace
- Change the Text File Encoding to
UTF-8
- Change the New Text File Line Delimiter to Other and select Unix from the drop-down
Automatically generate css files (like swc.css) from sass files in the project (like swc.sass):
- Install sass: https://sass-lang.com/install
- Open Workspace properties and navigate to Builders.
- Create a new Builder that runs sass on the project after each build.
- Location: /usr/local/bin/sass
- Working directory: ${project_loc}
- Arguments:
--unix-newlines
--sourcemap=none
--style compressed
--default-encoding=UTF-8
--stop-on-error
--no-cache
--update src/main/webapp/sass:target/portal-develop-SNAPSHOT - Under Build Options - Allocate Console, Launch in background, and run this builder during all operations listed.
Troubleshooting
- Check your exclusion filters through configure build path in Eclipse to assure nothing is excluded, then refresh and clean the SWC project.
- "Could not deserialize" or similar problems in Super Dev Mode are most often fixed by re-building through the command line (running 'mvn clean install')
- (git) Pull the latest changes from the upstream repository.
- Try to rebuild your Eclipse's Portal project and keep your files in place.
- Perform a Maven update.
...
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:
...