Project

General

Profile

Tigase-message-archive development with Eclipse

abin yan
Added over 3 years ago

hello,

I have downloaded the tigase-message-archive source code, deployment in eclipse, there is a mistake:

Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:gmaven-plugin:1.5:execute (execution: gitver, phase: validate)

I see this https://projects.tigase.org/boards/4/topics/1280 and ignore it.

How do I put he packaged into a jar?(I want to modify tigase-message-archive source to define my own message format)

I use mvn package -Dmaven.test.skip=true and no jar generate.


Replies (8)

Added by abin yan over 3 years ago

Select the project, then select Run as from the Run menu and then Maven build. In the configuration dialog for the "base directory" select workspace directory (for example using browse workspace..."), in the goals enter "clean install". Click Apply and then Run.

I use this way have a tigase-message-archive-1.2.0-SNAPSHOT.jar and I rename it to tigase-message-archive.jar

I copy it jar to tigase server, but tigase-console.log has an error as follow:

ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.NoSuchMethodError: tigase.vhosts.VHostItem$DataType.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)V
    at tigase.archive.VHostItemHelper.<clinit>(VHostItemHelper.java:52)
    at tigase.archive.MessageArchivePlugin.init(MessageArchivePlugin.java:142)
    at tigase.server.xmppsession.SessionManager.setProperties(SessionManager.java:953)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
    at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
    at tigase.server.XMPPServer.start(XMPPServer.java:142)
    at tigase.server.XMPPServer.main(XMPPServer.java:112)

Added by abin yan over 3 years ago

Did I do something wrong?

Added by abin yan over 3 years ago

ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "main" exception

java.lang.NoSuchMethodError: tigase.vhosts.VHostItem$DataType.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)V

at tigase.archive.VHostItemHelper.(VHostItemHelper.java:52)

at tigase.archive.MessageArchivePlugin.init(MessageArchivePlugin.java:142)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Under which Tigase version do you try to use this binary? By the rule of thumb if you are building latest sources of component you should run them under latest version of Tigase server.

Added by abin yan over 3 years ago

I use tigase-server-7.0.2-b3821-dist.tar.gz.

and use the latest sources of component.

The part of pom.xml in component is here:

        <groupId>tigase</groupId>

        <artifactId>tigase-server</artifactId>

        <version>7.1.0-SNAPSHOT<ersion>

        <scope>provided</scope>

but where is tigase-server 7.1.0 ?

Added by Wojciech Kapcia TigaseTeam over 3 years ago

You use development version of the component, reference development version of the server (SNAPSHOT) and then try to use it with stable version. You should try latest nightly from http://build.tigase.org/nightlies/dists/

Added by Ehsan Mozaffari over 3 years ago

I am so sorry for jumping into your discussion.

Where can I find the tigase-server-b3810 and b3821 source codes separately?

I think , documents for developing a component is a little confusing for none advanced programmers!

Could you please let me know if there is any link for developing components in Eclipse IDE.

Thanks in advance for your time.

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Exact commits of those versions are stored in the MANIFEST files and can be also checked during server runtime:

7.1.0-SNAPSHOT-b3810/8424d1f8

7.1.0-SNAPSHOT-b3821/b541934a

    (1-8/8)