Thursday, July 15, 2010

Re: Can the GWT Eclipse Plugin use Maven downloaded artifacts for the SDK?

Thanks Kathrin -- I went ahead and tried that, but it wouldn't let
me... Check this out -- the artifact is in this directory that was
created by Maven:

~/.m2/repository/com/google/gwt/gwt-user/2.0.3

But the plugin seems to be hard-coded to look for a file named "gwt-
user.jar" but in this case, the maven artifact filename is "gwt-
user-2.0.3.jar" and the GUI of the plugin won't let me select it!!!

I did however, get it work with the UGLIEST of workarounds:

I violated every principal of Maven and hand created a directory with
symbolic links named after the SDK files that point to my 2.0.3
artifacts. I then pointed the Eclipse plugin to that. It works, but
it will break as soon as I upgrade anything! Plus now I have two
copies of the JARs on my classpath.

Any other ideas?

On Jul 15, 9:01 pm, Katharina Probst <kpro...@google.com> wrote:
> Hi David,
>
> yes, you can point to any SDK you choose (maven, compile from trunk, ...).
>  If you right-click on your project and go to Google->Web Toolkit Settings,
> it'll let you configure where your SDK sits.  Click on "Configure SDKs..."
> and then Add, point it to whatever directory your SDK sits in.
>
> kathrin
>
> On Thu, Jul 15, 2010 at 2:07 PM, David Vree <david.h.v...@gmail.com> wrote:
> > I am currently using Maven to download the GWT dependencies from the
> > Maven central repository as follows:
>
> >                <dependency>
> >                        <groupId>com.google.gwt</groupId>
> >                        <artifactId>gwt-servlet</artifactId>
> >                        <version>${gwt.version}</version>
> >                        <scope>runtime</scope>
> >                </dependency>
> >                <dependency>
> >                        <groupId>com.google.gwt</groupId>
> >                        <artifactId>gwt-user</artifactId>
> >                        <version>${gwt.version}</version>
> >                        <scope>provided</scope>
> >                </dependency>
>
> > At the same time, I am trying to use the Eclipse GWT plugin I
> > installed from here:
>
> >http://dl.google.com/eclipse/plugin/3.5
>
> > I did NOT install the SDK from the update site.  However, the plugin
> > wants to know the location of the GWT SDK.  Often when Eclipse plugins
> > want to know the location of JAR files, I point them to my "~/.m2/
> > repository" directories -- but so far I see no way to do this with
> > GWT.
>
> > I ask for two reasons:
>
> > a) I don't want the plugin to mandate my version of the SDK (it
> > downloads 2.0.4 right now).
> > b) I don't want two copies of the JAR files lying around.
>
> > Is this possible?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate