blob: f36b603db9fb139f50e9c7fab1c15a9d5d7d3ec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/bash
if [ ! -e "vaadin-shared" ]
then
echo "You must run this in the directory containing folders for the various vaadin-* modules."
echo "If you run this in the project directory, go to result/artifacts/<version>/"
echo "If you run this on build artifacts from the build server, run it in the directory where you unzipped the artifacts"
exit 1
fi
for base in *
do
if [ ! -d "$base" ]
then
continue
fi
pushd "$base"
version=`ls "$base"-*.pom|sed "s/$base-//"|sed "s/.pom//"`
pomTemplate="$base-$version.pom"
if [ -e "$pomTemplate" ]
then
id="$base-$version"
pomFile="$pomTemplate-modified"
file="$id.jar"
javadocFile="$id-javadoc.jar"
sourcesFile="$id-sources.jar"
# Install using real version for easy testing
cat "$pomTemplate"|sed "s/<version>7.*-SNAPSHOT</<version>$version</g" > "$pomFile"
echo "Installing $base $version..."
if [ -e "$javadocFile" ]
then
mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile="$pomFile" -Djavadoc="$javadocFile" -Dsources="$sourcesFile" -Dfile="$file"
else
mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile="$pomFile" -Dfile="$file"
fi
fi
popd
done
|