Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect setting of M2_HOME or MAVEN_OPTS #99

Open
imagejan opened this issue Jul 16, 2024 · 0 comments
Open

Respect setting of M2_HOME or MAVEN_OPTS #99

imagejan opened this issue Jul 16, 2024 · 0 comments

Comments

@imagejan
Copy link
Member

jgo (at least when launched via Python: python -m jgo) currently doesn't respect when the environment variables M2_HOME or MAVEN_OPTS are set.

We currently default to this:

jgo/src/jgo/jgo.py

Lines 430 to 434 in 89d20d1

config.set(
"settings",
"m2Repo",
os.path.join(str(pathlib.Path.home()), ".m2", "repository"),
)

Maybe we can do something similar to handling the JGO_CACHE_DIR variable?

jgo/src/jgo/jgo.py

Lines 726 to 729 in 89d20d1

if os.getenv(jgo_cache_dir_environment_variable()) is not None:
cache_dir = os.getenv(jgo_cache_dir_environment_variable())
_logger.debug("Setting cache dir from environment: %s", cache_dir)
config.set("settings", "cacheDir", cache_dir)

Related: #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant