maven/make-embedder.sh

16 lines
361 B
Bash
Raw Normal View History

#!/bin/sh
ds=`date "+2.1.0.v%Y%m%d-%H%M"`
dir=`pwd`
mvn source:aggregate
mv target/maven-2.1-SNAPSHOT-sources.jar $dir/maven-embedder-$ds-depsrc.zip
(
cd maven-embedder
sed "s@<bundleVersion>.*</bundleVersion>@<bundleVersion>$ds</bundleVersion>@" pom.xml > tmp; mv tmp pom.xml
mvn clean assembly:assembly
mv target/maven-embedder-$ds-dep.jar $dir
)