I'm trying to run the `nf-validation` plugin on my...
# nextflow-plugins
n
I'm trying to run the
nf-validation
plugin on my local machine but keep getting this error after the
./gradlew compileGroovy
and running with `./launch.sh run -plugins nf-validation ../dummy_pipeline/main.nf`:
Copy code
Missing '.launch.classpath' file -- create it by running: ./gradlew exportClasspath
I've tried running
./gradlew exportClasspath
but that gives another error:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Task 'exportClasspath' not found in root project 'nf-validation' and its subprojects.
Does anyone know what's going wrong here? I'm using this version of JAVA:
Copy code
openjdk version "1.8.0_92"
OpenJDK Runtime Environment (Zulu 8.15.0.1-linux64) (build 1.8.0_92-b15)
OpenJDK 64-Bit Server VM (Zulu 8.15.0.1-linux64) (build 25.92-b15, mixed mode)
m
Hmm, trying to remember. Those errors do look familiar. Did you copy the nf-hello plugin or how did you start your plugin?
n
I followed the instruction in the README here: https://github.com/nextflow-io/nf-validation
I had to run
./gradlew exportClasspath
inside the nextflow directory 😁
Got this now though, but it seems like it's an issue with an API call:
Copy code
> Task :plugins:nf-azure:copyPluginLibs FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':plugins:nf-azure:copyPluginLibs'.
> Could not resolve all files for configuration ':plugins:nf-azure:runtimeClasspath'.
   > Could not resolve net.minidev:json-smart:[1.3.1,2.3].
     Required by:
         project :plugins:nf-azure > com.microsoft.azure:azure-batch:10.0.0 > com.microsoft.azure:adal4j:1.6.5 > com.nimbusds:oauth2-oidc-sdk:6.5
      > Failed to list versions for net.minidev:json-smart.
         > Unable to load Maven meta-data from <https://repo.eclipse.org/content/groups/releases/net/minidev/json-smart/maven-metadata.xml>.
            > Could not GET '<https://repo.eclipse.org/content/groups/releases/net/minidev/json-smart/maven-metadata.xml>'. Received status code 503 from server: Service Unavailable

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 5s
22 actionable tasks: 1 executed, 21 up-to-date
m
Ah, glad you figured it out 🙂 I had already forgotten this again.
n
No problem! 😛
j
when do you get this error? when running
./gradlew exportClasspath
?
n
yep 🙂
j
I tried to clone the plugin repo again from scratch and still can’t reproduce the error 😞 Just to check, what I did was: 1. clone the repo 2. clone nextflow repo 3. cd to the nf-validation repo 4. run
./gradlew check
5. add
includeBuild('../nextflow')
to
settings.gradle
6.
./gradlew compileGroovy
7. and run the pipeline with
./launch.sh
But I can’t remember if I had more problems at the beginning and changed someone from my configuration 🤔 maybe someone has another idea?
n
Untitled
When running
./gradlew check
I get this ⬆️
for all other steps I did exactly the same 😕
It works now, seemed to be an issue with an API that was down 🙂
👏🏻 1