Skip to content

Instantly share code, notes, and snippets.

@j5ik2o j5ik2o/gist:950451
Created May 1, 2011

Embed
What would you like to do?
sbtのlog
pom.xmlの中身
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>jp.tricreo.scala</groupId>
<artifactId>scala-ddd-base_2.8.1</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
...
import sbt._
class ScalaDddBaseProject(info: ProjectInfo) extends DefaultProject(info) with IdeaProject {
override def artifactID = "scala-ddd-base"
override def managedStyle = ManagedStyle.Maven
val mavenLocal = "Local Maven Repository" at "file://" + Path.userHome + "/.m2/repository"
val junitInterface = "com.novocode" % "junit-interface" % "0.6" % "test->default"
// publishing
lazy val publishTo = Resolver.sftp("Tricreo Repo", "maven.tricreo.jp", "/var/www/maven.tricreo.jp/release")
override def packageDocsJar = defaultJarPath("-javadoc.jar")
override def packageSrcJar = defaultJarPath("-sources.jar")
val sourceArtifact = Artifact.sources(artifactID)
val docsArtifact = Artifact.javadoc(artifactID)
override def packageToPublishActions = super.packageToPublishActions ++ Seq(packageDocs, packageSrc)
// dependencies
val junit = "junit" % "junit" % "4.8.1" % "test"
val specs = "org.specs" % "specs" % "1.3.1" % "test"
val scalatest = "org.scalatest" % "scalatest" % "1.3" % "test"
val jmockit = "mockit" % "jmockit" % "0.999.4" % "test"
val mockito = "org.mockito" % "mockito-core" % "1.8.5" % "test"
val baseunits = "jp.tricreo" % "baseunits-scala" % "0.0.1-SNAPSHOT"
val commons_lang = "commons-lang" % "commons-lang" % "2.5"
}
-- 以下ログ
[info] Building project scala-ddd-base 0.0.1-SNAPSHOT against Scala 2.8.1
[info] using ScalaDddBaseProject with sbt 0.7.5 and Scala 2.7.7
> clean
[info]
[info] == clean ==
[info] == clean ==
[success] Successful.
[info]
[info] Total time: 0 s, completed 2011/05/01 20:57:02
> publish-local
[info]
[info] == compile ==
[info] Source analysis: 22 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[warn] there were unchecked warnings; re-run with -unchecked for details
[warn] one warning found
[info] Compilation successful.
[info] Post-analysis: 50 classes.
[info] == compile ==
[info]
[info] == doc ==
[info] Generating API documentation for main sources...
[warn] there were unchecked warnings; re-run with -unchecked for details
model contains 0 documentable templates
[warn] one warning found
[info] API documentation generation successful.
[info] == doc ==
[info]
[info] == package ==
[info] Packaging ./target/scala_2.8.1/scala-ddd-base-0.0.1-SNAPSHOT.jar ...
[info] Packaging complete.
[info] == package ==
[info]
[info] == package-src ==
[info] Packaging ./target/scala_2.8.1/scala-ddd-base-0.0.1-SNAPSHOT-sources.jar ...
[info] Packaging complete.
[info] == package-src ==
[info]
[info] == package-docs ==
[info] Packaging ./target/scala_2.8.1/scala-ddd-base-0.0.1-SNAPSHOT-javadoc.jar ...
[info] Packaging complete.
[info] == package-docs ==
[info]
[info] == make-pom ==
[info] Wrote /Users/junichi/Projects/git/scala-ddd-base/target/scala_2.8.1/scala-ddd-base-0.0.1-SNAPSHOT.pom
[info] == make-pom ==
[info]
[info] == deliver-local ==
[info] :: delivering :: jp.tricreo.scala#scala-ddd-base_2.8.1;0.0.1-SNAPSHOT :: 0.0.1-SNAPSHOT :: release :: Sun May 01 20:57:34 JST 2011
[info] delivering ivy file to /Users/junichi/Projects/git/scala-ddd-base/target/scala_2.8.1/ivy-0.0.1-SNAPSHOT.xml
[info] == deliver-local ==
[info]
[info] == publish-local ==
[info] :: publishing :: jp.tricreo.scala#scala-ddd-base_2.8.1
[info] published scala-ddd-base to /Users/junichi/.ivy2/local/jp.tricreo.scala/scala-ddd-base_2.8.1/0.0.1-SNAPSHOT/jars/scala-ddd-base.jar
[info] published scala-ddd-base to /Users/junichi/.ivy2/local/jp.tricreo.scala/scala-ddd-base_2.8.1/0.0.1-SNAPSHOT/srcs/scala-ddd-base-sources.jar
[info] published scala-ddd-base to /Users/junichi/.ivy2/local/jp.tricreo.scala/scala-ddd-base_2.8.1/0.0.1-SNAPSHOT/docs/scala-ddd-base-javadoc.jar
[info] published scala-ddd-base to /Users/junichi/.ivy2/local/jp.tricreo.scala/scala-ddd-base_2.8.1/0.0.1-SNAPSHOT/poms/scala-ddd-base.pom
[info] published ivy to /Users/junichi/.ivy2/local/jp.tricreo.scala/scala-ddd-base_2.8.1/0.0.1-SNAPSHOT/ivys/ivy.xml
[info] == publish-local ==
[success] Successful.
[info]
[info] Total time: 25 s, completed 2011/05/01 20:57:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.