Skip to content

Conversation

@michael-o
Copy link
Member

@michael-o michael-o commented Dec 25, 2021

@michael-o michael-o marked this pull request as draft December 25, 2021 15:58
@asfgit asfgit force-pushed the MNG-5561_maven-3.8.x branch from 1a479fa to 6f9e60c Compare December 25, 2021 22:41
asfgit pushed a commit that referenced this pull request Dec 25, 2021
Previously, to locate plugin configuration in a project the plugin descriptor
was read first and then the GA were extracted. This always worked because the
GA from the model and the GA from plugin descriptor (plugin.xml) were identical.
When a plugin is relocated the target artifact is read, thus its plugin
descriptor as well. Naturally, the GA of new (relocated) does not correspond to
the old (static) one in the model. Therefore, the configuration is not found.
New approach is to use the original plugin GA to locate the configuration in
the model regardless of the relocation.

This closes #642
@michael-o michael-o marked this pull request as ready for review December 25, 2021 23:18
asfgit pushed a commit that referenced this pull request Dec 30, 2021
Previously, to locate plugin configuration in a project the plugin descriptor
was read first and then the GA were extracted. This always worked because the
GA from the model and the GA from plugin descriptor (plugin.xml) were identical.
When a plugin is relocated the target artifact is read, thus its plugin
descriptor as well. Naturally, the GA of new (relocated) does not correspond to
the old (static) one in the model. Therefore, the configuration is not found.
New approach is to use the original plugin GA to locate the configuration in
the model regardless of the relocation.

This closes #642
Previously, to locate plugin configuration in the project the plugin descriptor
was read and the GA were extracted. This always worked because the GA from the
model and the GA from plugin descriptor (plugin.xml) were identical. When a
plugin is relocated the target artifact is read, thus its plugin descriptor as
well. Naturally, the GA of new (relocated) does not correspond to the old
(static) one in the model. Therefore, the configuration is not found.
New approach is to use the original plugin GA to locate the configuration in
the model regardless of relocation.
@asfgit asfgit force-pushed the MNG-5561_maven-3.8.x branch from 6f9e60c to 05b748f Compare December 30, 2021 16:05
@asfgit asfgit closed this in 2670c00 Jan 6, 2022
@michael-o michael-o deleted the MNG-5561_maven-3.8.x branch January 6, 2022 15:57
@jira-importer
Copy link

Resolve #6777

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

Successfully merging this pull request may close these issues.

4 participants