What maven plugin should be used for generating karaf features.xml? - maven

google tells me about a couple of different plugins. features-maven-plugin, karaf-maven-plugin. I am not sure which of these should be used and what versions. Is this dependent on the karaf version ?

features-maven-plugin is deprecated in version >= 3.X as you can see in several Karaf documentation Karaf Doc 3.X and Karaf Doc 4.X .
So if you used a Karaf >= 3.X you must used karaf-maven-plugin .

Related

Gradle Version Resolution Problem: Building Xcore

Background
I'm trying to build a project which has a dependency on a library xcore 1.10.0 that has a dependency on antlr with restriction [3.2.0, 3.2.1). What exists is a version 3.2.
Problem
The build fails reporting Could not find any version that matches org.antlr:antlr-runtime:[3.2.0, 3.2.1).. When I explicitly ask for version 3.2, it resolves. When I check ava -cp "$MAVEN_HOME/lib/*" org.apache.maven.artifact.versioning.ComparableVersion 3.2 3.2.0 3.2.1, I get the following (which I interpret as 3.2 being within the requested racket):
1. 3.2 == 3.2
3.2 == 3.2.0
2. 3.2.0 == 3.2
3.2.0 < 3.2.1
3. 3.2.1 == 3.2.1
Reporduction
To try this at home, one should be able to check out this example project and try running ./gradlew clean build.
Questions
Is the version bracket wrongly specified (given the versions that actually exist and assuming version 3.2 is required)? Or is Gradle doing something weird with the interpretation of the version bracket?
Is there a way to work around this (other than uploading a "fake" replica with version 3.2.0 to a local repository)?

which one is the latest version of maven to use

I am trying to use maven in our project and am new to it.
checking this https://maven.apache.org/download.cgi
3.6.0 version is latest version to download.
Someone was saying there is maven 4 is latest. Not sure where to download this from and can we use this for java 8.
Which one is latest version to use?
From https://maven.apache.org/download.cgi
Apache Maven 3.6.0 is the latest release and recommended version for
all users.
Works nicely with Java 8. Note that your IDE may bundle an older version in the unlikely case you run into problems.

IS Maven needed to use spring tool suite

Can any one please tell me is it necessar to have maven installed before using Spring tool Suite(mine is version 3.4) I think its not if version is 3.2 or below
Eclipse/STS comes with an internal maven implementation. So you do not need to have an external maven installation.

Updating Camel from 2.10.4 to 2.11.1 in ServiceMix 4.5.1

Recently I found article on same topic, but described solution doesn't works for me (with newest components).
Errors from ServiceMix (Karaf) console:
> feature:install camel-core/2.11.1
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
package:(&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))
camel-karaf-commands
Thanks for any help.
camel-karaf-commands depends on a version of the OSGI framework not packaged with Servicemix 4.5.1 . You can attempt to install the required package from an org.osgi.core JAR but your mileage may vary.
Karaf 2.3 and 3.0 comes with the required package, but Servicemix 4.5 still uses Karaf 2.2

Felix 'pref' bundle requires 'log version >=1.3', but D/L 'log' bundle version = 1.0

the Felix download page shows
Log bundle version 1.0.0
Preferences bundle version 1.0.2
But preferences requires log-bundle version >= 1.3
It just want to get an idea of how 'preferences' works,
so any log compatible bundle is welcome :)
Regards.
I think you are confusing the Felix log bundle version (1.0.0) with the required version of the OSGi log service (1.3). This is similar to the difference between the Tomcat version and the version of the Servlet API that it supports.
Felix Log 1.0.0 provides org.osgi.service.log;version=1.3 so you should be fine.
In general, the version of a bundle is not relevant as OSGi bundles do not depend on other bundles directly, but on the package versions they provide.
(I need to check, but you may also need the OSGi service compendium JAR file which defines the log interface, Felix Log is just one possible implementation of that service).

Resources