mirror of
https://github.com/vaadin/framework.git
synced 2024-08-19 02:12:40 +02:00
21 lines
888 B
Bash
21 lines
888 B
Bash
![]() |
#!/bin/bash
|
||
|
dir=`dirname $0`
|
||
|
ARCHETYPE_ARTIFACT=vaadin-archetype-widget
|
||
|
. $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
|
||
|
for a in $ART $ART-demo
|
||
|
do
|
||
|
pushd $a
|
||
|
# 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#</pluginRepositories>#<pluginRepository><id>vaadin-$ARCHETYPE_VERSION-plugin-staging</id><url>$PLUGINREPO</url></pluginRepository></pluginRepositories>#" pom.xml
|
||
|
popd
|
||
|
done
|
||
|
|
||
|
|
||
|
pushd $ART && mvn install && popd && pushd $ART-demo && mvn package jetty:run
|