-
Notifications
You must be signed in to change notification settings - Fork 1
Eclipse
Oleh Astappiev edited this page Oct 16, 2023
·
1 revision
- Click
File -> Open Projects from File System...
- Select the folder where you previously cloned the project
- Click
Finish
- Alternatively, you can use
New -> Other... -> Git
to clone the project directly to your Workspace.
The IDE will load the project structure from Maven's pom.xml
file.
- Wait for indexing and validation to finish;
- Right-click on
package.json
file in Project Explorer and selectRun as -> npm install
; - Right-click on
package.json
file in Project Explorer and selectRun as -> npm run build:dev
; - Configure Tomcat server to run our application:
- Go to
Servers
tab (right bottom of the screen) and clickNo servers are available. Click this link to create a new server...
; - Find the latest Tomcat server (as of writing, it's
Tomcat v10.1 Server
) and clickNext
; - Click
Browse...
and select the directory where you installed Tomcat (or alternatively you can clickDownload and install..
), then clickFinish
; - Right-click on the server you created and select
Add and Remove...
; - Double click on
Learnweb
application (it should be moved to the right panel), then clickFinish
.
- Go to
- Start the server;
- The browser should open, and the project should be deployed.
- Right-click on
pom.xml
- Select
Run as
->3 Maven build...
- Enter the
Goals
asclean install
andProfiles
asprod,!local
- Click
Run
Alternatively, you can use the console command mvn clean install -P prod,!dev
from the root directory.