- Install Git for Windows
- Goto https://git-scm.com/download/win
- Download the 64-bit Git for Windows Setup version and install to your directory of choice
- Install Eclipse Modeling Tools
- Goto https://www.eclipse.org/downloads/packages/release/2019-12/r/eclipse-modeling-tools
- Download the Windows x86_64 version and extract to your directory of choice
- Execute eclipse.exe from the root folder
- If it can’t be started, you may need to install/update your Java installation
Try https://www.eclipse.org/openj9/docs/adoptopenjdk . Note, you might need to add the “bin” directory of the Java installation to the “path” environment variable if not already done so, otherwise, Eclipse might not be able to start- If you are asked for a default workspace location, it is recommended to use “C:/YourInstallationFolder/workspace”, to contain Eclipse for the sake of good order in one folder. You also may check “Use this as the default and do not ask again”
- Setup some Eclipse preferences
- Prevent some compile errors
- In Eclipse, open Window | Preferences
- In the left tree, goto Java > Compiler > Error/Warnings
- Under Deprecated and restricted API, choose Ignore for Forbidden reference (access rules)
- Click Apply and Close
- See only errors/problems for current selection
- Open the Problems view (via Window | Show View | Problems)
- In the right/top area of that view, click the vertical ellipsis symbol ⋮ (or the down-pointing triangle symbol for eclipse versions older than 2019-12) for the drop-down list and choose Filters
- Select and check Errors/Warnings on Selection (and ensure that On selected elements and its children is checked)
- Click Apply and Close
- Link the current active editor with the explorer tree
- Open the Model Explorer view (via Window | Show View | Model Explorer)
- In the right/top area of that view, click the leftwards arrow over rightwards arrow symbol ⇆. This allows the explorer tree to highlight the location of a file associated to an opened editor
- Install 3rd Party dependencies to Eclipse
- PostgreSQL driver
- In Eclipse, open Help | Install New Software
- Click Add
- Use “PostgreSQL Driver” as Name and “http://www.elver.org/eclipse/2.2.0/update” as Location
- Click Add
- Expand the tree and check Postgresql
- Click Next, Next, accept the terms of the license agreement and Finish. Click Install anyway in the Security Warning dialog. Restart IDE when asked
- Net4j PostgreSQL adapter
- Open Help | Install New Software
- Click Add
- Use “Net4j” as Name and “http://download.eclipse.org/modeling/emf/cdo/updates/releases/4.7” as Location
- Click Add
- Expand the tree and check Net4j DB Framework > Net4j DB Framework PostgreSQL Adapter
- Click Next, Next, accept the terms of the license agreement and Finish. Restart IDE when asked
- Web applications support
- Open Help | Install New Software
- In the Work with field, click the down arrowhead symbol ⌄ for the drop-down list and choose “2019-12 - http://download.eclipse.org/releases/2019-12” (or a different eclipse version)
- Expand Web, XML, Java EE and OSGi Enterprise Development
- Check RAP Tools. This allows you to launch a RAP application from Eclipse (configured in .launch files)
- Also check WAR Products (Incubation). This allows you to build .war files (from .warproduct files)
- Click Next, Next, accept the terms of the license agreement and Finish. Restart IDE when asked
- Add a couple of Git repositories
- Open the Git Repositories view (via Window | Show View | Other and then Git > Git Repositories)
- Main repository for the RAAS technology
- In the right/top area of that view, click the vertical ellipsis symbol ⋮ for the drop-down list and choose Clone a Repository
- Use “https://github.com/patins1/raas4emf.git” as URI
- Click Next, Next and Finish
- When cloning is finished, right click raas4emf [master] in the Git Repositories view and click Import Projects
- Click Deselect All
- Check following projects:
- org.eclipse.jqvt.runtime (unless you plan to install JQVT as 3rd Party dependency)
- org.ifc4emf.metamodel.ifc
- org.raas4emf.cms.core
- org.raas4emf.cms.propertysets
- org.raas4emf.cms.transformation
- org.raas4emf.cms.ui
- org.raas4emf.cms.ui.discriminator
- org.raas4emf.cms.ui.rap
org.raas4emf.cms.ui.rcp- org.raas4emf.metamodel.propertysets
- org.raas4emf.metamodel.raascms
- org.raas4emf.metamodel.raascms.edit
org.raas4emf.metamodel.restexampleorg.raas4emf.raasgenerator.feature- org.raas4emf.server
- org.raas4emf.service
- Click Finish
- Cancel any Marketplace solutions available dialog if it should appear
- Main repository for the IFC support
- In the Git Repositories view, again click the vertical ellipsis symbol ⋮ and choose Clone a Repository
- Use “https://github.com/patins1/ifc4emf.git” as URI
- Click Next, Next and Finish
- When cloning is finished, right click ifc4emf [master] in the Git Repositories view and click Import Projects
- Click Deselect All
- Check following projects:
- org.ifc4emf.metamodel.express
- org.ifc4emf.metamodel.ifcheader
- org.ifc4emf.metamodel.modelblob
- org.ifc4emf.metamodel.trace
- org.ifc4emf.part21
- Click Finish
- Cancel any Marketplace solutions available dialog if it should appear
- Advanced: Configure RAP target platform (only required if migrating to newer Eclipse version)
- Open Window | Preferences
- In the left tree, goto Plug-in Development > Target Platform
- Select (but not check) EMF + RAP and click Edit
- Edit the entry similar to http://download.eclipse.org/releases/2019-12
- Add the repository that has a newer version, e.g. http://download.eclipse.org/releases/2020-12
- Check EclipseRT Target Platform Components > EMF RAP Target Components
- Click Finish
- Edit the entry similar to https://download.eclipse.org/rt/rap/3.7
- Add the repository that has a newer version, e.g. https://download.eclipse.org/rt/rap/3.11
- Check all components of Remote Application Platform (RAP)
- Click Finish
- Click Finish and then click Apply and Close
- Switch to RAP target platform
- Open Window | Preferences
- In the left tree, goto Plug-in Development > Target Platform
- Check EMF + RAP
- Click Apply and Close
- Get started
- There should be no compile erros in the workspace by now
- Launch the web application
- Open Run | Run Configurations
- Goto RAP Application > raascms
- Click Run
- A browser window should open up with the address http://localhost:8123/raascms/ui
- You should be able to login as Operator with the password “o”
- Generate the WAR file
- First, delete the org.antlr.runtime_4.x plugin from the Eclipse plugins folder, similar to eclipse\plugins\org.antlr.runtime_4.3.0.v201502022030.jar and restart the Eclipse IDE
- Open File | Export
- Select Plug-in Development > WAR Product and click Next
- Select org.raas4emf.cms.ui.rap > raascms.warproduct and click Next
- Use “C:\bim\NOLServer\apache-tomcat\webapps\raascms.war” as WAR File and click Finish
- While the war file will be created after some seconds to minutes, the wizard may reports an error, see https://www.eclipse.org/forums/index.php?t=msg&th=1087206&goto=1770878
|
|