File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM eclipse-temurin:17-jre
22
33# deployment unit
4- COPY target/service-scan-server-*-jar-with-dependencies .jar /scanserver/service-scan-server-*-jar-with-dependencies .jar
4+ COPY target/service-scan-server-*.jar /scanserver/service-scan-server-*.jar
55
6- CMD ["java" , "-jar" , "/scanserver/service-scan-server-*-jar-with-dependencies .jar" ]
6+ CMD ["java" , "-jar" , "/scanserver/service-scan-server-*.jar" ]
77
Original file line number Diff line number Diff line change 149149 <skipNexusStagingDeployMojo >true</skipNexusStagingDeployMojo >
150150 </configuration >
151151 </plugin >
152- <plugin >
153- <groupId >org.apache.maven.plugins</groupId >
154- <artifactId >maven-assembly-plugin</artifactId >
155- <version >3.8.0</version >
156- <configuration >
157- <archive >
158- <manifest >
159- <addClasspath >true</addClasspath >
160- <mainClass >org.csstudio.scan.server.ScanServerInstance</mainClass >
161- <classpathPrefix >lib/</classpathPrefix >
162- </manifest >
163- </archive >
164- <descriptorRefs >
165- <descriptorRef >jar-with-dependencies</descriptorRef >
166- </descriptorRefs >
167- </configuration >
168- <executions >
169- <execution >
170- <id >assemble-all</id >
171- <phase >package</phase >
172- <goals >
173- <goal >single</goal >
174- </goals >
175- </execution >
176- </executions >
177- </plugin >
178152 </plugins >
179153 </build >
154+
155+ <profiles >
156+ <profile >
157+ <id >executable-jar</id >
158+ <build >
159+ <plugins >
160+ <plugin >
161+ <groupId >org.springframework.boot</groupId >
162+ <artifactId >spring-boot-maven-plugin</artifactId >
163+ <version >2.7.9</version >
164+ <executions >
165+ <execution >
166+ <goals >
167+ <goal >repackage</goal >
168+ </goals >
169+ </execution >
170+ </executions >
171+ </plugin >
172+ </plugins >
173+ </build >
174+ </profile >
175+ </profiles >
180176</project >
You can’t perform that action at this time.
0 commit comments