-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of basic broken project
- Loading branch information
0 parents
commit aaa917b
Showing
4 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
target/ | ||
*.iws | ||
*.iml | ||
*.ipr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>brokenpom</artifactId> | ||
<groupId>brokenpom</groupId> | ||
<version>0.1.1-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>Akka Dependencies Broken Pom</name> | ||
<description> | ||
A POM to hopefully reproduce a dependency bug | ||
</description> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<repositories> | ||
<repository> | ||
<id>typesafe</id> | ||
<name>Typesafe Repository</name> | ||
<url>http://repo.typesafe.com/typesafe/releases</url> | ||
</repository> | ||
<repository> | ||
<id>sonatype</id> | ||
<name>Sonatype</name> | ||
<url>https://oss.sonatype.org/content/groups/scala-tools/</url> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.scala-lang</groupId> | ||
<artifactId>scala-library</artifactId> | ||
<version>2.9.1-1-RC1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe.akka</groupId> | ||
<artifactId>akka-actor</artifactId> | ||
<version>2.0-RC3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe</groupId> | ||
<artifactId>play-mini_2.9.1</artifactId> | ||
<version>2.0-RC3</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.scala-lang</groupId> | ||
<artifactId>scala-library</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
|
||
<sourceDirectory>src/main/scala</sourceDirectory> | ||
<testSourceDirectory>src/test/scala</testSourceDirectory> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>org.scala-tools</groupId> | ||
<artifactId>maven-scala-plugin</artifactId> | ||
<version>2.15.2</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>compile</goal> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<scalaVersion>2.9.1</scalaVersion> | ||
<launchers> | ||
<launcher> | ||
<id>akka</id> | ||
<mainClass>brokenpom.App</mainClass> | ||
<jvmArgs> | ||
<jvmArg>-Xmx512m</jvmArg> | ||
</jvmArgs> | ||
</launcher> | ||
<launcher> | ||
<id>rest</id> | ||
<mainClass>play.core.server.NettyServer</mainClass> | ||
<jvmArgs> | ||
<jvmArg>-Xmx512m</jvmArg> | ||
</jvmArgs> | ||
</launcher> | ||
</launchers> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
object Global extends com.typesafe.play.mini.Setup(brokenpom.App) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package brokenpom | ||
|
||
import play.api.mvc.{Action, AsyncResult} | ||
import play.api.mvc.Results._ | ||
import play.api.libs.concurrent._ | ||
|
||
import scala.util.Random | ||
import annotation.tailrec | ||
|
||
import akka.actor.{Props, ActorSystem, Actor} | ||
import akka.pattern.ask | ||
import akka.pattern.pipe | ||
import akka.util.Timeout | ||
import akka.util.duration._ | ||
import akka.dispatch.{Await, Future} | ||
import play.api.data.Form | ||
import play.api.data.Forms._ | ||
import com.typesafe.play.mini._ | ||
|
||
object App extends Application { | ||
|
||
def route = Routes( | ||
Through("/search/term/") {groups: List[String] => | ||
Action { | ||
val term :: Nil = groups | ||
Ok(<h1>Your search term was: {term}</h1>).as("text/html") | ||
} | ||
}, | ||
{ | ||
case GET(Path("/ping")) => Action { Ok("Pong @ %s\n".format(System.currentTimeMillis))} | ||
} | ||
) | ||
|
||
} |