ShaleMaven2/Script

HomePage | ShaleMaven2 | RecentChanges | Preferences

This is the script I'm using to update the snapshot/internal Maven repositories. Updated 20060219.

See also: http://svn.apache.org/repos/asf/struts/shale/trunk/build/maven2/README.txt

# 20060308 wsmoak 
# Checks out and builds Shale, then deploys snapshots to both Maven repos

echo "Updating shale-snapshot"
svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale-snapshot

cd shale-snapshot

echo "modifying build.properties"
cp build.properties.sample build.properties
echo "htmlunit.home=c:/java/htmlunit-1.6/" >> build.properties
echo "derby.dir=c:/java/db-derby-10.1.2.1-bin/" >> build.properties
echo "creator2.home=c:/Program Files/Sun/Creator2" >> build.properties

ant copy-creator2
ant download-dependencies clean dist

SHALE_CLAY_JAR=clay-plugin/dist/lib/shale-clay.jar
SHALE_CORE_JAR=core-library/dist/lib/shale-core.jar
SHALE_DESIGNTIME_JAR=core-library/dist/lib/shale-designtime.jar
SHALE_REMOTING_JAR=core-library/dist/lib/shale-remoting.jar
SHALE_SPRING_JAR=core-library/dist/lib/shale-spring.jar
SHALE_TEST_JAR=test-framework/dist/lib/shale-test.jar
SHALE_TIGER_JAR=tiger/dist/lib/shale-tiger.jar
SHALE_TILES_JAR=core-library/dist/lib/shale-tiles.jar


M2_REPO=scp://people.apache.org/www/cvs.apache.org/maven-snapshot-repository
POMS=build/maven2

echo "Deploying artifacts to the internal m2 repo"
# See ~/.maven/settings.xml for the repository config, 'apache-snapshot' is defined there.
mvn deploy:deploy-file -Dfile=$SHALE_CLAY_JAR          -DpomFile=$POMS/shale-clay.pom          -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_CORE_JAR          -DpomFile=$POMS/shale-core.pom          -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_DESIGNTIME_JAR    -DpomFile=$POMS/shale-designtime.pom    -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_REMOTING_JAR      -DpomFile=$POMS/shale-remoting.pom      -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_SPRING_JAR        -DpomFile=$POMS/shale-spring.pom        -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_TEST_JAR          -DpomFile=$POMS/shale-test.pom          -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_TIGER_JAR         -DpomFile=$POMS/shale-tiger.pom         -DrepositoryId=apache-snapshot -Durl=$M2_REPO
mvn deploy:deploy-file -Dfile=$SHALE_TILES_JAR         -DpomFile=$POMS/shale-tiles.pom         -DrepositoryId=apache-snapshot -Durl=$M2_REPO


VERSION=1.0.1-SNAPSHOT
M1_REPO=people.apache.org:/www/cvs.apache.org/repository

echo "Deploying artifacts to the internal m1 repo"
scp $SHALE_CLAY_JAR         $M1_REPO/struts/jars/shale-clay-$VERSION.jar
scp $SHALE_CORE_JAR         $M1_REPO/struts/jars/shale-core-$VERSION.jar
scp $SHALE_DESIGNTIME_JAR   $M1_REPO/struts/jars/shale-designtime-$VERSION.jar
scp $SHALE_REMOTING_JAR     $M1_REPO/struts/jars/shale-remoting-$VERSION.jar
scp $SHALE_SPRING_JAR       $M1_REPO/struts/jars/shale-spring-$VERSION.jar
scp $SHALE_TEST_JAR         $M1_REPO/struts/jars/shale-test-$VERSION.jar
scp $SHALE_TIGER_JAR        $M1_REPO/struts/jars/shale-tiger-$VERSION.jar
scp $SHALE_TILES_JAR        $M1_REPO/struts/jars/shale-tiles-$VERSION.jar
echo "Done."

While we're talking about scripts, to build and update the website, it's:

cd build
maven multiproject:clean multiproject:site site:sshdeploy -Dmaven.username=yourid

HomePage | ShaleMaven2 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 8, 2006 10:23 am by WendySmoak (diff)
Search: