You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by peterg <pe...@gmail.com> on 2011/10/12 15:11:37 UTC
Any way of telling karaf-maven-plugin:features-generate-descriptor
to ignore transitive dependencies?
Hi,
from my understanding, the features-generate-descriptor goal of the
karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
dependencies into the created feature.xml file.
I would like it to only include the bundles that I explicitly include in my
dependencies. That is, I would like the plugin to ignore transitive
dependencies. Now, is there a configuration parameter to achieve this? After
reading the plugin documentation (mvn help:describe) I cannot seem to find
such an option.
Currently I'm using a bunch of <excludes> to ignore transitive dependencies
but it's rather tedious and clutters the pom file.
best regards, Peter
--
View this message in context: http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415670.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Any way of telling karaf-maven-plugin:features-generate-descriptor
to ignore transitive dependencies?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
FYI: https://issues.apache.org/jira/browse/KARAF-931
Regards
JB
On 10/12/2011 03:11 PM, peterg wrote:
> from my understanding, the features-generate-descriptor goal of the
> karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
> dependencies into the created feature.xml file.
>
> I would like it to only include the bundles that I explicitly include in my
> dependencies. That is, I would like the plugin to ignore transitive
> dependencies. Now, is there a configuration parameter to achieve this? After
> reading the plugin documentation (mvn help:describe) I cannot seem to find
> such an option.
>
> Currently I'm using a bunch of<excludes> to ignore transitive dependencies
> but it's rather tedious and clutters the pom file.
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Any way of telling karaf-maven-plugin:features-generate-descriptor to ignore transitive dependencies?
Posted by David Jencks <da...@yahoo.com>.
umm, you also need
<extensions>true</extensions>
in the karaf-maven-plugin configuration
david jencks
On Oct 12, 2011, at 9:46 AM, David Jencks wrote:
> Why don't you use the kar packaging?
>
> <packaging>kar</packaging>
>
> you won't need to configure the executions in the karaf-maven-plugin.
>
> thanks
> david jencks
>
> On Oct 12, 2011, at 6:28 AM, peterg wrote:
>
>> Thanks Jean-Baptiste!
>>
>> I'm using the plugin to generate a feature descriptor and a .kar file for an
>> application.
>> Besides that it pulls in "too many" dependencies it works like a charm. :)
>>
>> <dependencies>
>> <!-- ... dependencies to include in generated feature descriptor and
>> .kar file -->
>> </dependencies>
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.karaf.tooling</groupId>
>> <artifactId>karaf-maven-plugin</artifactId>
>> <version>${karaf.version}</version>
>> <configuration>
>> <startLevel>30</startLevel>
>> </configuration>
>> <executions>
>> <!-- First create a feature descriptor ... -->
>> <execution>
>> <id>create.feature.descriptor</id>
>> <phase>compile</phase>
>> <goals>
>> <goal>features-generate-descriptor</goal>
>> </goals>
>> </execution>
>> <!-- ... use feature descriptor to build kar -->
>> <execution>
>> <id>create.kar</id>
>> <phase>package</phase>
>> <goals>
>> <goal>features-create-kar</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> </plugins>
>> </build>
>>
>> best regards, Peter
>>
>> On Wed, Oct 12, 2011 at 3:17 PM, Jean-Baptiste Onofré [via Karaf] <
>> ml-node+s922171n3415686h0@n3.nabble.com> wrote:
>>
>>> Hi Peter,
>>>
>>> You can use the Maven filter, but it's not really easy as you don't know
>>> all transitive dependencies.
>>>
>>> I'm agree with you that we should add a goal configuration to avoid to
>>> resolve the transitive dependencies.
>>>
>>> I will raise a Jira for that.
>>>
>>> FYI, we are reviewing the Maven plugin and assemblies currently. Any
>>> feedback is welcome !
>>>
>>> Thanks !
>>>
>>> Regards
>>> JB
>>>
>>> On 10/12/2011 03:11 PM, peterg wrote:
>>>
>>>> Hi,
>>>>
>>>> from my understanding, the features-generate-descriptor goal of the
>>>> karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
>>>> dependencies into the created feature.xml file.
>>>>
>>>> I would like it to only include the bundles that I explicitly include in
>>> my
>>>> dependencies. That is, I would like the plugin to ignore transitive
>>>> dependencies. Now, is there a configuration parameter to achieve this?
>>> After
>>>> reading the plugin documentation (mvn help:describe) I cannot seem to
>>> find
>>>> such an option.
>>>>
>>>> Currently I'm using a bunch of<excludes> to ignore transitive
>>> dependencies
>>>> but it's rather tedious and clutters the pom file.
>>>>
>>>> best regards, Peter
>>>>
>>>> --
>>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415670.html
>>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3415686&i=0>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the discussion
>>> below:
>>>
>>> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415686.html
>>> To unsubscribe from Any way of telling
>>> karaf-maven-plugin:features-generate-descriptor to ignore transitive
>>> dependencies?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3415670&code=cGV0ZXIuZ2FyZGZqZWxsQGdtYWlsLmNvbXwzNDE1NjcwfC01NTc5MTAxMjA=>.
>>>
>>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415707.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Any way of telling karaf-maven-plugin:features-generate-descriptor to ignore transitive dependencies?
Posted by David Jencks <da...@yahoo.com>.
Why don't you use the kar packaging?
<packaging>kar</packaging>
you won't need to configure the executions in the karaf-maven-plugin.
thanks
david jencks
On Oct 12, 2011, at 6:28 AM, peterg wrote:
> Thanks Jean-Baptiste!
>
> I'm using the plugin to generate a feature descriptor and a .kar file for an
> application.
> Besides that it pulls in "too many" dependencies it works like a charm. :)
>
> <dependencies>
> <!-- ... dependencies to include in generated feature descriptor and
> .kar file -->
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>${karaf.version}</version>
> <configuration>
> <startLevel>30</startLevel>
> </configuration>
> <executions>
> <!-- First create a feature descriptor ... -->
> <execution>
> <id>create.feature.descriptor</id>
> <phase>compile</phase>
> <goals>
> <goal>features-generate-descriptor</goal>
> </goals>
> </execution>
> <!-- ... use feature descriptor to build kar -->
> <execution>
> <id>create.kar</id>
> <phase>package</phase>
> <goals>
> <goal>features-create-kar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> best regards, Peter
>
> On Wed, Oct 12, 2011 at 3:17 PM, Jean-Baptiste Onofré [via Karaf] <
> ml-node+s922171n3415686h0@n3.nabble.com> wrote:
>
>> Hi Peter,
>>
>> You can use the Maven filter, but it's not really easy as you don't know
>> all transitive dependencies.
>>
>> I'm agree with you that we should add a goal configuration to avoid to
>> resolve the transitive dependencies.
>>
>> I will raise a Jira for that.
>>
>> FYI, we are reviewing the Maven plugin and assemblies currently. Any
>> feedback is welcome !
>>
>> Thanks !
>>
>> Regards
>> JB
>>
>> On 10/12/2011 03:11 PM, peterg wrote:
>>
>>> Hi,
>>>
>>> from my understanding, the features-generate-descriptor goal of the
>>> karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
>>> dependencies into the created feature.xml file.
>>>
>>> I would like it to only include the bundles that I explicitly include in
>> my
>>> dependencies. That is, I would like the plugin to ignore transitive
>>> dependencies. Now, is there a configuration parameter to achieve this?
>> After
>>> reading the plugin documentation (mvn help:describe) I cannot seem to
>> find
>>> such an option.
>>>
>>> Currently I'm using a bunch of<excludes> to ignore transitive
>> dependencies
>>> but it's rather tedious and clutters the pom file.
>>>
>>> best regards, Peter
>>>
>>> --
>>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415670.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>> --
>> Jean-Baptiste Onofré
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=3415686&i=0>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415686.html
>> To unsubscribe from Any way of telling
>> karaf-maven-plugin:features-generate-descriptor to ignore transitive
>> dependencies?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3415670&code=cGV0ZXIuZ2FyZGZqZWxsQGdtYWlsLmNvbXwzNDE1NjcwfC01NTc5MTAxMjA=>.
>>
>>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415707.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Any way of telling
karaf-maven-plugin:features-generate-descriptor to ignore transitive
dependencies?
Posted by peterg <pe...@gmail.com>.
Thanks Jean-Baptiste!
I'm using the plugin to generate a feature descriptor and a .kar file for an
application.
Besides that it pulls in "too many" dependencies it works like a charm. :)
<dependencies>
<!-- ... dependencies to include in generated feature descriptor and
.kar file -->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<configuration>
<startLevel>30</startLevel>
</configuration>
<executions>
<!-- First create a feature descriptor ... -->
<execution>
<id>create.feature.descriptor</id>
<phase>compile</phase>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
</execution>
<!-- ... use feature descriptor to build kar -->
<execution>
<id>create.kar</id>
<phase>package</phase>
<goals>
<goal>features-create-kar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
best regards, Peter
On Wed, Oct 12, 2011 at 3:17 PM, Jean-Baptiste Onofré [via Karaf] <
ml-node+s922171n3415686h0@n3.nabble.com> wrote:
> Hi Peter,
>
> You can use the Maven filter, but it's not really easy as you don't know
> all transitive dependencies.
>
> I'm agree with you that we should add a goal configuration to avoid to
> resolve the transitive dependencies.
>
> I will raise a Jira for that.
>
> FYI, we are reviewing the Maven plugin and assemblies currently. Any
> feedback is welcome !
>
> Thanks !
>
> Regards
> JB
>
> On 10/12/2011 03:11 PM, peterg wrote:
>
> > Hi,
> >
> > from my understanding, the features-generate-descriptor goal of the
> > karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
> > dependencies into the created feature.xml file.
> >
> > I would like it to only include the bundles that I explicitly include in
> my
> > dependencies. That is, I would like the plugin to ignore transitive
> > dependencies. Now, is there a configuration parameter to achieve this?
> After
> > reading the plugin documentation (mvn help:describe) I cannot seem to
> find
> > such an option.
> >
> > Currently I'm using a bunch of<excludes> to ignore transitive
> dependencies
> > but it's rather tedious and clutters the pom file.
> >
> > best regards, Peter
> >
> > --
> > View this message in context:
> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415670.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
>
> --
> Jean-Baptiste Onofré
> [hidden email] <http://user/SendEmail.jtp?type=node&node=3415686&i=0>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415686.html
> To unsubscribe from Any way of telling
> karaf-maven-plugin:features-generate-descriptor to ignore transitive
> dependencies?, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3415670&code=cGV0ZXIuZ2FyZGZqZWxsQGdtYWlsLmNvbXwzNDE1NjcwfC01NTc5MTAxMjA=>.
>
>
--
View this message in context: http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415707.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Any way of telling karaf-maven-plugin:features-generate-descriptor
to ignore transitive dependencies?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Peter,
You can use the Maven filter, but it's not really easy as you don't know
all transitive dependencies.
I'm agree with you that we should add a goal configuration to avoid to
resolve the transitive dependencies.
I will raise a Jira for that.
FYI, we are reviewing the Maven plugin and assemblies currently. Any
feedback is welcome !
Thanks !
Regards
JB
On 10/12/2011 03:11 PM, peterg wrote:
> Hi,
>
> from my understanding, the features-generate-descriptor goal of the
> karaf-maven-plugin (version 3.0.0-SNAPSHOT) pulls in all transitive
> dependencies into the created feature.xml file.
>
> I would like it to only include the bundles that I explicitly include in my
> dependencies. That is, I would like the plugin to ignore transitive
> dependencies. Now, is there a configuration parameter to achieve this? After
> reading the plugin documentation (mvn help:describe) I cannot seem to find
> such an option.
>
> Currently I'm using a bunch of<excludes> to ignore transitive dependencies
> but it's rather tedious and clutters the pom file.
>
> best regards, Peter
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Any-way-of-telling-karaf-maven-plugin-features-generate-descriptor-to-ignore-transitive-dependencies-tp3415670p3415670.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com