Cucumber JVM Plug-in import error Could not create local repository
search cancel

Cucumber JVM Plug-in import error Could not create local repository

book

Article ID: 387731

calendar_today

Updated On:

Products

Continuous Delivery Director Continuous Delivery Director SAAS

Issue/Introduction

Using Cucumber JVM Plug-in importation of sources fail with error like :

[DEBUG] Command Executed: [sh -c mvn clean test -Dcucumber.execution.dry-run -Dcucumber.plugin=json:target/cucumber.json -Dcucumber.features=.  -Dcucumber.options
=". -d  --glue .  --plugin json:target/cucumber.json"].
Command Working Directory: [/home/cdd/projects/<ID>].
JRE details: [Java Version: 1.8.0_432, Java Runtime version: 1.8.0_432-b06, Java Home: /opt/java/openjdk/jre, Java vendor: Temurin].

2025-01-28 08:54:25.451 [ERROR] Could not create local repository at /.m2/repository -> [Help 1]
2025-01-28 08:54:25.453 [ERROR] 
2025-01-28 08:54:25.454 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2025-01-28 08:54:25.455 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2025-01-28 08:54:25.456 [ERROR] 
2025-01-28 08:54:25.456 [ERROR] For more information about the errors and possible solutions, please read the following articles:
2025-01-28 08:54:25.457 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException

[DEBUG] Command Executed: [sh -c mvn clean test -Dcucumber.execution.dry-run -Dcucumber.plugin=json:target/cucumber.json -Dcucumber.features=.  -Dcucumber.options
=". -d  --glue .  --plugin json:target/cucumber.json"].
...
Exit Code: [1]

Environment

Continuous Delivery Director 8.6.1

Resolution

- Check file settings.properties if it contains lines like :

cdd.plugins.containerized.cucumberjvm.container.image_name=<repository>:<tag>
cdd.plugins.containerized.cucumberjvm.container.volumes.artifacts.volumes=dependencies:/home/cdd/.m2

See : Set Up the Cucumber JVM Plug-in

 

or if it still does not work :

- Update this settings like this :
cdd.plugins.containerized.cucumberjvm.container.volumes.artifacts.volumes=dependencies:/.m2

Remark : By default the build process creates the .m2 folder in the user's home directory. But the default location could be overridden by the setting of the used project, or by the user's definition.