-
Clone the Repository:
git clone https://github.com/yourusername/project-management-portal.git cd project-management-portal
-
Build the Project Using Maven:
Use the following Maven command to clean and build the project:
mvn clean install
This command will compile the project, run tests, and package the application into a WAR file located in the
target/
directory.
-
Start Apache Tomcat:
Ensure that your Apache Tomcat server is running. If not, you can start it using:
{TOMCAT_HOME}/bin/startup.sh # On Linux/Mac {TOMCAT_HOME}\bin\startup.bat # On Windows
-
Deploy the Application on Tomcat:
- Copy the generated WAR file from
target/project-management-portal.war
to thewebapps
directory of your Tomcat installation:
cp target/project-management-portal.war {TOMCAT_HOME}/webapps/
- Alternatively, you can use the Tomcat Manager to upload the WAR file.
- Copy the generated WAR file from
-
Access the Application:
Open a web browser and go to
http://localhost:8080/project-management-portal
to access the application.
-
Clean and Build the Project:
mvn clean install
-
Run the Application on an Embedded Tomcat Server:
If you want to run the project using an embedded Tomcat server, use:
mvn tomcat7:run
This will start the application on
http://localhost:8080/project-management-portal
.
-
Package the Project as a WAR file:
mvn package
This will create a WAR file in the
target/
directory. -
Copy the WAR File to Tomcat's Webapps Directory:
cp target/project-management-portal.war {TOMCAT_HOME}/webapps/
-
Restart Tomcat:
{TOMCAT_HOME}/bin/shutdown.sh # Stop Tomcat {TOMCAT_HOME}/bin/startup.sh # Start Tomcat