|
9 | 9 | <parent> |
10 | 10 | <groupId>com.sap.hcp.cf.logging</groupId> |
11 | 11 | <artifactId>cf-java-logging-support-parent</artifactId> |
12 | | - <version>3.2.1</version> |
| 12 | + <version>3.3.0</version> |
13 | 13 | <relativePath>../pom.xml</relativePath> |
14 | 14 | </parent> |
15 | 15 |
|
|
19 | 19 | <maven.compiler.source>11</maven.compiler.source> |
20 | 20 | <maven.compiler.target>11</maven.compiler.target> |
21 | 21 | <spring.boot.version>2.3.4.RELEASE</spring.boot.version> |
| 22 | + <keytool.plugin.version>1.5</keytool.plugin.version> |
| 23 | + <keystore.token.store_password>0bzhBRNUXBR5 |
| 24 | + </keystore.token.store_password> |
| 25 | + <keystore.token.key_password>0bzhBRNUXBR5 |
| 26 | + </keystore.token.key_password> |
| 27 | + <keystore.token.key_alias>jwt-token</keystore.token.key_alias> |
| 28 | + <keystore.token.dname>CN=cf-java-logging-support, OU=None, O=SAP, |
| 29 | + L=Unknown, ST=Unknown, C=Unknown |
| 30 | + </keystore.token.dname> |
22 | 31 | </properties> |
23 | 32 |
|
24 | 33 | <dependencyManagement> |
|
68 | 77 | <artifactId>spring-security-test</artifactId> |
69 | 78 | <scope>test</scope> |
70 | 79 | </dependency> |
71 | | - |
| 80 | + |
72 | 81 | <!-- We're using the Servlet Filter instrumentation --> |
73 | 82 | <dependency> |
74 | 83 | <groupId>com.sap.hcp.cf.logging</groupId> |
|
90 | 99 | </dependencies> |
91 | 100 |
|
92 | 101 | <build> |
| 102 | + <resources> |
| 103 | + <resource> |
| 104 | + <directory>src/main/resources</directory> |
| 105 | + <filtering>true</filtering> |
| 106 | + </resource> |
| 107 | + <resource> |
| 108 | + <directory>target/generated-resources/keystore</directory> |
| 109 | + </resource> |
| 110 | + </resources> |
| 111 | + |
93 | 112 | <plugins> |
94 | 113 | <plugin> |
95 | 114 | <groupId>org.springframework.boot</groupId> |
96 | 115 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 116 | + <version>${spring.boot.version}</version> |
97 | 117 | <executions> |
98 | 118 | <execution> |
99 | 119 | <goals> |
|
106 | 126 | </build> |
107 | 127 |
|
108 | 128 | <profiles> |
| 129 | + <profile> |
| 130 | + <id>initialze-keystore</id> |
| 131 | + <activation> |
| 132 | + <file> |
| 133 | + <missing>target/generated-resources/keystore/token_keystore.jks |
| 134 | + </missing> |
| 135 | + </file> |
| 136 | + </activation> |
| 137 | + <build> |
| 138 | + <plugins> |
| 139 | + <plugin> |
| 140 | + <groupId>org.codehaus.mojo</groupId> |
| 141 | + <artifactId>keytool-maven-plugin</artifactId> |
| 142 | + <version>${keytool.plugin.version}</version> |
| 143 | + <executions> |
| 144 | + <execution> |
| 145 | + <id>create-key-pair</id> |
| 146 | + <goals> |
| 147 | + <goal>generateKeyPair</goal> |
| 148 | + </goals> |
| 149 | + <phase>generate-resources</phase> |
| 150 | + </execution> |
| 151 | + </executions> |
| 152 | + <configuration> |
| 153 | + <keystore>target/generated-resources/keystore/token_keystore.jks |
| 154 | + </keystore> |
| 155 | + <storepass>${keystore.token.store_password}</storepass> |
| 156 | + <keypass>${keystore.token.key_password}</keypass> |
| 157 | + <alias>${keystore.token.key_alias}</alias> |
| 158 | + <dname>${keystore.token.dname}</dname> |
| 159 | + <sigalg>SHA256withRSA</sigalg> |
| 160 | + <ext></ext> |
| 161 | + <validity>100</validity> |
| 162 | + <keyalg>RSA</keyalg> |
| 163 | + <keysize>2048</keysize> |
| 164 | + </configuration> |
| 165 | + </plugin> |
| 166 | + </plugins> |
| 167 | + </build> |
| 168 | + </profile> |
109 | 169 | <profile> |
110 | 170 | <id>logback</id> |
111 | 171 | <activation> |
112 | 172 | <activeByDefault>true</activeByDefault> |
113 | 173 | </activation> |
114 | | - |
115 | 174 | <dependencies> |
116 | 175 | <dependency> |
117 | 176 | <groupId>org.springframework.boot</groupId> |
|
129 | 188 | <activation> |
130 | 189 | <activeByDefault>false</activeByDefault> |
131 | 190 | </activation> |
132 | | - |
133 | 191 | <dependencies> |
134 | 192 | <dependency> |
135 | 193 | <groupId>org.springframework.boot</groupId> |
|
0 commit comments