No plugin found for prefix 'gatling' in the current project

Gatling version: 4.7.0 (must be up to date)
Gatling flavor: java
Gatling build tool: maven

When I am trying to run my tests in the command line / terminal, I am getting below errors : No plugin found for prefix ‘gatling’ in the current project and in the plugin groups [org.sonarsource.scanner.maven, org.apache.maven.plugins, org.cod
ehaus.mojo] available from the repositories

Please could someone help with this issue.

Hello,

Can you share with me the command you execute and the logs in the terminal please?

Hi Samir,

My command :

mvn clean package gatling:test -Ptest -DpostUrl="endpoint" -DbaseUrl="domain"

Logs in the Terminal :

[INFO] Scanning for projects...
[WARNING] The POM for io.gatling:gatling-maven-plugin:jar:4.7.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for m
ore details
[WARNING] Failed to retrieve plugin descriptor for io.gatling:gatling-maven-plugin:4.7.0: Plugin io.gatling:gatling-maven-plugin:4.7.0 or one of its dependenc
ies could not be resolved: Failed to read artifact descriptor for io.gatling:gatling-maven-plugin:jar:4.7.0
[WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.3 is invalid, transitive dependencies (if any) will not be available, enable debug logg
ing for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or on
e of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.3
[WARNING] The POM for org.codehaus.mojo:build-helper-maven-plugin:jar:3.3.0 is invalid, transitive dependencies (if any) will not be available, enable debug l
ogging for more details
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:build-helper-maven-plugin:3.3.0: Plugin org.codehaus.mojo:build-helper-maven-plugin:3.3.0
 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:build-helper-maven-plugin:jar:3.3.0
[WARNING] The POM for org.flywaydb:flyway-maven-plugin:jar:9.16.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for
 more details
[WARNING] Failed to retrieve plugin descriptor for org.flywaydb:flyway-maven-plugin:9.16.3: Plugin org.flywaydb:flyway-maven-plugin:9.16.3 or one of its depen
dencies could not be resolved: Failed to read artifact descriptor for org.flywaydb:flyway-maven-plugin:jar:9.16.3
[WARNING] The POM for io.github.git-commit-id:git-commit-id-maven-plugin:jar:5.0.0 is invalid, transitive dependencies (if any) will not be available, enable 
debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for io.github.git-commit-id:git-commit-id-maven-plugin:5.0.0: Plugin io.github.git-commit-id:git-commit-id-mave
n-plugin:5.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.github.git-commit-id:git-commit-id-maven-plugin:jar
:5.0.0
[WARNING] The POM for org.jooq:jooq-codegen-maven:jar:3.18.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more
 details
[WARNING] Failed to retrieve plugin descriptor for org.jooq:jooq-codegen-maven:3.18.4: Plugin org.jooq:jooq-codegen-maven:3.18.4 or one of its dependencies co
uld not be resolved: Failed to read artifact descriptor for org.jooq:jooq-codegen-maven:jar:3.18.4
[WARNING] The POM for org.jetbrains.kotlin:kotlin-maven-plugin:jar:1.8.21 is invalid, transitive dependencies (if any) will not be available, enable debug log
ging for more details
[WARNING] Failed to retrieve plugin descriptor for org.jetbrains.kotlin:kotlin-maven-plugin:1.8.21: Plugin org.jetbrains.kotlin:kotlin-maven-plugin:1.8.21 or 
one of its dependencies could not be resolved: Failed to read artifact descriptor for org.jetbrains.kotlin:kotlin-maven-plugin:jar:1.8.21
[WARNING] The POM for org.liquibase:liquibase-maven-plugin:jar:4.20.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging
 for more details
[WARNING] Failed to retrieve plugin descriptor for org.liquibase:liquibase-maven-plugin:4.20.0: Plugin org.liquibase:liquibase-maven-plugin:4.20.0 or one of i
ts dependencies could not be resolved: Failed to read artifact descriptor for org.liquibase:liquibase-maven-plugin:jar:4.20.0
[WARNING] The POM for org.apache.maven.plugins:maven-antrun-plugin:jar:3.1.0 is invalid, transitive dependencies (if any) will not be available, enable debug 
logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:3.1.0: Plugin org.apache.maven.plugins:maven-antrun-plugin:3.1
.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:3.1.0
[WARNING] The POM for org.apache.maven.plugins:maven-assembly-plugin:jar:3.5.0 is invalid, transitive dependencies (if any) will not be available, enable debu
g logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:3.5.0: Plugin org.apache.maven.plugins:maven-assembly-plugin
:3.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:3.5.0      
[WARNING] The POM for org.apache.maven.plugins:maven-dependency-plugin:jar:3.5.0 is invalid, transitive dependencies (if any) will not be available, enable de
bug logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:3.5.0: Plugin org.apache.maven.plugins:maven-dependency-pl
ugin:3.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:3.5.0
[WARNING] The POM for org.apache.maven.plugins:maven-enforcer-plugin:jar:3.3.0 is invalid, transitive dependencies (if any) will not be available, enable debu
g logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-enforcer-plugin:3.3.0: Plugin org.apache.maven.plugins:maven-enforcer-plugin
:3.3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-enforcer-plugin:jar:3.3.0
[WARNING] The POM for org.apache.maven.plugins:maven-failsafe-plugin:jar:3.0.0 is invalid, transitive dependencies (if any) will not be available, enable debu
g logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-failsafe-plugin:3.0.0: Plugin org.apache.maven.plugins:maven-failsafe-plugin
:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-failsafe-plugin:jar:3.0.0
[WARNING] The POM for org.apache.maven.plugins:maven-help-plugin:jar:3.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug lo
gging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-help-plugin:3.4.0: Plugin org.apache.maven.plugins:maven-help-plugin:3.4.0 o
r one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-help-plugin:jar:3.4.0
[WARNING] The POM for org.apache.maven.plugins:maven-invoker-plugin:jar:3.5.1 is invalid, transitive dependencies (if any) will not be available, enable debug
 logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-invoker-plugin:3.5.1: Plugin org.apache.maven.plugins:maven-invoker-plugin:3
.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-invoker-plugin:jar:3.5.1
[WARNING] The POM for org.apache.maven.plugins:maven-javadoc-plugin:jar:3.5.0 is invalid, transitive dependencies (if any) will not be available, enable debug
 logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-javadoc-plugin:3.5.0: Plugin org.apache.maven.plugins:maven-javadoc-plugin:3
.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-javadoc-plugin:jar:3.5.0
[WARNING] The POM for org.apache.maven.plugins:maven-source-plugin:jar:3.2.1 is invalid, transitive dependencies (if any) will not be available, enable debug 
logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-source-plugin:3.2.1: Plugin org.apache.maven.plugins:maven-source-plugin:3.2
.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-source-plugin:jar:3.2.1
[WARNING] The POM for org.apache.maven.plugins:maven-war-plugin:jar:3.3.2 is invalid, transitive dependencies (if any) will not be available, enable debug log
ging for more details
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-war-plugin:3.3.2: Plugin org.apache.maven.plugins:maven-war-plugin:3.3.2 or 
one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:3.3.2
[WARNING] The POM for org.graalvm.buildtools:native-maven-plugin:jar:0.9.22 is invalid, transitive dependencies (if any) will not be available, enable debug l
ogging for more details
[WARNING] Failed to retrieve plugin descriptor for org.graalvm.buildtools:native-maven-plugin:0.9.22: Plugin org.graalvm.buildtools:native-maven-plugin:0.9.22
 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.graalvm.buildtools:native-maven-plugin:jar:0.9.22
[WARNING] The POM for org.codehaus.mojo:versions-maven-plugin:jar:2.15.0 is invalid, transitive dependencies (if any) will not be available, enable debug logg
ing for more details
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:versions-maven-plugin:2.15.0: Plugin org.codehaus.mojo:versions-maven-plugin:2.15.0 or on
e of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:versions-maven-plugin:jar:2.15.0
[WARNING] The POM for org.codehaus.mojo:xml-maven-plugin:jar:1.0.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging fo
r more details
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:xml-maven-plugin:1.0.2: Plugin org.codehaus.mojo:xml-maven-plugin:1.0.2 or one of its dep
endencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:xml-maven-plugin:jar:1.0.2
Downloading from ** Repo: ...
Downloading from ** Repo: ...
Downloading from ** Repo: ...
Downloaded from ** Repo: ... (261 B at 311 B/s)
Downloaded from ** Repo: ... (21 kB at 3.5 kB/s)
Downloaded from ** Repo: ... (15 kB at 2.3 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.808 s
[INFO] Finished at: 2024-07-10T11:59:40+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'gatling' in the current project and in the plugin groups [org.sonarsource.scanner.maven, org.apache.maven.plugins, org.cod
ehaus.mojo] available from the repositories [local (C:\Users\DattaJ\.m2\repository)]

Can you share with me also your pom file?

Hi @Jayasri,

Did it work before? What changed? (I guess the usage of maven reactor project to create test submodule)

Gatling version: 4.7.0 (must be up to date)

There is no 4.7.0 version for gatling app, latest is 3.11.5.
For gatling-maven-plugin, the latest version is 4.9.6, you should upgrade.

How did you configure the gatling-maven-plugin?

Did you try our sample project (just to ensure there is no issue with package download)?

Cheers!

You’re most likely running in a corporate network where you are forced to use your corporate maven repository (Sonatype Nexus or JFrog Artifactory) but the gatling-maven-plugin is missing there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.