File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,6 +310,24 @@ commands:
310310 - attach_workspace :
311311 at : C:\Users\circleci\project
312312
313+ create_maven_settings :
314+ steps :
315+ - run :
316+ name : Create Maven settings.xml
317+ command : |
318+ mkdir -p ~/.m2
319+ cat > ~/.m2/settings.xml \<< EOF
320+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
321+ <servers>
322+ <server>
323+ <id>ossindex</id>
324+ <username>${OSSINDEX_USERNAME}</username>
325+ <password>${OSSINDEX_TOKEN}</password>
326+ </server>
327+ </servers>
328+ </settings>
329+ EOF
330+
313331jobs :
314332 license-check :
315333 parameters :
@@ -432,6 +450,7 @@ jobs:
432450 compute_size : << parameters.compute_size >>
433451 - install_maven :
434452 compute_size : << parameters.compute_size >>
453+ - create_maven_settings
435454 - restore_cache :
436455 keys :
437456 - << parameters.maven_cache_name_prefix >>-dependency-check-data-{{ checksum "/tmp/dependency-check-data/odc.mv.db" }}
Original file line number Diff line number Diff line change 256256 <nvdApiKeyEnvironmentVariable >NVD_API_KEY</nvdApiKeyEnvironmentVariable >
257257 <nvdApiServerId >nvd-api</nvdApiServerId >
258258
259+ <ossIndexServerId >ossindex</ossIndexServerId >
259260 <!-- The OSS Index Server (https://ossindex.sonatype.org) can sometimes be flaky -->
260261 <ossIndexWarnOnlyOnRemoteErrors >true</ossIndexWarnOnlyOnRemoteErrors >
261262
You can’t perform that action at this time.
0 commit comments