Sunday, July 29, 2012

sbt, g8 getting started


giter8 is ~= maven archetypes
https://github.com/n8han/giter8/

to install conscript do this
>>curl https://raw.github.com/n8han/conscript/master/setup.sh
it pus cs in ~/bin

some help:
http://scala.micronauticsresearch.com/sbt/useful-sbt-commands
scala example https://github.com/padcom/spring-example

append with EMPTY new line another sbt plugin common for user machine as
~/.sbt/plugins/plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0-RC1")


run as follows to create a sample project
g8 chrislewis/basic-project
(say you create testApp)

to create eclipse files
cd testApp
sbt eclipse (this create eclipse files, use Indigo to open project) !





6 comments:

askraj said...

-logging from /var/log/messages
-output of "ulimit -a" for your JBoss user
-output of the following from the time of the issue:
# ps -eLf > ps.out
# netstat > netstat.out
# lsof > lsof.out

askraj said...

mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app

askraj said...

for i in `find -iname '*.jar'` ; do jar tvf $i | grep ViewDataAction.class && echo $i ; done;

askraj said...

sudo chown -hR rpradeshik cams_cachedir

askraj said...

CREATE TABLE servers_bak AS
SELECT *
FROM servers;

desc servers_bak

SELECT COUNT(*)
FROM servers_bak;

askraj said...

http://psoug.org/reference/insert.html