-
Notifications
You must be signed in to change notification settings - Fork 176
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
[FDN-82] Maven dependencies that override the build directory #1343
[FDN-82] Maven dependencies that override the build directory #1343
Conversation
142bbf7
to
795d887
Compare
693ebad
to
0aee0d3
Compare
It's not spelled out explicitly, but is the idea here that the |
Yes, |
That's perfect, thank you! |
Overview
in FDN-82, the customer has overridden the build directory for a maven project, by adding this to the pom.xml:
This is breaking the Maven PluginStrategy, as
parseReactorOutput
is expecting the output fromexecPluginReactor
to be in<project base>/target
(the default build directory), but it is going in<project base>/.build
instead.I fixed this by putting the output from
execPluginReactor
into a temp directory and tellingparseReactorOutput
that it's in that temp directory.Acceptance criteria
Testing plan
Put this in a
pom.xml
file in an otherwise empty directory:Test with the build directory overridden:
In the directory with the pom file:
Now edit the pom.xml file to remove the
<build>
section. Analyze again:Verify that there is no difference between the two outputs:
Risks
This seems safe to me
Metrics
References
Checklist
docs/
.docs/README.ms
and gave consideration to how discoverable or not my documentation is.Changelog.md
. If this PR did not mark a release, I added my changes into an# Unreleased
section at the top..fossa.yml
orfossa-deps.{json.yml}
, I updateddocs/references/files/*.schema.json
AND I have updated example files used byfossa init
command. You may also need to update these if you have added/removed new dependency type (e.g.pip
) or analysis target type (e.g.poetry
).docs/references/subcommands/<subcommand>.md
.