Ok, now it's clear. It has to be mvn install. If you run mvn package,
then it tries to download artefacts from remote repository or fails.

m.

On Tue, May 23, 2017 at 5:37 PM, Michal Hlaváč <[email protected]> wrote:
> How is it possible that building karaf with mvn clean package installs
> artefacts in local repository?
>
> thanks, m.
>
> On Tue, May 23, 2017 at 1:30 PM, Michal Hlaváč <[email protected]> wrote:
>> Hi,
>>
>> I have multi module maven project. There are some osgi bundles and
>> also feature module with features packaging and distribution module
>> with karaf-assembly packaging.
>>
>> When I run mvn clean install, it works!
>> But when I run mvn package it fails on error when trying to build
>> karaf assembly.
>>
>> Error resolving artifact
>> camp.xit.identity:account-manager-features:xml:features:1.0-SNAPSHOT:
>> [Could not find artifact
>> camp.xit.identity:account-manager-features:xml:features:1.0-SNAPSHOT]
>>
>>
>> As I understand, karaf-maven-plugin uses different method to resolve
>> artifacts than maven.
>>
>> Ok, but I can't use maven-release-plugin to release my artifacts
>> because it runs only package goal on prepare phase.
>>
>> Is there some way how to release this artifacts with maven-release-plugin
>>
>> thanks, m.

Reply via email to