You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Mohammad Shamsi <m....@gmail.com> on 2015/09/15 10:17:15 UTC

possible regression bug in karaf-maven-plugin 4.0.1

Hi,

karaf-maven-plugin (version 4.0.1) is ignoring the feature version and
installing all available versions of given feature in the repository.

to reproduce:
a karaf-maven-plugin with only one feature ( jpa/2.1.0) is installing both
jpa 2.1.0 and 1.0.4 features (from enterprise repository).


*<configuration>*





* <startupFeatures/> <bootFeatures> <feature>jpa/2.1.0</feature>
</bootFeatures> <installedFeatures/></configuration>*

In the console, one can see the following log, which is showing both
features are being installed:

*[INFO] Feature jpa is defined as a boot feature*
[INFO] == Installing artifact
mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
*[INFO] Feature jpa is defined as a boot feature*
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
[INFO] == Installing artifact
mvn:org.apache.aries/org.apache.aries.util/1.1.0
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
[INFO] == Installing artifact
mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4


Cheers,

Re: possible regression bug in karaf-maven-plugin 4.0.1

Posted by Achim Nierbeck <bc...@googlemail.com>.
thanks, Achim


2015-09-15 10:25 GMT+02:00 Mohammad Shamsi <m....@gmail.com>:

> KARAF-3994 is crated.
>
> https://issues.apache.org/jira/browse/KARAF-3994
>
> On Tue, 15 Sep 2015 at 10:19 Achim Nierbeck <bc...@googlemail.com>
> wrote:
>
>> Hi Mohammad,
>>
>> could you open a new Jira issue for this?
>>
>>
>> Thanks, Achim
>>
>>
>> 2015-09-15 10:17 GMT+02:00 Mohammad Shamsi <m....@gmail.com>:
>>
>>> Hi,
>>>
>>> karaf-maven-plugin (version 4.0.1) is ignoring the feature version and
>>> installing all available versions of given feature in the repository.
>>>
>>> to reproduce:
>>> a karaf-maven-plugin with only one feature ( jpa/2.1.0) is installing
>>> both jpa 2.1.0 and 1.0.4 features (from enterprise repository).
>>>
>>>
>>> *<configuration>*
>>>
>>>
>>>
>>>
>>>
>>> * <startupFeatures/> <bootFeatures> <feature>jpa/2.1.0</feature>
>>> </bootFeatures> <installedFeatures/></configuration>*
>>>
>>> In the console, one can see the following log, which is showing both
>>> features are being installed:
>>>
>>> *[INFO] Feature jpa is defined as a boot feature*
>>> [INFO] == Installing artifact
>>> mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
>>> *[INFO] Feature jpa is defined as a boot feature*
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries/org.apache.aries.util/1.1.0
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
>>> [INFO] == Installing artifact
>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4
>>>
>>>
>>> Cheers,
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: possible regression bug in karaf-maven-plugin 4.0.1

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks Mohammad,

I will take a look.

Regards
JB

On 09/15/2015 10:25 AM, Mohammad Shamsi wrote:
> KARAF-3994 is crated.
>
> https://issues.apache.org/jira/browse/KARAF-3994
>
> On Tue, 15 Sep 2015 at 10:19 Achim Nierbeck <bcanhome@googlemail.com
> <ma...@googlemail.com>> wrote:
>
>     Hi Mohammad,
>
>     could you open a new Jira issue for this?
>
>
>     Thanks, Achim
>
>
>     2015-09-15 10:17 GMT+02:00 Mohammad Shamsi <m.h.shams@gmail.com
>     <ma...@gmail.com>>:
>
>         Hi,
>
>         karaf-maven-plugin (version 4.0.1) is ignoring the feature
>         version and installing all available versions of given feature
>         in the repository.
>
>         to reproduce:
>         a karaf-maven-plugin with only one feature ( jpa/2.1.0) is
>         installing both jpa 2.1.0 and 1.0.4 features (from enterprise
>         repository).
>
>         /<configuration>
>         /
>         /<startupFeatures/>
>         <bootFeatures>
>         *<feature>jpa/2.1.0</feature>*
>         </bootFeatures>
>         <installedFeatures/>
>         </configuration>/
>         /
>         /
>         In the console, one can see the following log, which is showing
>         both features are being installed:
>
>         *[INFO] Feature jpa is defined as a boot feature*
>         [INFO] == Installing artifact
>         mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
>         *[INFO] Feature jpa is defined as a boot feature*
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
>         [INFO] == Installing artifact
>         mvn:org.apache.aries/org.apache.aries.util/1.1.0
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
>         [INFO] == Installing artifact
>         mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4
>
>
>         Cheers,
>
>
>
>
>
>
>     --
>
>     Apache Member
>     Apache Karaf <http://karaf.apache.org/> Committer & PMC
>     OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>     Committer & Project Lead
>     blog <http://notizblog.nierbeck.de/>
>     Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
>     Software Architect / Project Manager / Scrum Master
>

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

