wwd 3 роки тому
батько
коміт
b8df083ebc

uatclient.keystore.jks → config/uatclient.keystore.jks


uatclient.truststore.jks → config/uatclient.truststore.jks


+ 23 - 0
pom.xml

@@ -181,6 +181,29 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>3.1.0</version>
+                <executions>
+                    <execution>
+                        <id>copy-resources</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            <resources>
+                                <resource>
+                                    <directory>src/main/resources/</directory>
+                                    <includes>
+                                        <include>**/*.properties</include>
+                                        <include>**/*.yml</include>
+                                        <include>**/*.xml</include>
+                                        <include>**/*.jks</include>
+                                    </includes>
+                                </resource>
+                            </resources>
+                            <outputDirectory>${project.build.directory}/config</outputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
             </plugin>
 
             <plugin>

+ 4 - 4
src/main/resources/application-prod.yml

@@ -28,10 +28,10 @@ spring:
         endpoint:
           identification:
             algorithm: ""
-        trust-store-location: "classpath:uatclient.truststore.jks"
+        trust-store-location: "config/uatclient.truststore.jks"
         trust-store-password: test1234
         key-password: test1234
-        key-store-location: "classpath:uatclient.keystore.jks"
+        key-store-location: "config/uatclient.keystore.jks"
         key-store-password: test1234
 
 
@@ -51,10 +51,10 @@ spring:
         endpoint:
           identification:
             algorithm: ""
-        trust-store-location: "classpath:uatclient.truststore.jks"
+        trust-store-location: "config/uatclient.truststore.jks"
         trust-store-password: test1234
         key-password: test1234
-        key-store-location: "classpath:uatclient.keystore.jks"
+        key-store-location: "config/uatclient.keystore.jks"
         key-store-password: test1234
 
 

+ 4 - 4
src/main/resources/application-uat.yml

@@ -28,10 +28,10 @@ spring:
         endpoint:
           identification:
             algorithm: ""
-        trust-store-location: "uatclient.truststore.jks"
+        trust-store-location: "config/uatclient.truststore.jks"
         trust-store-password: test1234
         key-password: test1234
-        key-store-location: "uatclient.keystore.jks"
+        key-store-location: "config/uatclient.keystore.jks"
         key-store-password: test1234
 
 
@@ -51,10 +51,10 @@ spring:
         endpoint:
           identification:
             algorithm: ""
-        trust-store-location: "uatclient.truststore.jks"
+        trust-store-location: "config/uatclient.truststore.jks"
         trust-store-password: test1234
         key-password: test1234
-        key-store-location: "uatclient.keystore.jks"
+        key-store-location: "config/uatclient.keystore.jks"
         key-store-password: test1234
 
 

BIN
src/main/resources/uatclient.keystore.jks


BIN
src/main/resources/uatclient.truststore.jks