# Създаване на Maven проект в IntelliJ Community Edition



1. Добавяне на плъгин Smart Tomcat в IntelliJ (еднократно)\


<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FCCvQ5x4GhrrHMWTyoE6G%2F1.png?alt=media&#x26;token=688dc767-604f-43a0-bcac-eb5aea6d031d" alt=""><figcaption></figcaption></figure>

2. Създаване на Maven проект

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FyTbFaQh5lBfIg8J12Yu7%2Fimage.png?alt=media&#x26;token=f04a46d4-16fa-4daa-bfa9-dc76c9df8d1a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FHI6znt0dAvWXbvj7l4On%2Fimage.png?alt=media&#x26;token=f88c0340-0bbc-40d0-a160-8ffc2f54f3ce" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2F5vuRyZneHTpJcGiRD5jk%2Fimage.png?alt=media&#x26;token=3618da3e-5236-4939-9942-665491db461f" alt=""><figcaption></figcaption></figure>

3. В pom.xml добавяме servlet dependency

```
<dependency>
    <groupId>jakarta.servlet</groupId>
    <artifactId>jakarta.servlet-api</artifactId>
    <version>6.0.0</version>
    <scope>provided</scope>
</dependency>
```

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FpSxIMS6LTdCZnDx6a14p%2Fimage.png?alt=media&#x26;token=cf8aa2fe-a9af-4f86-925f-36313d2b05f3" alt=""><figcaption></figcaption></figure>

&#x20;4\. Презареждане на проекта

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FaGdHXzizUscj0xfveXHc%2Fimage.png?alt=media&#x26;token=4bd1c215-07bc-47f5-b7fd-b9672bc9504b" alt=""><figcaption></figcaption></figure>

5\. Добавяне на Source директория

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FMQyonbCPqHjI2FbzisAG%2Fimage.png?alt=media&#x26;token=54069e9f-f709-4033-957c-582b30e91826" alt=""><figcaption></figcaption></figure>

6\.  Избор на Source директория

![](https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FGO9Ot46Cqm8qeIxha4sY%2Fimage.png?alt=media\&token=4413d8e4-07ce-41b9-8c38-a4acab5acc73)

&#x20;7\. Конфигуриране на Tomcat

&#x20;Избираме "Add configuration"&#x20;

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FquKdMwI0RpN7CsMqEdPG%2Fimage.png?alt=media&#x26;token=0c1f052d-5674-46fe-8232-9f1a343e11c0" alt=""><figcaption></figcaption></figure>

Добавяме нова конфигурация, като избираме Smart Tomcat

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2F3z6rjhOI9JaAyDd0RXDR%2Fimage.png?alt=media&#x26;token=2a734545-1883-493b-a1c7-85e7e736bf17" alt=""><figcaption></figcaption></figure>

Натискаме бутона Configure

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FRz3TUioWBZZtXwsepBlA%2Fimage.png?alt=media&#x26;token=09ed061d-8d68-4cfb-830e-dc49c5a1b334" alt=""><figcaption></figcaption></figure>

Избираме директорията, в която е поставен Tomcat

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FZQp06KLMoBG0qidWl1BT%2Fimage.png?alt=media&#x26;token=8506d832-b1d7-4f9a-b110-6e598f8bb05e" alt=""><figcaption></figcaption></figure>

Попълваме данните на проекта

<figure><img src="https://3165743208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUbVVR-jiMUx7iVRyw6%2Fuploads%2FtlZyUBgasLUM28MYah5o%2Fimage.png?alt=media&#x26;token=f226dbad-8a33-4660-a2f8-cb62e104921f" alt=""><figcaption></figcaption></figure>

14\. Билдваме и стартираме проекта
