Commit 10f52bf8 authored by hanbing's avatar hanbing

海康jar包部署

parent bd079cfd
...@@ -139,10 +139,18 @@ ...@@ -139,10 +139,18 @@
<groupId>com.github.pagehelper</groupId> <groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId> <artifactId>pagehelper-spring-boot-starter</artifactId>
</dependency> </dependency>
<!-- jersey -->
<dependency> <dependency>
<groupId>org.glassfish.jersey.media</groupId> <groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId> <artifactId>jersey-media-multipart</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.hikvision.artemis</groupId>
<artifactId>sdk</artifactId>
<version>1.1.7</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/artemis-http-client-1.1.7.jar</systemPath>
</dependency>
</dependencies> </dependencies>
<!-- <build>--> <!-- <build>-->
...@@ -158,6 +166,16 @@ ...@@ -158,6 +166,16 @@
<!-- </build>--> <!-- </build>-->
<build> <build>
<resources>
<resource>
<directory>lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
<plugins> <plugins>
<!-- 编译插件 --> <!-- 编译插件 -->
<plugin> <plugin>
...@@ -180,6 +198,7 @@ ...@@ -180,6 +198,7 @@
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix> <classpathPrefix>lib/</classpathPrefix>
<!-- 主类 -->
<mainClass>net.wanji.utc.UtcApplication</mainClass> <mainClass>net.wanji.utc.UtcApplication</mainClass>
</manifest> </manifest>
</archive> </archive>
...@@ -192,7 +211,6 @@ ...@@ -192,7 +211,6 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<!-- 主类 -->
<configuration> <configuration>
<finalName>signal-utc-service</finalName> <finalName>signal-utc-service</finalName>
<descriptors> <descriptors>
...@@ -248,58 +266,58 @@ ...@@ -248,58 +266,58 @@
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true --> <!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile --> <!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<plugin> <!-- <plugin>-->
<groupId>com.google.cloud.tools</groupId> <!-- <groupId>com.google.cloud.tools</groupId>-->
<artifactId>jib-maven-plugin</artifactId> <!-- <artifactId>jib-maven-plugin</artifactId>-->
<version>2.5.2</version> <!-- <version>2.5.2</version>-->
<configuration> <!-- <configuration>-->
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字--> <!-- &lt;!&ndash;from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字&ndash;&gt;-->
<from> <!-- <from>-->
<!--使用harbor上的openjdk镜像--> <!-- &lt;!&ndash;使用harbor上的openjdk镜像&ndash;&gt;-->
<image>10.100.1.87:5000/xinkong/openjdk:8-alpine3.9</image> <!-- <image>10.100.1.87:5000/xinkong/openjdk:8-alpine3.9</image>-->
<!--harbor服务器的登录信息--> <!-- &lt;!&ndash;harbor服务器的登录信息&ndash;&gt;-->
<auth> <!-- <auth>-->
<username>admin</username> <!-- <username>admin</username>-->
<password>Wanji300552</password> <!-- <password>Wanji300552</password>-->
</auth> <!-- </auth>-->
</from> <!-- </from>-->
<to> <!-- <to>-->
<image>10.100.1.87:5000/xinkong/${artifactId}:${version}</image> <!-- <image>10.100.1.87:5000/xinkong/${artifactId}:${version}</image>-->
<auth> <!-- <auth>-->
<username>admin</username> <!-- <username>admin</username>-->
<password>Wanji300552</password> <!-- <password>Wanji300552</password>-->
</auth> <!-- </auth>-->
</to> <!-- </to>-->
<container> <!-- <container>-->
<!--配置jvm虚拟机参数--> <!-- &lt;!&ndash;配置jvm虚拟机参数&ndash;&gt;-->
<jvmFlags> <!-- <jvmFlags>-->
<jvmFlag>-Xms512m</jvmFlag> <!-- <jvmFlag>-Xms512m</jvmFlag>-->
</jvmFlags> <!-- </jvmFlags>-->
<!--配置使用的时区--> <!-- &lt;!&ndash;配置使用的时区&ndash;&gt;-->
<environment> <!-- <environment>-->
<TZ>Asia/Shanghai</TZ> <!-- <TZ>Asia/Shanghai</TZ>-->
</environment> <!-- </environment>-->
<!--要暴露的端口--> <!-- &lt;!&ndash;要暴露的端口&ndash;&gt;-->
<ports> <!-- <ports>-->
<port>30000</port> <!-- <port>30000</port>-->
</ports> <!-- </ports>-->
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>--> <!-- &lt;!&ndash; <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>&ndash;&gt;-->
<creationTime>${maven.build.timestamp}</creationTime> <!-- <creationTime>${maven.build.timestamp}</creationTime>-->
<mainClass>com.wanji.web.SignalApplication</mainClass> <!-- <mainClass>com.wanji.web.SignalApplication</mainClass>-->
</container> <!-- </container>-->
<!--可以进行HTTP--> <!-- &lt;!&ndash;可以进行HTTP&ndash;&gt;-->
<allowInsecureRegistries>true</allowInsecureRegistries> <!-- <allowInsecureRegistries>true</allowInsecureRegistries>-->
</configuration> <!-- </configuration>-->
<executions> <!-- <executions>-->
<execution> <!-- <execution>-->
<phase>package</phase> <!-- <phase>package</phase>-->
<goals> <!-- <goals>-->
<goal>build</goal> <!-- <goal>build</goal>-->
</goals> <!-- </goals>-->
</execution> <!-- </execution>-->
</executions> <!-- </executions>-->
</plugin> <!-- </plugin>-->
</plugins> </plugins>
</build> </build>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment