-
1. Re: Richfaces build question: how to build a specific version with a patch
ppitonak Nov 27, 2012 10:58 AM (in response to darius.ski)Hi,
after you make a change in RichFaces code, you just need to run this again:
cd build
mvn clean install -DskipTests=true -Dcheckstyle.skip=true -P build,release
Regards,
Palo
-
2. Re: Richfaces build question: how to build a specific version with a patch
darius.ski Nov 27, 2012 12:07 PM (in response to ppitonak)Hi,
checking out / patching / building the version from the master ( 4.3.0.Snapshot at the moment) works just fine, I do:
git clone git://github.com/richfaces/build.git
cd build
cd ..
bash build/scripts/richgit.sh -t git
change the source file I need followed by:
mvn clean install -DskipTests=true -Dcheckstyle.skip=true -P build,release
I endup with properly built jars with my modifications in.
What I am having trouble with is - doing the same, but for specific version of Richfaces. For example I want to checkout 4.2.3.Final, change the source file and build a jar, that is different from official release only by my change.
I have outlined the steps I am it with in my first post, but for whatever reason the jar files built do not change.
Regards,
Darius.
-
3. Re: Richfaces build question: how to build a specific version with a patch
bleathem Nov 27, 2012 3:53 PM (in response to darius.ski)Be sure to check out this resource: https://community.jboss.org/wiki/RichFaces4xReleaseProcedure
It has a lot of good info in it.
So the steps you want are:
- git clone git://github.com/richfaces/build.git
- // Clone all the required repositories
bash build/scripts/richgit.sh -t git - // Checkout in all repos the appropriate tag
bash build/scripts/richgit.sh -e git checkout <tag>
// where <tag> is the tag you are looking to extend from (eg. 4.2.3.20121017-Final) - // create a new git branch
bash build/scripts/richgit.sh -e git checkout -b myBranch - // Next thing to do is to increment the version number, so you don't end up confusing maven with two artifacts with the same version
// Try changing it to 4.3.2.Final.dariusski
bash build/scripts/change_version.sh -r -o <development_pom_version> -n <release_pom_version> - // make your change
bash build/scripts/richgit.sh -e git add -A
bash build/scripts/richgit.sh -e "git commit -m 'changing version to <release_pom_version>'" - // now do the build
mvn -P build,release clean install
This should create jars with the RichFaces version you specified above. And them to your local maven repository with "mvn install:install-file ..." or upload it to your nexus/artifactory deployment.
FYI: This will be *way* easier when we move to the new build structure in RichFaces 5.
Brian Leathem
-
4. Re: Richfaces build question: how to build a specific version with a patch
darius.ski Nov 28, 2012 8:54 AM (in response to bleathem)Hi,
Brian, thanks a lot for Your help. I am also looking forward to RF5, hopefully the process is less custom and more vanilla git action in the future
Here are the exact steps I have used to build 4.2.3.Final with my changes:
git clone git://github.com/richfaces/build.git
bash build/scripts/richgit.sh -t git
// at this step it is necessary to get the name of a tag, so cd to build dir and execute "git tag -l", don't forget to return to the build root before proceeding
bash build/scripts/richgit.sh -e git checkout 4.2.3.20121017-Final
bash build/scripts/richgit.sh -e git checkout -b myBranch
bash build/scripts/change_version.sh -r -o 4.2.3.Final -n 4.2.3.Final.D
// made my changes to the files at this step
bash build/scripts/richgit.sh -e git add -A
bash build/scripts/richgit.sh -e "git commit -m 'changing version to D'"
mvn clean install -DskipTests=true -Dcheckstyle.skip=true -P build,release