Commit 10f52bf8 authored by hanbing's avatar hanbing

海康jar包部署

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