Pierre Lindenbaum
12/10/2025, 12:35 PMgradlew assemble and test are ok but I cannot find the proper way to launch a workflow with the plugin:
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:
/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:
/home/me/myplugin/settings.gradle
in the nexflow.log there is a classnotfound exception:
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 ?Jorge
12/10/2025, 12:59 PMJorge
12/10/2025, 1:01 PMPierre Lindenbaum
12/10/2025, 1:03 PMBen Sherman
12/10/2025, 4:42 PMmake 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