On 6 July 2015 at 16:48, Gordon Sim <[email protected]> wrote: > On 07/06/2015 04:08 PM, Rafael Schloming wrote: >> >> Any sort of missing class really should be a compile time exception, which >> I think means you must have stale class files *somewhere*. You could try >> doing a find checkout -name "*.class" just as a sanity check. > > > I have deleted all the .class files that are generated in the source tree > (and deleted the entire build directory). > > The class files are rebuilt for ProtonJInterop, alongside those for > InteropTest and JythonTest in > ./tests/target/test-classes/org/apache/qpid/proton/: > > ProtonJInterop$1.class > ProtonJInterop.class > ProtonJInterop$Recv.class > ProtonJInterop$Send.class > ProtonJInterop$SendHandler.class > > However the test run still reports that it cannot load these. >
Do you have anything interesting in your build dir structure, like spaces etc, that we might not? >> Also, it's >> possible something in your local maven repo is somehow coming into play, >> maybe blow that away and rebuild it and/or do an mvn install to be sure >> that remove dependencies aren't out of sync with local code? > > > I removed everything I could find that was proton related from the mvn > repository, but that didn't help. > If you are running maven from the root of the proton tree to build and test the modules then its building everything proton-related there is and shouldn't look in its local repo for those as a result. Each modules classes are loaded using the class files in the target dirs when testing, again not the local repo. If you build certain modules in isoluation of its dependencies, then it will look in the local repo (and/or remote repos, based on update schedules and last check times) to get any bits that it needs which aren't already part of the current build, in which case yes you would want to 'mvn install' those bits to the local repo if you have local changes, or allow them to be updated from remote repositories if you dont (again, based on schedule..use -U to force repo update check) or for example if you are using mismatched local and remote snapshot bits. Robbie
