92 lines
3.3 KiB
XML
92 lines
3.3 KiB
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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.demo</groupId>
|
|
<artifactId>struts2-demo</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<packaging>war</packaging>
|
|
|
|
<name>Struts2 Demo Lab</name>
|
|
<description>Classic Struts2 learning project packaged as a runnable Maven WAR.</description>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.release>17</maven.compiler.release>
|
|
<struts2.version>2.5.33</struts2.version>
|
|
<jetty.version>9.4.54.v20240208</jetty.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.struts</groupId>
|
|
<artifactId>struts2-core</artifactId>
|
|
<version>${struts2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.struts</groupId>
|
|
<artifactId>struts2-json-plugin</artifactId>
|
|
<version>${struts2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-fileupload</groupId>
|
|
<artifactId>commons-fileupload</artifactId>
|
|
<version>1.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>4.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<sourceDirectory>${project.basedir}/web/WEB-INF/classes</sourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.basedir}/web/WEB-INF/classes</directory>
|
|
<excludes>
|
|
<exclude>**/*.java</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<release>${maven.compiler.release}</release>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<configuration>
|
|
<warSourceDirectory>${project.basedir}/web</warSourceDirectory>
|
|
<packagingExcludes>WEB-INF/classes/**/*.java</packagingExcludes>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.version}</version>
|
|
<configuration>
|
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
|
<webAppSourceDirectory>${project.basedir}/web</webAppSourceDirectory>
|
|
<webApp>
|
|
<contextPath>/</contextPath>
|
|
</webApp>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|