vaadin-framework/scripts/validate-application-archetype.sh
Artur Signell cf0a3cba90 Unified archetype scripts and added multimodule test
Change-Id: I6cd7d4ca4a1386920dbe657accd18836a009a11c
2015-02-09 13:00:27 +00:00

17 行
821 B
Bash
可执行文件

#!/bin/bash
dir=`dirname $0`
ARCHETYPE_ARTIFACT=vaadin-archetype-application
. $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
mvn jetty:run
popd