我们正在使用nexus 3.0
我将带有curl
的文件上传到原始存储库,如文档中所示:
我试图用以下方式查询:
curl -u login:pw https://mynexus/myrepo
curl -u login:pw https://mynexus/myrepo/
但只收到错误的HTML
如何使用curl
查询所有上传的文件?
答案 0 :(得分:3)
Sensor* novo(int id, int tempo, char* l, char* t) {
Sensor* novoSensor = (Sensor*)malloc(sizeof(struct Sensor));
//novoSensor->id = ++(*totalSens);
novoSensor->id = id;
novoSensor->intervalo = tempo;
strcpy(novoSensor->local, l);
strcpy(novoSensor->tipo, t);
novoSensor->active = 1;
novoSensor->anterior = NULL;
novoSensor->proximo = NULL;
//gravaSensor(novoSensor, (*totalSens), 1);
return novoSensor;
}
void insereSensorFim(Sensor** Lista, Sensor* novo) {
Sensor* atual = *Lista;
if ((*Lista == NULL))
(*Lista = novo);
else {
while (atual->proximo != NULL) {
atual = atual->proximo;
}
atual->proximo = novo;
novo->anterior = atual;
}
}
像这样的东西
答案 1 :(得分:0)
使用Nexus RAST API: https://help.sonatype.com/repomanager3/rest-and-integration-api/search-api
例如:
curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'