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
parent
7ce7635ab1
commit
d4e2d0f3a1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue