Wednesday, September 29, 2010

Re: How to import Expenses project into Eclipse?

I haven't built it myself but you may want to
1) Make sure the M2_HOME is set in your eclipse variables (may have to
search for it)
2) Run mvn eclipse:eclipse in your project directory
3) import an existing project into your eclipse ide.

On Sep 28, 8:32 pm, Bayard Randel <k...@bestpractice.net.nz> wrote:
> I'm not familiar with Maven and struggling to build this as well. Is a
> simple Ant build for an eclipse project likely to be included at some
> point?
>
> On Sep 28, 9:39 pm, hezjing <hezj...@gmail.com> wrote:> I got a little bit further with the following steps:
>
> > 1. Build the GWT source code:
>
> > >cd C:\gwt\trunk
> > >ant
>
> > 2. Install the latest GWT JARs into local Maven repository:>mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-servlet
>
> > ^
> > -Dversion=2.1-SNAPSHOT -Dpackaging=jar
> > -Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-servlet.jar>mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-user ^
>
> > -Dversion=2.1-SNAPSHOT -Dpackaging=jar
> > -Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-user.jar
>
> > 3. Import C:\gwt\trunk\samples\expenses to Eclipse as an existing Maven
> > project.
>
> > Now I'm able to browse the project without any error.
>
> > How should I run the application from Eclipse? I tried:
>
> > 1. Project -> Properties -> Google -> App Engine Settings ...
> > Check 'Use Google App Engine'
> > Use specific SDK: 'C:\Documents and
> > Settings\hezjing\.m2\repository\com\google\appengine - unknown version'
>
> > 2. Project -> Properties -> Google -> Web Toolkit
> > Check 'Use Google Web Toolkit'
> > Configure and use the SDK at C:\gwt\trunk\build\staging\gwt-0.0.0
>
> > 3. Project -> Properties -> Google -> Web Application
> > Check 'The project has a WAR directory'
> > WAR directory: src/main/webapp
> > Uncheck 'Launch and deploy from this directory'
>
> > With the above steps, I got an error that says:
> > The App Engine SDK 'C:\Documents and
> > Settings\cpt2t2o\.m2\repository\com\google\appengine' on the project's build
> > path is not valid
>
> > I also failed to run the application from command line using gae:run:
>
> > C:\gwt\trunk\samples\expenses>mvn gae:run
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'gae'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] The plugin 'org.codehaus.mojo:google-app-engine-maven-plugin' does
> > not exist or no valid version could be found
>
> > I definitely need more help from you :-)
>
> > On Tue, Sep 28, 2010 at 3:16 AM, Ed M <mwamuf...@gmail.com> wrote:
> > > where are you supposed to run the 'mvn package' command from?
>
> > > If the answer is the command prompt. I'm assuming that this means one
> > > has to actually download maven, not just the eclipse plugin
>
> > > --
> > > 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%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
>
> > Hez

--
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.

No comments:

Post a Comment