powered by Jive Software

What are the dependencies for the smack-core-4.0.0 jar?

I included the smack-core, smack-tcp, and smack-extensions library into my Eclipse project. However, I am getting this error when trying to run my application:

package com.company.example; import java.io.IOException;
import javax.security.sasl.SaslException;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.SmackException.NotConnectedException;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.tcp.XMPPTCPConnection; public class Example {
    public static void main(String[] args) {
        ConnectionConfiguration configuration = new ConnectionConfiguration(
                "localhost", 6000, "openfire.org");
        XMPPConnection connection = new XMPPTCPConnection(configuration);
        try {
            connection.connect();
            connection.login("user", "blah");
            connection.disconnect();
        } catch (SaslException e) {
            e.printStackTrace();
        } catch (NotConnectedException e) {
            e.printStackTrace();
        } catch (SmackException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (XMPPException e) {
            e.printStackTrace();
        }
    }
}
Exception in thread "main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory
    at org.jivesoftware.smack.SmackConfiguration.processConfigFile(SmackConfiguration.java:321)
    at org.jivesoftware.smack.SmackConfiguration.processConfigFile(SmackConfiguration.java:316)
    at org.jivesoftware.smack.SmackConfiguration.(SmackConfiguration.java:148)
    at org.jivesoftware.smack.ConnectionConfiguration.(ConnectionConfiguration.java:65)
    at com.company.example.Example.main(BrokerTalkExample.java:17)
Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 5 more

Can you tell me what the dependencies are now for the smack-core jar? It seems to have changed from Smack 3.x. Documentation states that smack-core is all that is needed, but obviously that has changed.

I believe I found my answer. Ended up looking on the github site, found that it has been uploaded to Sonatype repository. Maven automatically resolved the dependencies.