Commit 7e9b8afd authored by hanbing's avatar hanbing

测试多模块构建

parent 7ce1cff0
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
<artifactId>signal-feign-service</artifactId> <artifactId>signal-feign-service</artifactId>
<version>0.0.2</version> <version>0.0.2</version>
</dependency> </dependency>
<dependency>
<groupId>net.wanji</groupId>
<artifactId>wj-common</artifactId>
<version>0.2.1</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId> <artifactId>spring-boot-starter-websocket</artifactId>
...@@ -260,6 +265,16 @@ ...@@ -260,6 +265,16 @@
<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>
<!-- 将jib与mvn构建的生命周期绑定 -->
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration> <configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字--> <!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from> <from>
...@@ -301,14 +316,6 @@ ...@@ -301,14 +316,6 @@
<!--可以进行HTTP--> <!--可以进行HTTP-->
<allowInsecureRegistries>true</allowInsecureRegistries> <allowInsecureRegistries>true</allowInsecureRegistries>
</configuration> </configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
......
package net.wanji.web.service.impl;
import net.wanji.common.TestCommon;
/**
* @author Kent HAN
* @date 2023/1/17 10:47
*/
public class TestServiceImpl {
public static void main(String[] args) {
TestCommon testCommon = new TestCommon();
testCommon.setTestString("test");
System.out.println(testCommon.getTestString());
}
}
package net.wanji.common;
/**
* @author Kent HAN
* @date 2023/1/17 10:45
*/
public class TestCommon {
private String testString;
public String getTestString() {
return testString;
}
public void setTestString(String testString) {
this.testString = testString;
}
}
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