Re: possible regression bug in karaf-maven-plugin 4.0.1

Posted by Mohammad Shamsi <m....@gmail.com>.
KARAF-3994 is crated.

https://issues.apache.org/jira/browse/KARAF-3994

On Tue, 15 Sep 2015 at 10:19 Achim Nierbeck <bc...@googlemail.com> wrote:

> Hi Mohammad,
>
> could you open a new Jira issue for this?
>
>
> Thanks, Achim
>
>
> 2015-09-15 10:17 GMT+02:00 Mohammad Shamsi <m....@gmail.com>:
>
>> Hi,
>>
>> karaf-maven-plugin (version 4.0.1) is ignoring the feature version and
>> installing all available versions of given feature in the repository.
>>
>> to reproduce:
>> a karaf-maven-plugin with only one feature ( jpa/2.1.0) is installing
>> both jpa 2.1.0 and 1.0.4 features (from enterprise repository).
>>
>>
>> *<configuration>*
>>
>>
>>
>>
>>
>> * <startupFeatures/> <bootFeatures> <feature>jpa/2.1.0</feature>
>> </bootFeatures> <installedFeatures/></configuration>*
>>
>> In the console, one can see the following log, which is showing both
>> features are being installed:
>>
>> *[INFO] Feature jpa is defined as a boot feature*
>> [INFO] == Installing artifact
>> mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
>> *[INFO] Feature jpa is defined as a boot feature*
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
>> [INFO] == Installing artifact
>> mvn:org.apache.aries/org.apache.aries.util/1.1.0
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
>> [INFO] == Installing artifact
>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4
>>
>>
>> Cheers,
>>
>>
>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>

Re: possible regression bug in karaf-maven-plugin 4.0.1

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Mohammad,

could you open a new Jira issue for this?


Thanks, Achim


2015-09-15 10:17 GMT+02:00 Mohammad Shamsi <m....@gmail.com>:

> Hi,
>
> karaf-maven-plugin (version 4.0.1) is ignoring the feature version and
> installing all available versions of given feature in the repository.
>
> to reproduce:
> a karaf-maven-plugin with only one feature ( jpa/2.1.0) is installing both
> jpa 2.1.0 and 1.0.4 features (from enterprise repository).
>
>
> *<configuration>*
>
>
>
>
>
> * <startupFeatures/> <bootFeatures> <feature>jpa/2.1.0</feature>
> </bootFeatures> <installedFeatures/></configuration>*
>
> In the console, one can see the following log, which is showing both
> features are being installed:
>
> *[INFO] Feature jpa is defined as a boot feature*
> [INFO] == Installing artifact
> mvn:org.apache.felix/org.apache.felix.coordinator/1.0.0
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.1.0
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.1.0
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.1.0
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.1.0
> *[INFO] Feature jpa is defined as a boot feature*
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4
> [INFO] == Installing artifact
> mvn:org.apache.aries/org.apache.aries.util/1.1.0
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.2
> [INFO] == Installing artifact
> mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4
>
>
> Cheers,
>
>
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master