From d4e2d0f3a1428b07ec70b2d8b96bd7ff62dc1d5f Mon Sep 17 00:00:00 2001 From: David Festal Date: Tue, 26 Jun 2018 09:36:20 +0200 Subject: [PATCH] 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 --- .../java/org/eclipse/che/plugin/gwt/ProcessExcludesMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/che-core-gwt-maven-plugin/src/main/java/org/eclipse/che/plugin/gwt/ProcessExcludesMojo.java b/core/che-core-gwt-maven-plugin/src/main/java/org/eclipse/che/plugin/gwt/ProcessExcludesMojo.java index 5c53d8b793..e0b7941cb6 100644 --- a/core/che-core-gwt-maven-plugin/src/main/java/org/eclipse/che/plugin/gwt/ProcessExcludesMojo.java +++ b/core/che-core-gwt-maven-plugin/src/main/java/org/eclipse/che/plugin/gwt/ProcessExcludesMojo.java @@ -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);