-
1. Re: Error installing custom feature with Smooks dependency.
ffang May 13, 2014 3:13 AM (in response to arevalo0o)1 of 1 people found this helpfulHi,
Where the url
mvn:commons-lang/commons-lang/${commons.lang.version}
comes from?
The ${commons.lang.version} not get filtered correctly, your need address this first.
Freeman
-
2. Re: Error installing custom feature with Smooks dependency.
arevalo0o May 13, 2014 10:29 AM (in response to ffang)Hi Freeman, thanks for your reply.
I'm not pretty sure where it comes from, but it certainly has something to do with the smooks dependency, if I remove this feature from my project and everything related, I can install it without problem, taking a look to the features.xml of the milyn-smooks-all v1.5.2 it uses the commons-lang bundle but the URL looks ok.
<?xml version="1.0" encoding="UTF-8"?>
<features name="milyn-1.5.2">
<feature name="smooks" version="1.5.2">
<bundle>mvn:org.antlr/com.springsource.antlr/2.7.7</bundle>
<bundle>mvn:org.freemarker/com.springsource.freemarker/2.3.15</bundle>
<!-- Karaf comes with pax-logging and slf4j; the following logging jars should not be required -->
<!--<bundle>mvn:org.apache.commons/com.springsource.org.apache.commons.logging/1.1.1</bundle>-->
<!--<bundle>mvn:org.apache.log4j/com.springsource.org.apache.log4j/1.2.15</bundle>-->
<bundle>mvn:org.codehaus.groovy/com.springsource.org.codehaus.groovy/1.5.7</bundle>
<bundle>mvn:org.jaxen/com.springsource.org.jaxen/1.1.1</bundle>
<bundle>mvn:org.objectweb.asm/com.springsource.org.objectweb.asm/2.2.3</bundle>
<bundle>mvn:org.objectweb.asm/com.springsource.org.objectweb.asm.tree/2.2.3</bundle>
<bundle>mvn:org.objectweb.asm/com.springsource.org.objectweb.asm.tree.analysis/2.2.3</bundle>
<bundle>mvn:org.objectweb.asm/com.springsource.org.objectweb.asm.util/2.2.3</bundle>
<bundle>mvn:commons-lang/commons-lang/2.4</bundle>
<bundle>mvn:org.ow2.bundles/ow2-bundles-externals-opencsv/1.0.23</bundle>
<bundle>mvn:org.milyn/milyn-smooks-all/1.5.2</bundle>
</feature>
</features>
I took this from the jar milyn-smooks-all-1.5.2.jar that is in my maven repository.
So I really don't know where this URL comes from.
Regards
-
3. Re: Error installing custom feature with Smooks dependency.
arevalo0o May 13, 2014 11:49 AM (in response to ffang)Hi,
Just trying to find where this URL comes from, I used a grep command (grep -rnw "commons\.lang\.version" --include \*.pom --include \*.xml) to find in my maven repository where this ${commons.lang.version} is used, and I found this:
org/milyn/milyn-smooks-all/1.6-SNAPSHOT/milyn-smooks-all-1.6-SNAPSHOT-features.xml:16: <bundle>mvn:commons-lang/commons-lang/${commons.lang.version}</bundle>
So I realized that in a previous test installing my project, I was using a built of Smooks 1.6 that I made by myself , so maybe this milyn-smooks-all-1.6-SNAPSHOT-features.xml was making the problem. I don't know if JBoss Fuse has some kind of cache, or maybe I made a mistake and didn't build the project using the 1.5.2 version of smooks. So I just replaced my JBoss Fuse, and tried again, and now I can install the project without problem.
Thanks for all your help.
Regards
-
4. Re: Error installing custom feature with Smooks dependency.
ffang May 13, 2014 9:09 PM (in response to arevalo0o)Hi,
Great you've make it work.
Normally you can use
features:list|grep smooks
to figure out what's the feature version you used.
Freeman
-
5. Re: Error installing custom feature with Smooks dependency.
arevalo0o May 13, 2014 10:48 PM (in response to ffang)Thanks a lot Freeman, this is a really useful tip.