Created
April 20, 2023 17:16
-
-
Save Falchio/aee3a9305b5b232ae0f49758650927f7 to your computer and use it in GitHub Desktop.
minimal pom.xml for convert JS app to WAR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>example.com</groupId> | |
<artifactId>project_name</artifactId> | |
<version>0.5.0</version> | |
<name>project_name</name> | |
<packaging>war</packaging> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<maven.compiler.target>1.8</maven.compiler.target> | |
<maven.compiler.source>1.8</maven.compiler.source> | |
</properties> | |
<build> | |
<finalName>${project.name}</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>3.3.2</version> | |
<configuration> | |
<webXml>src/main/webapp/WEB-INF/web.xml</webXml> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>11</source> | |
<target>11</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.wildfly.plugins</groupId> | |
<artifactId>wildfly-maven-plugin</artifactId> | |
<version>4.0.0.Final</version> | |
<configuration> | |
<filename>${project.build.finalName}.war</filename> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment