OK, let me update the pom with your comments and what you need, and I will get back to you.

Regards
JB

On 03/08/2016 12:05 PM, 414n wrote:
Hi JB,

thanks for your response and for your time.

I tried your solution and I was able to finally create the package, but
there are still some issues:

   * removing the eventadmin feature causes again the same error, so I
     assume the missing org.slf4j dependency is indeed pulled in by this
     feature instead of the "log" one inside the standard feature,
     although I kinda don't understand this;
   * the distribution package created doesn't automatically start my FOI
     (Feature Of Interest :-)) as expected, but moving it again to the
     startupFeatures breaks the build with the same "org.slf4j missing"
     error;
   * having my feature both in the "bootFeatures" and "startupFeatures"
     sections makes me able to build the package, but then it doesn't
     start automatically nor it appears as installed when karaf is started
   * using the "standard" feature seems to work fine after the dependency
     fixes you listed.

My bundles are correctly installed inside the system/ folder, but then
karaf doesn't list them and gives me an error also when trying to add my
feature to the feature-repos.
Am I missing something?


Alan Alberghini
IOOOTA - a...@iooota.com <mailto:a...@iooota.com>
http://www.iooota.com
https://www.facebook.com/IOOOTA
On 08/03/2016 11:16, jbonofre [via Karaf] wrote:
Hi,

I fixed your pom (see later in this e-mail).

Basically:
1. the scope of the framework kar was not correct (it should be compile,
not runtime)
2. the framework feature was missing (for eventadmin)
3. the scope of your feature and standard feature was not correct

So, I changed the dependencies this way:

      <dependencies>
          <dependency>
  <groupId>org.apache.karaf.features</groupId>
              <artifactId>framework</artifactId>
              <version>4.0.4</version>
              <type>kar</type>
          </dependency>
          <dependency>
  <groupId>org.apache.karaf.features</groupId>
              <artifactId>framework</artifactId>
              <version>4.0.4</version>
              <classifier>features</classifier>
              <type>xml</type>
              <scope>runtime</scope>
          </dependency>
          <dependency>
  <groupId>org.apache.karaf.features</groupId>
              <artifactId>standard</artifactId>
              <version>4.0.4</version>
              <classifier>features</classifier>
              <type>xml</type>
          </dependency>
          <dependency>
                  <groupId>this.is.a.test</groupId>
  <artifactId>karaf-feature</artifactId>
                  <version>0.0.1-SNAPSHOT</version>
                  <classifier>features</classifier>
                  <type>xml</type>
          </dependency>
      </dependencies>

And the karaf-maven-plugin configuration is:

              <plugin>
  <groupId>org.apache.karaf.tooling</groupId>
  <artifactId>karaf-maven-plugin</artifactId>
                  <configuration>
                      <installedFeatures>
                          <feature>wrapper</feature>
                      </installedFeatures>
                      <startupFeatures>
                          <feature>eventadmin</feature>
                      </startupFeatures>
                      <bootFeatures>
                          <feature>framework</feature>
                          <feature>wrap</feature>
  <feature>aries-blueprint</feature>
                          <feature>shell</feature>
  <feature>shell-compat</feature>
                          <feature>feature</feature>
                          <feature>jaas</feature>
                          <feature>ssh</feature>
                          <feature>management</feature>
                          <feature>bundle</feature>
                          <feature>config</feature>
                          <feature>deployer</feature>
                          <feature>diagnostic</feature>
                          <feature>feature</feature>
                          <feature>instance</feature>
                          <feature>kar</feature>
                          <feature>log</feature>
                          <feature>package</feature>
                          <feature>service</feature>
                          <feature>system</feature>
  <feature>karaf-feature</feature>
                      </bootFeatures>
                  </configuration>
              </plugin>


Regards
JB

On 03/08/2016 10:46 AM, 414n wrote:

I reproduced the issue in a really slimmed down two-project setup.
I created a feature that wraps the commons-lang-2.2 library (which
is not a
native bundle) and tried to assembly it.
You can find the projects (plus a reactor pom) inside the attached
zip file:
karaf-assembly-test.zip

<http://karaf.922171.n3.nabble.com/file/n4045724/karaf-assembly-test.zip>



--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045724.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[hidden email] </user/SendEmail.jtp?type=node&node=4045726&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/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045726.html

To unsubscribe from [Karaf-4.0.3] Problem Building Karaf with maven,
click here
<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4045152&code=YWxhbkBpb29vdGEuY29tfDQwNDUxNTJ8NjExMjcwNjA2>.
NAML
<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045727.html
Sent from the Karaf - User mailing list archive at Nabble.com.


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

Reply via email to