修改pom

This commit is contained in:
moyangzhan 2024-02-18 18:37:45 +08:00
parent 2ba531687c
commit 8bcdf53511
4 changed files with 27 additions and 30 deletions

View File

@ -92,14 +92,14 @@ mvn clean package -Dmaven.test.skip=true
a. jar包启动
```plaintext
cd adi-chat/target
cd adi-bootstrap/target
nohup java -jar -Xms768m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError adi-chat-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev|prod] dev/null 2>&1 &
```
b. docker启动
```plaintext
cd adi-chat
cd adi-bootstrap
docker build . -t aideepin:0.0.1
docker run -d \
--name=aideepin \

View File

@ -33,5 +33,29 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.moyz.adi.BootstrapApplication</mainClass>
<includeSystemScope>true</includeSystemScope>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>build-info</goal>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -29,31 +29,4 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.moyz.adi.BootstrapApplication</mainClass>
<includeSystemScope>true</includeSystemScope>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>build-info</goal>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -13,7 +13,7 @@ services:
aideepin:
image: adi-bootstrap:${IMAGE_VERSION}
container_name: aideepin
build: ../adi-chat
build: ../adi-bootstrap
environment:
APP_VERSION: ${APP_VERSION}
TZ: ${TZ}