这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker-modules/docker-multi-module-maven/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS DEPENDENCIES

WORKDIR /opt/app
COPY api/pom.xml api/pom.xml
COPY docker-rest-api/pom.xml docker-rest-api/pom.xml
COPY domain/pom.xml domain/pom.xml
COPY pom.xml .

Expand All @@ -12,15 +12,15 @@ FROM maven:3.8.5-openjdk-17 AS BUILDER
WORKDIR /opt/app
COPY --from=DEPENDENCIES /root/.m2 /root/.m2
COPY --from=DEPENDENCIES /opt/app/ /opt/app
COPY api/src /opt/app/api/src
COPY docker-rest-api/src /opt/app/docker-rest-api/src
COPY domain/src /opt/app/domain/src

RUN mvn -B -e clean install -DskipTests

FROM openjdk:17-slim

WORKDIR /opt/app
COPY --from=BUILDER /opt/app/api/target/*.jar /app.jar
COPY --from=BUILDER /opt/app/docker-rest-api/target/*.jar /app.jar
EXPOSE 8080

ENTRYPOINT ["java", "-jar", "/app.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>api</artifactId>
<artifactId>docker-rest-api</artifactId>

<parent>
<groupId>com.baeldung.docker-multi-module-maven</groupId>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>com.baeldung.docker-multi-module-maven</groupId>
<artifactId>domain</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion docker-modules/docker-multi-module-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</parent>

<modules>
<module>api</module>
<module>docker-rest-api</module>
<module>domain</module>
</modules>
</project>
1 change: 1 addition & 0 deletions docker-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<properties>
<spring-boot.version>3.3.2</spring-boot.version>
<h2.version>2.2.224</h2.version>
</properties>

</project>
2 changes: 1 addition & 1 deletion maven-modules/versions-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</parent>

<modules>
<module>original</module>
<module>versions-plugin-original-state</module>
</modules>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>original</artifactId>
<artifactId>versions-plugin-original-state</artifactId>
<version>0.0.1-SNAPSHOT</version>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-modules/spring-cloud-bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<module>config</module>
<module>discovery</module>
<module>gateway</module>
<module>gateway-2</module>
<module>spring-cloud-gateway-intro</module>
<module>zipkin-log-svc-book</module>
<module>zipkin-log-svc-rating</module>
<module>customer-service</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>gateway-2</artifactId>
<name>gateway-2</name>
<artifactId>spring-cloud-gateway-intro</artifactId>
<name>spring-cloud-gateway-intro</name>
<packaging>jar</packaging>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>server</artifactId>
<artifactId>oauth2-authorization-server</artifactId>
<packaging>jar</packaging>
<name>server</name>
<name>oauth2-authorization-server</name>
<description>Demo project for Dynamic Client: Server module</description>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>client</artifactId>
<artifactId>oauth2-dynamic-client</artifactId>
<packaging>jar</packaging>
<name>client</name>
<name>oauth2-dynamic-client</name>
<description>Demo project for Dynamic Client: Client module</description>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<description>Demo project for Spring Security Authorization Server Dynamic Client Registration</description>

<modules>
<module>server</module>
<module>client</module>
<module>oauth2-authorization-server</module>
<module>oauth2-dynamic-client</module>
</modules>

<build>
Expand Down