stevespringett / nist-data-mirror

A simple Java command-line utility to mirror the CVE JSON data from NIST.
Apache License 2.0
206 stars 93 forks source link

Help needed: Are the XMLs supposed to be uploaded in Nexus? #4

Closed bzon closed 7 years ago

bzon commented 7 years ago

I had a successful execution but nothing gets uploaded to my Nexus repo.

My init.gradle


allprojects  {
  apply plugin: 'maven'

  repositories {
    maven { url "http://localhost:8081/nexus/content/groups/public" }
    mavenCentral()
  }

  configurations {
      deployerJars
  }

  dependencies {
      deployerJars "org.apache.maven.wagon:wagon-http:2.5"
  }

  uploadArchives {
      repositories.mavenDeployer {
          configuration = configurations.deployerJars
          repository(url: "http://localhost:8081/nexus/content/repositories/NVD") {
              authentication(userName: "admin", password: "admin123")
          }
          snapshotRepository(url: "http://localhost:8081/nexus/content/repositories/NVD") {
              authentication(userName: "admin", password: "admin123")
          }
      }
  }
}
$ gradle -I init.gradle clean UploadArchives
:clean
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:processResources UP-TO-DATE
:classes
:jar
:uploadArchives
BUILD SUCCESSFUL
stevespringett commented 7 years ago

No that's not the purpose. The purpose of this tool is to create a mirror of the NIST NVD data on a file system with the intent of providing HTTP/HTTPS access to it so that tools like OWASP Dependency-Check can use the NVD mirror.

bzon commented 7 years ago

Thanks for the clarification. Closing this now.