-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
Hi, when I operate repository, my process finished with exit. Here is my code
Artifactory artifactory = ArtifactoryClientBuilder.create()
.setUrl("http://192.168.1.**:8081/artifactory")
.setUsername("admin")
.setPassword("?????")
.build();
DebianRepositorySettingsImpl settings = new DebianRepositorySettingsImpl();
settings.setDebianTrivialLayout(true);
Repository repository = artifactory.repositories()
.builders()
.localRepositoryBuilder()
.key("NewRepoName")
.description("new local repository")
.repositorySettings(settings)
.build();
String result3 = artifactory.repositories().create(2, repository);
The exception is :```
Exception in thread "main" org.apache.http.client.HttpResponseException: {
"errors" : [ {
"status" : 400,
"message" : "This REST API is available only in Artifactory Pro (see: http://www.jfrog.com/addons.php). If you are already running Artifactory Pro please make sure your server is activated with a valid license key.\n"
} ]
That's what happens when I do any operation to User. I want to know that is my code wrong or something else.
Metadata
Metadata
Assignees
Labels
No labels