Fix a bug in the Che GWT maven plugin that prevents RhChe to build with upstream `master` (#10177)

It is a bug in the Che GWT maven plugin (in the `ProcessExcludesMojo`) that prevents `rh-che` to build correctly against the Che upstream `master` branch.

The fix consists in using the `baseVersion` (i.e. `6.8.0-SNAPSHOT` for example), instead of the precise version (i.e. `6.8.0-20180625.090508-19` for example) when trying to resolve excluded artifacts, since the precise version available in the Maven repositories can be a different between the main artifact and excluded artifacts.

Signed-off-by: David Festal <dfestal@redhat.com>
6.19.x
David Festal 2018-06-26 09:36:20 +02:00 committed by GitHub
parent 7ce7635ab1
commit d4e2d0f3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class ProcessExcludesMojo extends AbstractMojo {
String[] split = pattern.split(":");
String groupId = split[0];
String artifactId = split[1];
String version = fullIdeArtifact.getVersion();
String version = fullIdeArtifact.getBaseVersion();
Artifact artifact = repositorySystem.createArtifact(groupId, artifactId, version, "jar");
String gwtModule = readGwtModuleName(artifact);