Is it not time to split the Geronimo 2.0 build into separate maven-plugin, modules, applications, configs and assembly build steps??? We are using multiple groupIds, so why not split up the builds for each unique groupId?
-Donald anita kulshreshtha wrote:
Dims, Yes, it is not straightforward to do an offline build.. This is what many of us do: 1. If starting from an empty repo do a full online build. Delete modules, configs and assemblies directory from .m2 repo. Do an offline build of these items (sometimes car plugin). 2. After an svn update, build the files that changed from their respective modules directory online. This will download any new jars. Delete the modules, configs, and assemblies from .m2 repo and do an offline full build. Not pretty but works.. I started using this after my local classes went missing.. I have been looking at the code to figure out why the incompatibility was not caught by the compatibility test in GBeanDataTest. Does anyone know? Thanks Anita--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:Anita, Try this when you have some time. 1. Remove your .m2 2. "mvn install" from root. 3. cd to testsuite and run "mvn -N install" 4. cd to itests and run "mvn -N install" 5. cd to cxfPojoWS and run "mvn -o install" It's impossible to execute 5 with "-o" flag as the project needs to download cxf stuff from the remote repo. since you can't use the "-o" flag it will pick up the remote jar for geronimo-kernel. If you search all the sub directories after running 5, you will see 2 jars for geronimo-kernel, one built locally and one from the remote repo. Basically you are dead in the water. After this, you will have to replace the remote jar with the local jar and re-run "mvn install" to actually run the test. So basically "The only way to make sure that the local jars/cars are used is to do an offile build" is not possible. thanks, dims On 12/18/06, anita kulshreshtha <[EMAIL PROTECTED]> wrote:--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:Anita, Anyone who builds geronimo from scratch is likely to into into problem. We can't really tell people they can't use the jars they build themselves on their boxes and have to use the published SNAPSHOT jars.We do not tell people that they have to use the published jars.It isclear from this error that maven is still downloading jars from a remote repo instead of using the ones that were built locally. Theonlyway to make sure that the local jars/cars are used is to do anoffilebuild. Thanks Anita So i think we need to fix it. Just imagine that you are tryingto fix a bug in Geronimo kernel for shipping to your customer,butthe code does not have a serial version uid and the compiled jar ishenceunusable...not a pretty picture. I don't think we have to "worry" about compatibility especially as right now if 2 jars built fromsamesvn revision by 2 different people on different JDK's/JDKversions ondifferent boxes, you can't mix the jars. So there is no "compatibility" right now :( Anyway my specific problem was because of lack of the UID in GBeanOperation and i checked in a patch for it (487759). thanks, dims On 12/16/06, anita kulshreshtha <[EMAIL PROTECTED]> wrote:Dims, Joe, and Prasad I wish I had seen this coming.. The compatibility ofGBeanInfowasbroken for 4 days (Dec 10th - Dec 14), while we discussedwhetherweshould maintain this compatibility. In a perfect world it wouldnothave mattered.. But sometimes Maven does not use locally built SNAPSHOTs in online build mode (some of the reasons for thisareknown). Once the SNAPSHOTs published during this time, areoverwritten,this problem should go way. At least that is my thinking...Pleasecorrect me if I am on wrong track. Thanks Anita --- Joe Bohn <[EMAIL PROTECTED]> wrote:Prasad, I'm hitting this particular problem in trunk (but I have hitsimilarproblems in 2.0-M1). I actually was trying to recreate theproblemtoday in both trunk and 2.0-M1 ... after 4 builds on 2.0-M1 Ididn'thitthe problem but I hit it with the first attempt on trunk.As Imentioned, the second build attempt corrected the problem. Joe Prasad Kashyap wrote:I was able to build G successfully on a RedHat machine. I started with a completely clean repo (rm -rf.m2/repository).I did an 'svn up' of my 2.0-M1 directory. I had done afreshcheckoutof these files last night. The entire tree built successfully with a-Dmaven.test.skip=true.I verified that both jetty and tomcat binaries run fine. I used the console to successfully deploy jsp-examples apponbothbinaries. Cheers Prasad On 12/15/06, Joe Bohn <[EMAIL PROTECTED]> wrote:This might be the sporadic problem after all. I justrebuiltagainwithout any changes (still rev 487523) and the problemdoesn'texistwith the new images. Here's what I did this time: - mvn clean - from my local repo remove o/a/g/modules, configs,assemblies,andapplications rather than removing the entire local repo. - mvn -Dstage=bootstrap - still failed in the geronimo-jetty6 SecurityTest(yes, IknowIshould have skipped the tests but I wanted to see if thefailure/restartwas in any way related to the failures) - mvn -Dstage=bootstrap -Dmaven.test.skip=true-Dmaven.itest.skip=true- mvn -Dstage=assemble -Dmaven.test.skip=true-Dmaven.itest.skip=trueJoe Joe Bohn wrote:This is happening in trunk rev 487523. I'm not sure itisthesameproblem I reported earlier .. in fact I think it may bedifferent andpossibly related to the serialized UID change madeearliertoday.I was keeping careful track of what I did in case I hittheproblemthatI'm mentioned in other threads with the GBeanInfo object Here's what I did: - mvn clean - completely remove my local repository. - mvn -Dstage=bootstrap - this failed in modules/geronimo-jetty6 test case forSecurityTest... expecting a 500 returned instead of a 404 that wasreturned.- mvn -Dstage=bootstrap -Dmaven.test.skip=true-Dmaven.itest.skip=true- mvn -Dstage=assemble -Dmaven.test.skip=true-Dmaven.itest.skip=trueI then extracted the zip images created and beganhittingthiserror=== message truncated === __________________________________________________ Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
smime.p7s
Description: S/MIME Cryptographic Signature