gourmetj-springboot/pom.xml

264 lines
10 KiB
XML
Raw Normal View History

2021-12-28 11:40:09 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2021-12-28 13:07:36 +00:00
<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>
2021-12-28 11:40:09 +00:00
2021-12-28 13:07:36 +00:00
<groupId>com.mousetech.gourmet</groupId>
2021-12-28 18:30:53 +00:00
<artifactId>gourmetj</artifactId>
2024-09-21 21:21:57 +00:00
<version>2.0.37</version>
2021-12-28 13:07:36 +00:00
<packaging>jar</packaging>
2021-12-28 11:40:09 +00:00
2021-12-28 18:30:53 +00:00
<name>GourmetJ</name>
<description>Gourmet Recipe Manager (Spring Boot)</description>
<url>https://www.mousetech.com</url>
2021-12-28 11:40:09 +00:00
2021-12-28 13:07:36 +00:00
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.3</version>
2021-12-28 13:07:36 +00:00
<relativePath /> <!-- lookup parent from repository -->
</parent>
2021-12-30 15:22:17 +00:00
<repositories>
<repository>
<id>Primefaces</id>
<name>Primefaces repo</name>
<url>https://repository.primefaces.org</url>
</repository>
</repositories>
2021-12-28 13:07:36 +00:00
<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>
2021-12-28 13:07:36 +00:00
<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>
2021-12-28 13:07:36 +00:00
</properties>
2021-12-28 11:40:09 +00:00
2021-12-28 13:07:36 +00:00
<dependencyManagement>
<dependencies>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>${jakarta.validation-api.version}</version>
</dependency>
2021-12-28 13:07:36 +00:00
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>joinfaces-bom</artifactId>
2021-12-28 13:07:36 +00:00
<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>
2021-12-28 13:07:36 +00:00
</dependencies>
</dependencyManagement>
2021-12-28 11:40:09 +00:00
2021-12-28 11:40:09 +00:00
<dependencies>
2021-12-28 13:07:36 +00:00
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>primefaces-spring-boot-starter</artifactId>
</dependency>
2021-12-30 15:22:17 +00:00
<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>
2021-12-28 13:07:36 +00:00
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
2021-12-28 18:30:53 +00:00
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
2021-12-29 02:12:23 +00:00
</dependency>
<!--
https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
2021-12-29 02:12:23 +00:00
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<!--
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
2021-12-29 02:12:23 +00:00
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
2021-12-28 18:30:53 +00:00
</dependency>
<!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
2022-01-03 14:06:42 +00:00
<scope>provided</scope>
</dependency>
2022-01-03 14:06:42 +00:00
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
2022-01-01 19:09:25 +00:00
</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>
2022-10-19 02:22:47 +00:00
<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>
2022-10-19 02:22:47 +00:00
<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>
2021-12-28 13:07:36 +00:00
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
2021-12-28 11:40:09 +00:00
</dependencies>
2021-12-28 13:07:36 +00:00
<build>
2024-09-21 17:06:32 +00:00
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>
</plugins>
</pluginManagement>
2021-12-28 13:07:36 +00:00
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
2024-09-13 17:36:33 +00:00
<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>
2024-09-13 18:53:33 +00:00
<filemode>640</filemode>
2024-09-13 17:36:33 +00:00
<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>
2024-09-13 18:53:33 +00:00
<filemode>740</filemode>
2024-09-13 17:36:33 +00:00
<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>
2021-12-28 13:07:36 +00:00
</plugins>
</build>
2024-09-13 17:36:33 +00:00
2021-12-28 11:40:09 +00:00
</project>