Hi,

The repository is missing.

Cave is able to deal with several repositories.

So, first, you have to create the repository:

karaf@root()> cave:repository-create foo

And then, your repository is available as Maven repository on the
following URL:

http://localhost:8181/cave/maven/foo

Regards
JB

On 11/09/2018 10:43, Simon Huebner wrote:
> Hi,
> 
> you can give me an example?
> When I use Gradle to upload an artifact via maven wrapper service I get
> the following error message:
> Could not PUT
> 'http://localhost:8181/cave/maven/de/fraunhofer/ise/project1-sample/1.1/project1-sample-1.1.jar
> 
> 
> The rest wrapper does not work for me as you can see in my inital mail.
> 
> Kind regards,
> Simon
> 
> Am 2018-09-07 09:53, schrieb Jean-Baptiste Onofré:
>> Hi,
>>
>> This part is for OSGi Repository.
>>
>> You can use the Cave Maven repository, and then you can use the "classy"
>> mvn deploy:deploy-file or gradle or any http client.
>>
>> Regards
>> JB
>>
>> On 07/09/2018 09:49, Simon Huebner wrote:
>>> Hi,
>>> I'm looking for a way to upload a bundle to a cave installation using
>>> gradle/jenkins.
>>> I have already tried the possibilities described on
>>> http://karaf.apache.org/manual/cave/latest-4/#_http_wrapper_service.
>>>
>>> The maven wrapper seems to grant read-only access, at least publishing
>>> via the gradle maven-publish plugin doesn't work.
>>>
>>> Access via the REST wrapper returns an error message:
>>> JAXBException occurred : com.sun.xml.bind.v2.ContextFactory not found by
>>> org.apache.karaf.cave.server.rest [65].
>>> com.sun.xml.bind.v2.ContextFactory not found by
>>> org.apache.karaf.cave.server.rest [65].
>>>
>>> Is there an example of how to upload a bundle to a remote cave via
>>> Jenkins, or gradle?
>>>
>>> Kind regards,
>>> Simon
>>>
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to