cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the repository project while building alfresco

federicopaliott
Champ in-the-making
Champ in-the-making
Hi I have downloaded the alfresco labs source code from the svn repository as it's mentioned on the Developer Guide, but when I' m running ant this is the result I got:
 

                                                                                                  :
                                                                                                  :
                                                                                                  :
    [javac] symbol  : method getLenientFormatters()
    [javac] location: class org.alfresco.util.CachingDateFormat
    [javac]         for (SimpleDateFormat df : CachingDateFormat.getLenientFormatters())
    [javac]                                                     ^
    [javac] /alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/search/impl/lucene/analysis/DateTimeTokenFilter.java:98: cannot find symbol
    [javac] symbol  : method lenientParse(java.lang.String)
    [javac] location: class org.alfresco.util.CachingDateFormat
    [javac]                     date = CachingDateFormat.lenientParse(candidate.termText());
    [javac]                                             ^
    [javac] /alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/search/impl/lucene/analysis/DateTokenFilter.java:78: cannot find symbol
    [javac] symbol  : method lenientParse(java.lang.String)
    [javac] location: class org.alfresco.util.CachingDateFormat
    [javac]                     date = CachingDateFormat.lenientParse(candidate.termText());
    [javac]                                             ^
    [javac] Note: Some input files additionally use or override a deprecated API.
    [javac] Note: Some input files additionally use unchecked or unsafe operations.
    [javac] 6 errors
    [javac] 100 warnings

BUILD FAILED
/alfresco/HEAD/root/projects.xml:246: The following error occurred while executing this line:
/alfresco/HEAD/root/macros.xml:27: Compile failed; see the compiler error output for details.
After compiling successfully other projects before it stops while compiling the repository project. It seems like it can't find some method definitions!
I find it amazing as a matter of fact this is just a svn-downloaded genuine source code and not even yet modified!!!

Can someone help please?
Thanks a lot anyway!
1 REPLY 1

mikeh
Star Contributor
Star Contributor
It's possible you've been unlucky and grabbed the code in the middle of a big merge from a development branch.

Please update and try again - the code's definitely just built and passed all unit tests on the build server just now.

Thanks,
Mike