...
No Format |
---|
version.service=RELEASE version.sakai=2.7.1 |
POM UPDATES
Update all pom.xml <version> values from 2.
...
7.0 to 2.7.1.
Update /master/pom.xml <sakai.version> from 2.
...
7.0 to 2.7.1.
Code Block | ||||
---|---|---|---|---|
| ||||
<sakai.version>2.7.1</sakai.version> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<sakai.kernel.version>1.01.13<9</sakai.kernel.version> |
Confirm /master/pom.xml Sakai Maven plugin <version> from 1.2.0
Code Block | ||||
---|---|---|---|---|
| ||||
<plugin> <inherited>true</inherited> <groupId>org.sakaiproject.maven.plugins</groupId> <artifactId>sakai</artifactId> <version>1.2.0</version> . . . . </plugin> |
...
/pack-demo/pom.xml.
Confirm that pack-demo pom includes the binary artifact generation code.
...
Check for presence of *runconversion.sh (in assignment, content (named content-runconversion.sh, db) and update embedded comments Sakai version to 2.7.1 and Kernel K1 version to 1.01.129.
No Format |
---|
dhcp-dc-prog13:branches arwhyte$ find 2.7.1/ -type f -name "*conversion.sh" -print 2.7.1//assignment/runconversion.sh 2.7.1//content/content-runconversion.sh 2.7.1//mailarchive/mailarchive-runconversion.sh |
ECLIPSE METADATA FILES
Check Eclipse metadata files and ensure they include correct dependencies. If not run
No Format |
---|
mvn eclipse:clean eclipse:eclipse
|
and commit changes.
GENERATE RELEASE ARTIFACTS
Get copy of Maven2 repo
GENERATE RELEASE ARTIFACTS
Get copy of Maven2 repo
Mount Sakai Maven2 Repo using DAV (https:/source.sakaiproject.org/maven2 -> /Volumes/maven2). WARNING: create backup folder of maven2 so that only one copy operation is required in event of a generation failure. This takes far too long to accomplish. Just tar up maven2/org/sakaiproject
and sftp or scp across the network. The challenge here is that you need all the Maven metadata files locally so that they can be properly updated during the release. Start thinking about using rsync.
...
- Check out 2.7.1 branch
- clean Tomcat 5.5.2630
- empty .m2/repository/org/sakaiproject
- new MySQL 5.01.x sakai db
- Confirm maven-taglib is defined in .m2/settings.xml
...
2. Confirm that taglib profile is included.
Code Block | ||||
---|---|---|---|---|
| ||||
<profile> <id>taglib</id> <modules> <module>gradebook/app/ui</module> <module>help/help-tool</module> <module>jsf/widgets</module> <module>mailtool/mailtool</module> <module>metaobj/metaobj-util/tool-lib</module> <module>msgcntr/messageforums-app</module> <module>osp/common/tool-lib</module> <module>osp/glossary/tool-lib</module> <module>osp/jsf/widgets</module> <module>osp/presentation/tool-lib</module> <module>podcasts/podcasts-app</module> <module>postem/postem-app</module> <module>profile/profile-app</module> <module>roster/roster-app</module> <module>rwiki/rwiki-tool/tool</module> <module>sam/samigo-app</module> <module>sections/sections-app</module> <module>sections/sections-app-util</module> <module>syllabus/syllabus-app</module> <modules> <module>gradebook/app/ui</module> <module>help/help-tool</module> <!-- <module>jsf/jsf-widgets</module> --> <module>metaobj/metaobj-util/tool-lib</module> </modules> <profile> |
Copy sakaiartifactgenerator.sh to local 2.7.1 branch checkout folder and run
No Format |
---|
sh sakaiartifactgenerator.sh 2.7.1 storepass keystore
|
The artifactgenerator script performs the following steps
1. clean out previous builds
2. clean out target, m2-target, bin
3. clean out /tmp/maven2
4. updates <version> (M2 to 2.7.1) in
all pom.xml
all .classpath
all runconversion.sh
, also content-runconversion.sh
The script pauses to allow the changes to be committed. Once the commits are completed, update the .externals
file (all projects) to r52308 in preparation for cutting the final release tag.
No Format |
---|
sed -e "s/ -r [0-9]*/ -r 52308/" <.externals >.externals.tmp
cp .externals.tmp .externals
rm -f .externals.tmp
svn propset -F .externals svn:externals .
svn propget svn:externals
svn commit -m "tag prep for next release"
|
Resume script run.
5. tar up the source code (samigo-audio jar is not signed)
The script then pauses to allow a manual modification of samigo-audio pom.xml to uncomment the jar sign execution goal. Uncomment the maven-jar-plugin. Comment out <keystore>, <alias> and <storepass>.
WARNING DO NOT COMMIT this change to the samigo-audio pom.xml file.
No Format |
---|
<plugins> <!-- <module>msgcntr/messageforums-app</module> --> <module>osp/common/tool-lib</module> <module>osp/glossary/tool-lib</module> <module>osp/jsf/widgets</module> <module>osp/presentation/tool-lib</module> <module>podcasts/podcasts-app</module> <module>postem/postem-app</module> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId><!-- <module>profile/profile-app</module> --> <executions> <module>roster/roster-app</module> <execution> <module>rwiki/rwiki-tool/tool</module> <goals> <goal>sign</goal> <!-- <module>sam/samigo-app</module> --> </goals> <module>sections/sections-app</module> </execution> </executions><module>sections/sections-app-util</module> <configuration> <!-- <module>syllabus/syllabus-app</module> <keystore>/somepath/your.keystore</keystore> </modules> </profile> |
Copy sakaiartifactgenerator.sh to local 2.7.1 branch checkout folder and run
No Format |
---|
sh sakaiartifactgenerator.sh 2.7.1 storepass keystore
|
The artifactgenerator script performs the following steps
1. clean out previous builds
2. clean out target, m2-target, bin
3. clean out /tmp/maven2
4. updates <version> (M2 to 2.7.1) in
all pom.xml
all .classpath
all runconversion.sh
, also content-runconversion.sh
The script pauses to allow the changes to be committed. Once the commits are completed, update the .externals
file (all projects) to r52308 in preparation for cutting the final release tag.
No Format |
---|
sed <alias>youralias</alias> <storepass>yourpassword</storepass> --> <verify>true</verify> </configuration> </plugin> </plugins> -e "s/ -r [0-9]*/ -r 52308/" <.externals >.externals.tmp cp .externals.tmp .externals rm -f .externals.tmp svn propset -F .externals svn:externals . svn propget svn:externals svn commit -m "tag prep for next release" |
Resume script run.
5. tar up the source code
6. perform the following mvn actions:
...
WARNING do not issue clean and install goals or local repo will get wiped prematurely (Sakai maven2 repo has yet to be updated).to be updated).
No Format |
---|
cd master
mvn install
cd ..
mvn -o -Dmaven.test.skip=true sakai:deploy
|
1.1 Fix bin artifacts
The ant task fails to create the archives correctly, including a parent folder. Fix as follows:
No Format |
---|
cdtar master mvn install cd .. mvn -o -Dmaven.test.skip=true sakai:deploy-czvf sakai-bin-2.7.1.tgz ECLv2.text common components licenses server shared webapps |
2. Run the demo artifact.
...
No Format |
---|
bash sakaitagbuilder-2.67.bash [JIRA ISSUE] sakai-2.7.1 tags 2.7.1 |
...