openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Prud'hommeaux <>
Subject Re: OpenJPA snapshots
Date Wed, 29 Aug 2007 05:58:19 GMT

On Aug 28, 2007, at 7:04 PM, Patrick Linskey wrote:

> Hi,
> It looks like the nightly builds are not coming from trunk anymore.

They are (or, at least, should be). Last night's build was successful  
and can be found at:

If tonight's builds successfully, you should see it at the new  
version (which I just updated in the trunk today):

Note that since we decided against deploying artifacts to the Apache  
maven repository, nothing is currently being uploaded to the maven  
repository. I have yet to figure out a good solution to getting just  
the jars but not the installed artifacts into the repo.

> Additionally, currently, the snapshots are built and uploaded from
> Marc's laptop, and I don't think that he'll have very good
> connectivity while he's on vacation.
> So, I'm planning to set up a job that runs the following script,
> triggered by checkins. Is there anything else that I should be putting
> in the script? Will this cause the snapshot to be uploaded to the
> "right" location?
> #!/bin/sh
> export MAVEN_OPTS=-Xmx512m
> export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
> export PATH=$PATH:$HOME/bin/scripts/maven-2.0.7/bin
> dir=/tmp/openjpa-snapshot-$$
> mkdir -p $dir
> cd $dir
> svn co .
> mvn --batch-mode package
> -Djava14.jar=/usr/lib/jvm/j2sdk1.4.2_15/jre/lib/rt.jar && \
>     mvn --batch-mode install -Pexamples-profile,tck-profile && \
>     mvn --batch-mode deploy
> -Ptest-derby,javadoc-profile,docbook-profile,sign-release -Dtest=false
> && cd /tmp && rm -rf $dir

That won't work, since "deploy" no longer uploads anything. You need  
to use site:deploy instead. FTR, here is my nightly build script:

#!/bin/bash -e
rm -rf ${DIR} || echo New directory

mkdir ${DIR}
cd ${DIR}
svn co

cd ${DIR}/trunk/

mvn clean install -Dtest=false && MAVEN_OPTS=-Xmx900m mvn --batch- 
mode deploy site -Ptest-derby,tck-profile,examples-profile,license- 
verify-profile,javadoc-profile,docbook-profile,sign-release - 

# check sigs
gpg --verify target/site/downloads/*
gpg --verify target/site/downloads/*

# Upload site (only snapshots). See pre-sync'd site at:
#  links -http-proxy -dump 
# Will be eventually available (11 minutes after the hour) at:
mvn projecthelp:effective-pom | grep -- '-SNAPSHOT</version>' && mvn  
--batch-mode site:deploy

> -Patrick
> -- 
> Patrick Linskey
> 202 669 5907

View raw message