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

Allow variable use in Preferences > Maven > User Settings #1645

Open
tivervac opened this issue Jan 10, 2024 · 2 comments
Open

Allow variable use in Preferences > Maven > User Settings #1645

tivervac opened this issue Jan 10, 2024 · 2 comments

Comments

@tivervac
Copy link
Contributor

In our project, we don't use the .m2 repository. Instead, we configure a .repository to be used in our git root as localRepository in a global settings file pointed to in .mvn/config. This allows us to have multiple workspaces with separate maven local repositories and makes sure we don't mix dependencies between different projects.

We now want to have the same behavior in Eclipse for our projects with the maven nature. In Preferences > Maven > User Settings we can point to the global settings file, but it has to be an absolute path so I can't share this configuration with my colleagues. Allowing either a path relative to a project (which requires project preferences instead of workspace preferences) or the Eclipse variables would allow me to share the setting.

The second problem I have now is with the working directory during m2e dependency resolution. If I manually point the global settings in Preferences > Maven > User Settings to my settings file at <git_root>/.mvn/settings.xml with the line <localRepository>.repository</localRepository>. M2E resolves this path to ~/.repository. I thus want to be able to configure the working directory to my git root instead of the user home folder

@laeubi
Copy link
Member

laeubi commented Feb 18, 2024

No this is something different, it want to have variables to be used in the path for the settings (currently a full string must be given).

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

3 participants