aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/validate-application-multimodule-archetype.sh
blob: 0b2bb724806fb35b880da4528de2c41f6d3021c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
dir=`dirname $0`
ARCHETYPE_ARTIFACT=vaadin-archetype-application-multimodule
. $dir/validate-archetype-common.sh


mvn archetype:generate -DarchetypeGroupId=$ARCHETYPE_GROUP -DarchetypeArtifactId=$ARCHETYPE_ARTIFACT -DarchetypeVersion=$ARCHETYPE_VERSION -DarchetypeRepository=$ARCHETYPEREPO -DgroupId=$GROUP -DartifactId=$ART -Dversion=1.0-SNAPSHOT -DinteractiveMode=false
pushd $ART
# Add vaadin repo
$SED -i "s#<repositories>#<repositories><repository><id>vaadin-$ARCHETYPE_VERSION-staging</id><url>$VAADINREPO</url></repository>#" pom.xml
# Add vaadin and plugin repo as plugin repos
$SED -i "s#</repositories>#</repositories><pluginRepositories><pluginRepository><id>vaadin-$ARCHETYPE_VERSION-plugin-staging</id><url>$PLUGINREPO</url></pluginRepository></pluginRepositories>#" pom.xml

mvn install && pushd $ART-ui && mvn jetty:run
popd
popd