Cześć
Mam prosty projekt webowy, korzystam z intellij i jetty. Gdy startuję serwer z intellij wszystko działa ok, projekt jest widoczny na adresie:
localhost:8080/Zadanie1_war_exploded
Muszę niestety mieć mozliwość uruchomienia z terminala za pomocą mvn jetty:run. Serwer też startuje, ale po wpisaniu powyższego adresu mam:
Directory: /Zadanie1_war_exploded/
Może mam źle ustawiony w pluginie jetty contextPath??
Mój pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>
<groupId>Zadanie1</groupId>
<artifactId>Zadanie1</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.8.v20171121</version>
<configuration>
<webApp>
<contextPath>/Zadanie1_war_exploded</contextPath>
</webApp>
</configuration>
</plugin>
</plugins>
</build>
</project>