Ciao,

Just an FYI I built the 2.0.8 maven archetype on ubuntu 16.04, tomcat
8.0.x, java 1.8.0 and deployed.  Docs were reasonable but not without some
confusion.

I experienced the same YAMLFactory error as expressed in this note
<https://markmail.org/message/qv7huab3zgzcsuqy> to the
incubator/syncope-user list:  https://markmail.org/message/qv7huab3zgzcsuqy

I saw the reply recommending the debian pkgs, however I've also read the
docs which state:   *Difficult to extend beyond pre-sets. *...this seems to
be contradictory, but I suppose "difficult" != "impossible"

In any event, I resolved this by adding the following dependency to
core/pom.xml

<dependency>

    <groupId>com.fasterxml.jackson.dataformat</groupId>

    <artifactId>jackson-dataformat-yaml</artifactId>

    <version>2.1.2</version>

</dependency>



I also created the below handy-dandy buld/deploy script because I kept
finding new things in the docs that I had to deal with like ports,
resources, paths, etc.

---

#!/bin/bash


HOMEDIR="/home/ubuntu/iam"

SRCDIRS="core console enduser"

SRCPATH="/target/classes/"

PROP="*properties"

FORM="customForm.json"


BASEDIR="/opt/syncope"

CONFDIR="$BASEDIR/conf"

DEPLOYDIR="/var/lib/tomcat8/webapps"

LOGDIR="$BASEDIR/log"


TC_CMD=/etc/init.d/tomcat8


cd $HOMEDIR

mvn clean verify \

   -Dconf.directory=$CONFDIR \

   -Dbundles.directory=$BASEDIR/bundles \

   -Dlog.directory=$LOGDIR


for dir in $SRCDIRS

do

  cp $dir$SRCPATH$PROP $CONFDIR

  if [ "enduser" == "$dir" ]

  then

    cp $dir$SRCPATH$FORM $CONFDIR

  fi

done


echo Stopping tomcat...;eval "$TC_CMD stop"

rm $LOGDIR/*

rm -rf $DEPLOYDIR/syncope*

find . -name "*.war" -exec cp {} $DEPLOYDIR \; -print

echo Starting tomcat...;eval "$TC_CMD start"

---



HTH,

Dave Varon
Creator of YADA <https://github.com/Novartis/YADA>
https://github.com/Novartis/YADA

Reply via email to