Skip to content

Commit 0aa0e6c

Browse files
authored
Support the new org.gwtproject maven groupId (#404)
Fixes #403
1 parent e5cb514 commit 0aa0e6c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

plugins/com.gwtplugins.gdt.eclipse.maven/src/com/google/gdt/eclipse/maven/sdk/GWTMavenRuntime.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
public class GWTMavenRuntime extends ProjectBoundSdk {
5353

5454
public static final String MAVEN_GWT_GROUP_ID = "com.google.gwt";
55+
public static final String MAVEN_GWT_NEW_GROUP_ID = "org.gwtproject";
5556
public static final String MAVEN_GWT_DEV_JAR_ARTIFACT_ID = "gwt-dev";
5657
public static final String MAVEN_GWT_USER_ARTIFACT_ID = "gwt-user";
5758
public static final String MAVEN_GWT_SERVLET_ARTIFACT_ID = "gwt-servlet";
@@ -154,7 +155,11 @@ public File getDevJar() throws SdkException, JavaModelException {
154155
IPath path = MavenUtils.getArtifactPathForPeerMavenArtifact(classpathEntry.getPath(), MAVEN_GWT_GROUP_ID,
155156
MAVEN_GWT_DEV_JAR_ARTIFACT_ID);
156157
if (path == null) {
157-
throw new SdkException("Unable to locate gwt-dev.jar");
158+
path = MavenUtils.getArtifactPathForPeerMavenArtifact(classpathEntry.getPath(), MAVEN_GWT_NEW_GROUP_ID,
159+
MAVEN_GWT_DEV_JAR_ARTIFACT_ID);
160+
if (path == null) {
161+
throw new SdkException("Unable to locate gwt-dev.jar");
162+
}
158163
}
159164

160165
if (!path.toFile().exists()) {

0 commit comments

Comments
 (0)