You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Michal Hlaváč <mi...@hlavki.eu> on 2017/05/23 11:30:19 UTC

Multi module maven project with karaf-assembly packaging

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.

Re: Multi module maven project with karaf-assembly packaging

Posted by Michal Hlaváč <mi...@hlavki.eu>.
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áč <mi...@hlavki.eu> 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áč <mi...@hlavki.eu> 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.

Re: Multi module maven project with karaf-assembly packaging

Posted by Michal Hlaváč <mi...@hlavki.eu>.
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áč <mi...@hlavki.eu> 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.