Plugin not work after creating jars

71 views
Skip to first unread message

Max Weis

unread,
Aug 12, 2014, 12:40:31 PM8/12/14
to js...@googlegroups.com
${greet all}


I'm not experienced in maven applications and have created my jars with eclipse. 
The Eclipse project recognizes the plugin - that does not the jar. 
My directory structure looks like this:


  • my_main.jar
  • my_lib
    • jspf.core-1.0.2.jar
    • my_plugin_1.jar



I give as an argument (as described in previous posts) the URI of the classpath:

pm = PluginManagerFactory.createPluginManager();

try {

pm.addPluginsFrom(new URI("classpath://*"));

} catch (URISyntaxException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}




Here is a copy of the manifest my_main.jar:




Manifest-Version: 1.0

Class-Path: . my_lib/my_plugin__1.jar  my_lib/jspf.core-1.0.2.jar

Main-Class: mypackage.Main




The plugin does not make his job?
Have suggestions what´s went wrong?
Sorry if the question would be answered before -
I may didn´t found it:-)


${peace}





Max Weis

unread,
Aug 13, 2014, 4:28:55 AM8/13/14
to js...@googlegroups.com
(Now I use the Report-After-Option)


The console in eclipse project

 

>>> Class Report <<<

    com.fiftyskies.seahorse.plugins.command.SavePlugin (status:'SPAWNED'; dependencies:''; origin:'file:/Users/me/Downloads/archives/seahorse_com_1.jar';)


>>> Object Report <<<

    net.xeoh.plugins.diagnosis.local.impl.DiagnosisImpl@a578073 (status:'ACTIVE')

    net.xeoh.plugins.base.impl.PluginConfigurationImpl@92f1bf0 (status:'ACTIVE')

    net.xeoh.plugins.base.impl.PluginInformationImpl@175bc6c8 (status:'ACTIVE')

    net.xeoh.plugins.informationbroker.impl.InformationBrokerImpl@644cd580 (status:'ACTIVE')

    net.xeoh.plugins.base.impl.PluginManagerImpl@2ce99681 (status:'ACTIVE')

    com.fiftyskies.seahorse.plugins.command.SavePlugin@109b2a51 (status:'ACTIVE')




The console with jar:

13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274] >>> Class Report <<<
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274] >>> Object Report <<<
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.diagnosis.local.impl.DiagnosisImpl@a578073 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.base.impl.PluginConfigurationImpl@92f1bf0 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.base.impl.PluginInformationImpl@175bc6c8 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.informationbroker.impl.InformationBrokerImpl@644cd580 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.base.impl.PluginManagerImpl@2ce99681 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274] >>> Class Report <<<
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274] >>> Object Report <<<
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.base.impl.PluginManagerImpl@664310d0 (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.base.impl.PluginInformationImpl@3bfa681c (status:'ACTIVE')
13.08.14 10:25:17 [0x0-0x2c02c].com.apple.JarLauncher[274]    net.xeoh.plugins.informationbroker.impl.InformationBrokerImpl@101a0ae6 (status:'ACTIVE')
 

Max Weis

unread,
Aug 13, 2014, 4:12:08 PM8/13/14
to js...@googlegroups.com
The plugins are on stand-alone jar found only on the directory-not on the CLASSPATH:


pm.addPluginsFrom(new URI("classpath://*")); // did not work


pm.addPluginsFrom(new File("plugins/").toURI())


I have added this folder in the project directory and the plugin was found.
I guess that's the only way for me.
Reply all
Reply to author
Forward
0 new messages