打包/结构调整

This commit is contained in:
Shikong 2023-05-14 01:22:02 +08:00
parent aff0b6ca98
commit ce129597a9
4 changed files with 45 additions and 6 deletions

View File

@ -18,12 +18,6 @@
</properties>
<dependencies>
<dependency>
<groupId>cn.skcks.matrix.v2</groupId>
<artifactId>orm</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>cn.skcks.matrix.v2</groupId>
<artifactId>common</artifactId>

View File

@ -0,0 +1,14 @@
[Unit]
Description=sk-matrix-service
After=syslog.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/sk-matrix-service
ExecStart=/usr/bin/java -jar /opt/sk-matrix-service/starter-*.jar
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

View File

@ -10,6 +10,7 @@
</parent>
<artifactId>starter</artifactId>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>17</maven.compiler.source>
@ -67,4 +68,34 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<finalName>${project.name}</finalName>
<mainClass>cn.skcks.matrix.v2.Application</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>