Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 743039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:49:02+00:00 2026-05-14T08:49:02+00:00

Has anybody tried to setup sbt to work with Google App Engine? I dream

  • 0

Has anybody tried to setup sbt to work with Google App Engine? I dream about using development server auto-reloading after source changes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:49:02+00:00Added an answer on May 14, 2026 at 8:49 am

    For a quick demo you can clone or download what I have done here.

    A minimalistic sbt-appengine-plugin example from scratch

    Clone the sbt-appengine-plugin from GitHub

     cd mystuff
     git clone git://github.com/Yasushi/sbt-appengine-plugin.git
     cd sbt-appengine-plugin
     sbt
    

    Publish the plugin locally so that you can use it in your own projects

    publish-local
    exit
    

    Create a directory for a new project

    cd ..
    mkdir sbt-appengine-plugin-test
    cd sbt-appengine-plugin-test
    sbt
    

    Configure the new project

    Project does not exist, create new project? (y/N/s) y
    Name: sbt-appengine-plugin-test
    Organization: com.example
    Version [1.0]: 
    Scala version [2.7.7]: 2.8.0.Beta1
    sbt version [0.7.3]:
    exit
    

    Tell sbt about the plugin you want to use

    mkdir project/build
    mkdir project/plugins
    nano project/build/project.scala
    

    project.scala

    import sbt._
    
    class AppengineTestProject(info: ProjectInfo) extends AppengineProject(info)
    
    nano project/plugins/plugins.scala
    

    plugins.scala

    import sbt._
    
    class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
      val a = "net.stbbs.yasushi" % "sbt-appengine-plugin" % "1.1-SNAPSHOT"
    }
    

    Add a very simple servlet

    mkdir -p src/main/scala/com/example
    nano -w src/main/scala/com/example/HelloWorld.scala
    

    HelloWorld.scala

    package com.example;
    
    import javax.servlet.http.{HttpServlet, HttpServletRequest, HttpServletResponse}
    
    class HelloWorld extends HttpServlet {
      override def doGet(request: HttpServletRequest, response: HttpServletResponse$
        response.setContentType("text/plain")
        response.getWriter.println("Hello, world")
      }
    }
    

    Add some more configuration files

    mkdir -p src/main/webapp/WEB-INF
    nano -w src/main/WEB-INF/web.xml
    

    web.xml

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app 
       xmlns="http://java.sun.com/xml/ns/javaee" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xm$
       version="2.5">
      <display-name>sbt-appengine-plugin usage example</display-name>
          <servlet>
        <servlet-name>helloworld</servlet-name>
        <servlet-class>com.example.HelloWorld</servlet-class>
      </servlet>
          <servlet-mapping>
        <servlet-name>helloworld</servlet-name>
        <url-pattern>/</url-pattern>
      </servlet-mapping>
    </web-app>
    
    
    nano -w src/main/WEB-INF/appengine-web.xml
    

    appengine-web.xml

    <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <!-- Replace this with your application id from http://appengine.google.com -$
      <application>hello-world</application>
      <version>1</version>
    </appengine-web-app>
    

    And finally run sbt and start the project

    sbt
    
    update
    dev-appserver-start
    

    Point your browser to http://localhost:8080/ and you should see Hello, world

    dev-appserver-stop
    

    To watch for changes in source files I have experimented a little with ~prepare-webapp after starting the server, but I haven’t gotten it working properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody tried to use JavaFX Script in server side applications? The language itself
Has anybody tried any Unit Test generators for .Net? I assume although it won't
Has anybody found a good solution for lazily-evaluated lists in Perl? I've tried a
Has anybody got any kind of experience with dynamic programming using WCF. By dynamic
Has anyone got EclipseLink MOXy (I'm using eclipselink 2.1.0) to work with Java 5?
Has anybody tried Apple's sample code PhotoScroller on iPad. I am getting a few
Has anybody tried doing GSP design with Adobe Dreamweaver CS4? It has support for
Has anybody tried to install the beta SP1 for VS2010 and MVC3 at the
Has anybody built a custom tinymce mcefilemanager with ftp support or tried to integrate
Has anybody successfully build Mesa 7.10 with llvmpipe driver using LLVM 2.8 on Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.