karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert von Burg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4424) referenced features/bundles not installed when dropped in deploy folder
Date Mon, 21 Mar 2016 12:14:25 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15204088#comment-15204088
] 

Robert von Burg commented on KARAF-4424:
----------------------------------------

Something else that might be of use is that i use an additional features file to install the
dependencies of my bundles:

{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<features name="base-features" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">

	<repository>mvn:org.apache.activemq/activemq-karaf/5.12.1/xml/features</repository>
	<repository>mvn:org.apache.camel.karaf/apache-camel/2.16.1/xml/features</repository>
	<repository>mvn:org.apache.cxf.karaf/apache-cxf/3.1.4/xml/features</repository>

	<feature description="essential tools for rest services and" install="auto" name="apache-cxf"
version="1.0.0">
		<feature>http</feature>
		<feature>camel-restlet</feature>
		<feature>cxf</feature>
		<feature>war</feature>
	</feature>

	<feature install="auto" name="activemq-all" version="5.12.1">
		<feature version="5.12.1">activemq</feature>
		<feature version="5.12.1">activemq-client</feature>
		<feature version="5.12.1">activemq-camel</feature>
	</feature>

	<feature install="auto" name="camel-all" version="2.16.1">
		<feature version="2.16.1">camel</feature>
		<feature version="2.16.1">camel-jms</feature>
		<feature version="2.16.1">camel-cxf</feature>
		<!-- <feature version="2.16.1">camel-jaxb</feature> -->
		<feature version="2.16.1">camel-ftp</feature>
		<feature version="2.16.1">camel-http</feature>
		<feature version="2.16.1">camel-quartz2</feature>
		<feature version="2.16.1">camel-mail</feature>
		<feature version="2.16.1">camel-base64</feature>
		<feature version="2.16.1">camel-restlet</feature>
	</feature>

	<feature install="auto" name="startup-bundles" version="1.0.0">
		<bundle start="true">mvn:jaxen/jaxen/1.1.6</bundle>
		<!-- <bundle start="true">wrap:mvn:javax.xml/jaxp-api/1.4</bundle> -->
		<bundle start="true">wrap:mvn:dom4j/dom4j/1.6.1</bundle>
		<bundle start="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
		<bundle start="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
		<bundle start="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
		<bundle start="true">mvn:mysql/mysql-connector-java/5.1.18</bundle>
		<!-- <bundle start="true">wrap:mvn:org.postgresql/postgresql/9.3-1100-jdbc41</bundle>
-->
		<bundle start="false">mvn:org.apache.httpcomponents/httpcore-osgi/4.3.2</bundle>
		<bundle start="false">mvn:org.apache.httpcomponents/httpclient-osgi/4.3.6</bundle>
		<bundle start="true">mvn:org.osgi/org.osgi.service.event/1.3.1</bundle>
		<bundle start="true">mvn:org.apache.camel/camel-core-osgi/2.16.1</bundle>
		<bundle start="true">mvn:commons-codec/commons-codec/1.9</bundle>
	</feature>

</features>
{code}

> referenced features/bundles not installed when dropped in deploy folder
> -----------------------------------------------------------------------
>
>                 Key: KARAF-4424
>                 URL: https://issues.apache.org/jira/browse/KARAF-4424
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.4
>            Reporter: Robert von Burg
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> I have the following features:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <k:features xmlns:k="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 karaf-features-1.3.0.xsd
" name="All-features">
> 	<k:repository>mvn:my.group/MyBundle1/0.3.0-SNAPSHOT/xml/features</k:repository>
> 	<k:repository>mvn:my.group/MyBundle2/0.3.0-SNAPSHOT/xml/features</k:repository>
> 	<k:repository>mvn:my.group/MyBundle3/0.3.0-SNAPSHOT/xml/features</k:repository>
> 	<k:feature name="MyBundle1" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:feature dependency="false" prerequisite="false" version="0.3.0-SNAPSHOT">MyBundle1</k:feature>
> 	</k:feature>
> 	<k:feature name="MyBundle2" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:feature dependency="false" prerequisite="false" version="0.3.0-SNAPSHOT">MyBundle2</k:feature>
> 	</k:feature>
> 	<k:feature name="MyBundle3" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:feature dependency="false" prerequisite="false" version="0.3.0-SNAPSHOT">MyBundle3</k:feature>
> 	</k:feature>
> </k:features>
> <?xml version="1.0" encoding="UTF-8"?>
> <k:features xmlns:k="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 karaf-features-1.3.0.xsd
" name="MyBundle1-features">
> 	<k:feature name="MyBundle1" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:bundle start="true">mvn:my.group/MyBundle1/0.3.0-SNAPSHOT</k:bundle>
> 	</k:feature>
> </k:features>
> <?xml version="1.0" encoding="UTF-8"?>
> <k:features xmlns:k="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 karaf-features-1.3.0.xsd
" name="MyBundle2-features">
> 	<k:feature name="MyBundle2" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:bundle start="true">mvn:my.group/MyBundle2/0.3.0-SNAPSHOT</k:bundle>
> 	</k:feature>
> </k:features>
> <?xml version="1.0" encoding="UTF-8"?>
> <k:features xmlns:k="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 karaf-features-1.3.0.xsd
" name="MyBundle3-features">
> 	<k:feature name="MyBundle3" install="auto" version="0.3.0-SNAPSHOT">
> 		<k:bundle start="true">mvn:my.group/MyBundle3/0.3.0-SNAPSHOT</k:bundle>
> 	</k:feature>
> </k:features>
> {code}
> On my local machine when i drop the "all-features", then it installs al the referenced
bundles. On my local machine, the bundles were installed using mvn clean install.
> On another machine, where the features are pulled in through a remote archiva repository,
it doesn't auto install. It says:
> {noformat}
> Adding features: MyBundle1/[0.3.0.SNAPSHOT,0.3.0.SNAPSHOT]
> No deployment change.
> {noformat}
> When i then do everything by hand:
> {noformat}
> feature:repo-add mvn:my.group/MyBundle1/0.3.0-SNAPSHOT/xml/features
> feature:repo-add mvn:my.group/MyBundle2/0.3.0-SNAPSHOT/xml/features
> feature:repo-add mvn:my.group/MyBundle3/0.3.0-SNAPSHOT/xml/features
> feature:install MyBundle1/0.3.0-SNAPSHOT
> feature:install MyBundle2/0.3.0-SNAPSHOT
> feature:install MyBundle3/0.3.0-SNAPSHOT
> {noformat}
> the features are installed and everything.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message