Skip to content

Commit

Permalink
Fixing all issues to build eurekastreams on linux"
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Scherler authored and Thorsten Scherler committed Feb 16, 2011
1 parent 045134a commit e67af87
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
6 changes: 3 additions & 3 deletions database/src/main/resources/scripts/dev_apply_updates.sh
Expand Up @@ -74,7 +74,7 @@ else
fi


if [[ ! "$exepath" =~ 'scripts$' ]]
if [[ ! $exepath =~ .*scripts$ ]]
then
WriteLog "[ERROR] This script must be executed from within the directory where the scripts reside."
exit 1
Expand Down Expand Up @@ -152,7 +152,7 @@ function ApplyBase ()
# Change the application URL
sed -i "s,http://localhost:8080,$appurl,g" $fullscript\_create.sql
WriteLog "[INFO] Executing $dbscript to initialize the database."
mycommand=`psql -h $dbhost -d postgres -f $fullscript\_create.sql 2>&1 1>/dev/null`
mycommand=`psql -h $dbhost -d postgres -U postgres -f $fullscript\_create.sql 2>&1 1>/dev/null`
WriteLog "[DEBUG] Output from execution: $mycommand"
if [[ ! `echo $?` == 0 ]]
then
Expand Down Expand Up @@ -182,7 +182,7 @@ function main ()
{
WriteLog "[INFO] ===== Updates Script Starting====="
# Get the current database version components. If it doesn't exist, suppress the error. It will be handled in the subsequent if
currver=`psql -h $dbhost -d $dbname -t -c 'select major, minor, patch from db_version order by major desc, minor desc, patch desc limit 1;' 2> /dev/null`
currver=`psql -h $dbhost -d $dbname -U $dbuser -t -c 'select major, minor, patch from db_version order by major desc, minor desc, patch desc limit 1;' 2> /dev/null`
# Set startingversion so that we know how far to back out if there's a failure.
if [[ $currver != "" ]]
then
Expand Down
22 changes: 21 additions & 1 deletion database/src/main/resources/scripts/dev_reset_db.sh
Expand Up @@ -12,6 +12,9 @@ logdir=$HOME/logs
tempdbname=$1
tempdbuser=$2
tempdevhost=$3
dbname="eurekastreams"
dbuser="eurekastreams"
baseurl="http://localhost:8080"

function WriteLog {
# Log file rolls over daily
Expand All @@ -32,12 +35,29 @@ function WriteLog {
}

function main {
if [[ ! "$exepath" =~ 'scripts$' ]]
if [[ ! $exepath =~ .*scripts$ ]]
then
WriteLog "[ERROR]: This script must be executed from within the directory where the scripts reside."
exit 1
fi

if [ -z $tempdbname ]
then
tempdbname=$dbname
fi

if [ -z $tempdbuser ]
then
tempdbuser=$dbuser
fi

if [ -z $tempdevhost ]
then
tempdevhost=$baseurl
fi

WriteLog "[INFO]: tempdbname=" $tempdbname " tempdbuser=" $tempdbuser " tempdevhost=" $tempdevhost

if [[ ! "$exepath" =~ 'target' ]]
then
# If running as a developer, the path must contain "target"
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -136,7 +136,7 @@
<build.gwt.compile.style>PRETTY</build.gwt.compile.style>
<build.gadget.container.name>eureka</build.gadget.container.name>
<build.gadget.container.protocol>http://</build.gadget.container.protocol>
<build.gadget.shindig.version>2.0.1.2</build.gadget.shindig.version>
<build.gadget.shindig.version>2.0.1.1</build.gadget.shindig.version>
<build.analytics.hostname>http://analytics.example.com</build.analytics.hostname>
<build.analytics.siteid>-1</build.analytics.siteid>
<build.email.smtphost>smtp.example.com</build.email.smtphost>
Expand Down Expand Up @@ -194,7 +194,7 @@
<memmax>2048m</memmax>
</configuration>
</plugin>
<plugin>
<!--plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.4</version>
Expand All @@ -211,7 +211,7 @@
</goals>
</execution>
</executions>
</plugin>
</plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
Expand Down
5 changes: 4 additions & 1 deletion server/pom.xml
Expand Up @@ -290,7 +290,10 @@
<dependency>
<groupId>org.codehaus.spring-security-oauth</groupId>
<artifactId>spring-security-oauth</artifactId>
<version>3.19-ES</version>
<!-- They patched spring-security-oaut but did not published it
hhttp://groups.google.com/group/eureka-streams-dev/browse_thread/thread/49beec051b7cf8fb
<version>3.19-ES</version>-->
<version>3.19</version>
</dependency>
<dependency>
<groupId>org.springframework.ldap</groupId>
Expand Down

1 comment on commit e67af87

@gagannaidu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello ,
I cant able to install eurekastreams on ubuntu 12.04 , i am following http://kenning.co.nz/development/eurekastreams-ubuntu-10-04-lts-installation-guide/ this steps to install , upto 25 steps over but when i try "mvn install" step its showing error ,

[INFO] Unable to find resource 'com.lmco.shindig:shindig-gadgets:jar:2.0.1.1' in repository spy (http://bleu.west.spy.net/~dustin/m2repo/)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

  1. com.lmco.shindig:shindig-server:war:2.0.1.1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.lmco.shindig -DartifactId=shindig-server -Dversion=2.0.1.1 -Dpackaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.lmco.shindig -DartifactId=shindig-server -Dversion=2.0.1.1 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.eurekastreams:eurekastreams-server:jar:2.0-SNAPSHOT
2) com.lmco.shindig:shindig-server:war:2.0.1.1

  1. com.lmco.shindig:shindig-social-api:jar:2.0.1.1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.lmco.shindig -DartifactId=shindig-social-api -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.lmco.shindig -DartifactId=shindig-social-api -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.eurekastreams:eurekastreams-server:jar:2.0-SNAPSHOT
2) com.lmco.shindig:shindig-social-api:jar:2.0.1.1

  1. com.lmco.shindig:shindig-common:jar:2.0.1.1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.lmco.shindig -DartifactId=shindig-common -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.lmco.shindig -DartifactId=shindig-common -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.eurekastreams:eurekastreams-server:jar:2.0-SNAPSHOT
2) com.lmco.shindig:shindig-common:jar:2.0.1.1

  1. com.lmco.shindig:shindig-gadgets:jar:2.0.1.1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.lmco.shindig -DartifactId=shindig-gadgets -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.lmco.shindig -DartifactId=shindig-gadgets -Dversion=2.0.1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.eurekastreams:eurekastreams-server:jar:2.0-SNAPSHOT
2) com.lmco.shindig:shindig-gadgets:jar:2.0.1.1


4 required artifacts are missing.

for artifact:
org.eurekastreams:eurekastreams-server:jar:2.0-SNAPSHOT

from the specified remote repositories:
Eureka Streams Dependency Repo (https://raw.github.com/lmco/eurekastreams-mvn-repo/master/releases/),
ibilio (http://mirrors.ibiblio.org/pub/mirrors/maven2),
central (http://repo1.maven.org/maven2),
codehaus (http://mvnrepository.com/artifact/),
nuxeo (http://maven.nuxeo.org/nexus/content/groups/public/),
spy (http://bleu.west.spy.net/~dustin/m2repo/),
restlet (http://maven.restlet.org/),
maven-nexus (http://repository.jboss.org/nexus/content/groups/public)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 24 seconds
[INFO] Finished at: Tue Aug 06 18:20:14 IST 2013
[INFO] Final Memory: 60M/567M
[INFO] ------------------------------------------------------------------------
giluxe@sys11:~/eurekastreams$

How to solve this ..

Please sign in to comment.