hyper-v-java/pom.xml
2023-01-15 22:54:08 +08:00

83 lines
2.7 KiB
XML

<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>cn.x47</groupId>
<artifactId>hyper-v-java</artifactId>
<version>1.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>hyper-v-java</name>
<url>https://git.dr1997.com/hyper-v/hyper-v-java</url>
<properties>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.profesorfalken</groupId>
<artifactId>jPowerShell</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>gitea</id>
<url>https://git.dr1997.com/api/packages/hyper-v/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>https://git.dr1997.com/api/packages/hyper-v/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>https://git.dr1997.com/api/packages/hyper-v/maven</url>
</snapshotRepository>
</distributionManagement>
<build>
<finalName>${project.name}</finalName>
<plugins>
<!-- 基本构建 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
<resources>
<!-- 仅针对部分配置文件做注入 -->
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.yml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>