Hi, I'm just testing a plugin from the template. `...
# nextflow-plugins
p
Hi, I'm just testing a plugin from the template.
gradlew assemble
and
test
are ok but I cannot find the proper way to launch a workflow with the plugin:
Copy code
export NXF_PLUGINS_DIR=/home/me/PLUGINS_DIR && \
export NXF_PLUGINS_DEFAULT=false && \
export NXF_PLUGINS_DEV=/home/me/myplugin && \
export NXF_PLUGINS_MODE=dev && \
nextflow run -resume <http://main.nf|main.nf> --samplesheet jeter.list
N E X T F L O W  ~  version 25.10.2
WARN: It appears you have never run this project before -- Option `-resume` is ignored
ERROR ~ Cannot invoke "org.pf4j.Plugin.start()" because the return value of "org.pf4j.PluginWrapper.getPlugin()" is null
but the classes are here:
Copy code
/home/me/PLUGINS_DIR/
/home/me/PLUGINS_DIR/myplugin-0.1.0
/home/me/PLUGINS_DIR/myplugin-0.1.0/classes
/home/me/PLUGINS_DIR/myplugin-0.1.0/classes/lindenb
/home/me/PLUGINS_DIR/myplugin-0.1.0/classes/lindenb/plugin
the project is here:
Copy code
/home/me/myplugin/settings.gradle
in the nexflow.log there is a classnotfound exception:
Copy code
Dec-10 13:25:51.130 [main] ERROR org.pf4j.DefaultPluginFactory - lindenb.plugin.RdfgraphPlugin
java.lang.ClassNotFoundException: lindenb.plugin.MypluginPlugin
        at org.pf4j.PluginClassLoader.loadClass(PluginClassLoader.java:169)
        at org.pf4j.DefaultPluginFactory.create(DefaultPluginFactory.java:44)
        at org.pf4j.PluginWrapper.getPlugin(PluginWrapper.java:94)
        at org.pf4j.AbstractPluginManager.startPlugin(AbstractPluginManager.java:441)
        at nextflow.plugin.PluginUpdater.prepareAndStart(PluginUpdater.groovy:181)
        at nextflow.plugin.PluginsFacade.start(PluginsFacade.groovy:401)
        at nextflow.plugin.PluginsFacade.load(PluginsFacade.groovy:291)
        at nextflow.plugin.Plugins.load(Plugins.groovy:50)
        at nextflow.cli.CmdRun.run(CmdRun.groovy:364)
        at nextflow.cli.Launcher.run(Launcher.groovy:515)
        at nextflow.cli.Launcher.main(Launcher.groovy:675)
( I changed the names) What Am i doing wrong ?
j
Can you try with NXF_PLUGINS_MODE=prod ? Not sure but I use dev mode only when testing with IDE
Also I see RdfgrsphPlugin and MypluginPlugin Maybe you have some typo
p
@Jorge that worked with with "prod" . Many thanks !
🚀 1
b
I usually just
make install
the plugin and run nextflow normally. As long as you pin the plugin version, it will use the local install without trying to download it