Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gurvinder Singh
spark_apps
Commits
6028e965
Commit
6028e965
authored
Jun 30, 2014
by
Sigmund Augdal
Browse files
Empty maven archetype skeleton for a scala app
parent
94ad72ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
scalaApp/spark-scala-test/pom.xml
0 → 100644
View file @
6028e965
<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/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
no.uninett
</groupId>
<artifactId>
spark-scala-test
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
spark-scala-test
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.scala-lang
</groupId>
<artifactId>
scala-library
</artifactId>
<version>
2.9.1
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.10
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
2.3
</version>
<configuration>
<source>
1.6
</source>
<target>
1.6
</target>
<mainClass>
no.uninett.App
</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>
org.scala-tools
</groupId>
<artifactId>
maven-scala-plugin
</artifactId>
<version>
2.15.2
</version>
<executions>
<execution>
<id>
scala-compile-first
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
add-source
</goal>
<goal>
compile
</goal>
</goals>
</execution>
<execution>
<id>
scala-test-compile
</id>
<phase>
process-test-resources
</phase>
<goals>
<goal>
testCompile
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
2.4
</version>
<configuration>
<archive>
<index>
true
</index>
<manifest>
<classpathPrefix>
lib/
</classpathPrefix>
<addClasspath>
true
</addClasspath>
<mainClass>
no.uninett.App
</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<version>
2.2
</version>
<executions>
<execution>
<id>
copy-dependencies
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-dependencies
</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
<overWriteReleases>
true
</overWriteReleases>
<overWriteSnapshots>
true
</overWriteSnapshots>
<overWriteIfNewer>
true
</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
scalaApp/spark-scala-test/src/main/scala/no/uninett/App.scala
0 → 100644
View file @
6028e965
package
no.uninett
/**
* Hello world!
*
*/
object
App
{
def
main
(
args
:
Array
[
String
])
:
Unit
={
println
(
"Hello World!"
)
}
}
scalaApp/spark-scala-test/src/test/scala/no/uninett/AppTest.scala
0 → 100644
View file @
6028e965
package
no.uninett
import
org.junit.Test
import
org.junit.Assert._
/**
* Unit test for simple App.
*/
class
AppTest
{
/**
* Rigourous Test :-)
*/
@Test
def
testApp
()
:
Unit
={
assertTrue
(
true
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment