264 lines
10 KiB
XML
264 lines
10 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 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.mousetech.gourmet</groupId>
|
|
<artifactId>gourmetj</artifactId>
|
|
<version>2.0.37</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>GourmetJ</name>
|
|
<description>Gourmet Recipe Manager (Spring Boot)</description>
|
|
<url>https://www.mousetech.com</url>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>3.2.3</version>
|
|
<relativePath /> <!-- lookup parent from repository -->
|
|
</parent>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>Primefaces</id>
|
|
<name>Primefaces repo</name>
|
|
<url>https://repository.primefaces.org</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<properties>
|
|
<!-- compile library versions -->
|
|
<jakarta.validation-api.version>3.0.2</jakarta.validation-api.version>
|
|
<joinfaces.version>5.2.2</joinfaces.version>
|
|
<maven-model.version>3.9.6</maven-model.version>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<java.version>17</java.version>
|
|
<spring-boot.version>3.2.2</spring-boot.version>
|
|
<faces.version>4.0.5</faces.version>
|
|
<joinfaces.version>5.2.2</joinfaces.version>
|
|
<twelvemonkeys.version>3.10.1</twelvemonkeys.version>
|
|
<junit.jupiter.version>5.4.0</junit.jupiter.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>jakarta.validation</groupId>
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
<version>${jakarta.validation-api.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.joinfaces</groupId>
|
|
<artifactId>joinfaces-bom</artifactId>
|
|
<version>${joinfaces.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-model</artifactId>
|
|
<version>${maven-model.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.joinfaces</groupId>
|
|
<artifactId>primefaces-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.primefaces.themes</groupId>
|
|
<artifactId>all-themes</artifactId>
|
|
<version>1.0.10</version>
|
|
</dependency>
|
|
<dependency>
|
|
<!-- Primefaces theme won't work without this! -->
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.validation</groupId>
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
</dependency>
|
|
<!--
|
|
https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
|
|
<dependency>
|
|
<groupId>org.hibernate.validator</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
</dependency>
|
|
|
|
<!--
|
|
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
|
|
<dependency>
|
|
<groupId>jakarta.servlet</groupId>
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
<artifactId>tomcat-embed-jasper</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!--
|
|
https://mvnrepository.com/artifact/com.twelvemonkeys.imageio/imageio-core -->
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.imageio</groupId>
|
|
<artifactId>imageio-core</artifactId>
|
|
<version>${twelvemonkeys.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
<!--
|
|
https://mvnrepository.com/artifact/com.twelvemonkeys.imageio/imageio-webp -->
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.imageio</groupId>
|
|
<artifactId>imageio-webp</artifactId>
|
|
<version>${twelvemonkeys.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- Needed only if you deploy ImageIO plugins as part of a web app.
|
|
-->
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.servlet</groupId>
|
|
<artifactId>servlet</artifactId>
|
|
<version>${twelvemonkeys.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
|
|
<!-- MySQL DB -->
|
|
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>8.0.30</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.13.0</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>rpm-maven-plugin</artifactId>
|
|
<version>2.3.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-rpm</id>
|
|
<goals>
|
|
<goal>rpm</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<license>GPL (c) 2024, mousetech.com</license>
|
|
<distribution>Gourmetj</distribution>
|
|
<group>Application/Collectors</group>
|
|
<packager>Tom Holloway</packager>
|
|
<prefix>/usr/local</prefix>
|
|
<changelogFile>src/changelog</changelogFile>
|
|
<defineStatements>
|
|
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
|
|
</defineStatements>
|
|
<mappings>
|
|
<mapping>
|
|
<directory>/opt/mousetech/gourmetj</directory>
|
|
<filemode>750</filemode>
|
|
<username>gourmetj</username>
|
|
<groupname>gourmetj</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>
|
|
target/${project.build.finalName}.jar</location>
|
|
</source>
|
|
<softlinkSource>
|
|
<destination>gourmetj.jar</destination>
|
|
<location>
|
|
${project.build.finalName}.jar</location>
|
|
</softlinkSource>
|
|
</sources>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/opt/mousetech/gourmetj</directory>
|
|
<configuration>true</configuration>
|
|
<filemode>640</filemode>
|
|
<username>gourmetj</username>
|
|
<groupname>gourmetj</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>src/main/conf</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/etc/systemd/system/</directory>
|
|
<directoryIncluded>false</directoryIncluded>
|
|
<configuration>true</configuration>
|
|
<filemode>740</filemode>
|
|
<sources>
|
|
<source>
|
|
<location>src/main/systemd/gourmetj.service</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
</mappings>
|
|
<preinstallScriptlet>
|
|
<script>echo "installing ${project.name} now"
|
|
/usr/bin/getent passwd gourmetj || /usr/sbin/useradd -r -d /opt/mousetech/gourmetj -s /sbin/nologin gourmetj
|
|
</script>
|
|
</preinstallScriptlet>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|