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

Local repository is not honored #358

Open
cstamas opened this issue May 22, 2023 · 0 comments
Open

Local repository is not honored #358

cstamas opened this issue May 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@cstamas
Copy link

cstamas commented May 22, 2023

Describe the bug
It seems the framework does not honor local repository.

To Reproduce
Use settings.xml that uses alternate local repo, for example:

<?xml version="1.0"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository>${env.HOME}/.m2/repository-oss</localRepository>
</settings>

The go and build this project https://github.com/openrewrite/rewrite-maven-plugin
ITs will fail by not finding the artifact being built/installed.

The problem goes away by removing settings.xml, hence I assume ITF goes for default (and in this case it works as Maven will install things there as well).

Current behavior
ITF misses the fact that Maven uses non default local repository.

Expected behavior
ITF should figure that alt local repository is being used.

@cstamas cstamas added the bug Something isn't working label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant