seriously, sbt and war

238 views
Skip to first unread message

Vlad Patryshev

unread,
Jun 24, 2014, 12:56:03 AM6/24/14
to scala-user
I have to confess. I've spent 3 days already trying to make my sbt build a war file.
Created the project from the scratch, no legacy. The sbt site tells me something that just does not compile.

And it probably raises a general issue.

I can write code in Scala. But I have no clue about how to write code in sbt. There are tons of versions; people change, language changes, every new one is so amazingly good...

All I want is a Barbie ballerina... I mean, sbt to build a war file. Ideally, it could as well deploy it, but I can do it in shell. I can do other stuff in shell too.

Or is it a wrong forum, I wonder...

Thanks,
-Vlad

Erik Post

unread,
Jun 24, 2014, 7:34:24 AM6/24/14
to scala...@googlegroups.com
Hi Vlad,

I feel your pain, brother! Here are some of my own build files for a web project I'm working on. [1] Don't forget to use paulp's sbt-extras! [2] You can build a war by doing packageWar in SBT.

Raoul Duke

unread,
Jun 24, 2014, 12:53:11 PM6/24/14
to scala-user
why do people continue to condone sbt, then?
> --
> You received this message because you are subscribed to the Google Groups
> "scala-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scala-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jerzy Muller

unread,
Jun 24, 2014, 1:05:01 PM6/24/14
to scala...@googlegroups.com
Because it's a great and simple (base concepts) tool that allows you to hand-craft some very nice things for your project.

It's now maintained by really great guy, Josh Suereth, who tries to simplify sbt for users and helps with any questions you may have relating sbt.

Cheers,
Jerzy

√iktor Ҡlang

unread,
Jun 24, 2014, 1:09:53 PM6/24/14
to Vlad Patryshev, scala-user
It's pretty hard for others to help you if you don't share what the issue is.


--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,

Naftoli Gugenheim

unread,
Jun 24, 2014, 1:15:16 PM6/24/14
to Vlad Patryshev, scala-user
What exactly is the issue? Are you using https://github.com/earldouglas/xsbt-web-plugin ?


--

Clint Gilbert

unread,
Jun 24, 2014, 1:23:28 PM6/24/14
to scala...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Because SBT is fashionable, and the fiddly details of building
deployable artifacts (wars or any other format) isn't and likely never
will be.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlOptAkACgkQ0GFaTS4nYxuqoQCfRL45L+zOIpYqJxCswM5+pFwA
dmsAnA06nCdlVFUxB/iN1u/DukNRjRf/
=eatj
-----END PGP SIGNATURE-----

Naftoli Gugenheim

unread,
Jun 24, 2014, 1:54:48 PM6/24/14
to Clint Gilbert, scala-user
I never had an issue building wars...

Vlad Patryshev

unread,
Jun 24, 2014, 2:42:48 PM6/24/14
to √iktor Ҡlang, scala-user
The issue is simple, I've described it already. I write a build.sbt, add James' plugin, just in case, experiment with what they say on sbt web site - but all I manage to package is a jar. Jar is good; I want a war; and tons of documentation are telling me that's what package produces, a war. No, it does not. No error messages. Is it supposed to?

Thanks,
-Vlad

Jason Zaugg

unread,
Jun 24, 2014, 4:28:31 PM6/24/14
to Vlad Patryshev, √iktor Ҡlang, scala-user
On Tue, Jun 24, 2014 at 8:42 PM, Vlad Patryshev <vpatr...@gmail.com> wrote:
The issue is simple, I've described it already. I write a build.sbt, add James' plugin, just in case, experiment with what they say on sbt web site - but all I manage to package is a jar. Jar is good; I want a war; and tons of documentation are telling me that's what package produces, a war. No, it does not. No error messages. Is it supposed to?

I followed these instructions and got a Barbie^W WAR file.

It might be helpful if you could post a project that exhibits the problem. The #sbt tag on StackOverflow is the preferred venue for SBT help.

-jason

Naftoli Gugenheim

unread,
Jun 24, 2014, 8:30:09 PM6/24/14
to Vlad Patryshev, scala-user, Viktor Klang

You to have to run packageWar.

Vlad Patryshev

unread,
Jun 25, 2014, 1:08:27 AM6/25/14
to Erik Post, scala-user
Erik,

Thank you so much!!! It worked!!! 

(Now I wonder whether to go ahead and investigate, or leave it to Josh...

-Vlad


On Tue, Jun 24, 2014 at 4:34 AM, Erik Post <eriks...@gmail.com> wrote:

--

Som Snytt

unread,
Jun 25, 2014, 1:30:47 AM6/25/14
to Raoul Duke, scala-user
sbt = sexy barbie toy

Maybe you thought Vlad was exercising his gift for hyperbole, but no, that's really all we want.

It's what unites humanity across all lines of difference, including gender and who you root for in the World Cup, respectively, in the World Series.

It's also key to how Scala unites FP and OOP.

Erik Post

unread,
Jun 25, 2014, 7:17:08 AM6/25/14
to scala...@googlegroups.com, eriks...@gmail.com
Hi Vlad, 

Glad to hear it! Good luck deploying your war. :)

Cheers,
Erik
Reply all
Reply to author
Forward
0 new messages