AnsweredAssumed Answered

i get the source archive , how i can build Alfresco from it

Question asked by sarah.kho on Apr 24, 2006
Latest reply on Apr 25, 2006 by sarah.kho
Hi
Thank you for reading my post
I get the Alfresco Source code from the web site , its archive name is :alfresco-src-1.2.0.zip
Now i want to build alfresco from this source , i have ANT installed + java sdk + Jboss + tomcat but i get error when i want to buid it using :
alfresco_home/build.xml
here is the complete eroor list of ant command :

Buildfile: build.xml

common-init.init:
     [echo] Starting build for alfresco at 00:45

init:

clean:
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for core at 00:45

clean:
   [delete] Deleting directory F:\dev\FrameWorks\Alfresco\projects\core\build\classes
   [delete] Deleting directory F:\dev\FrameWorks\Alfresco\projects\core\build\dist
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for repository at 00:45

clean:
   [delete] Deleting directory F:\dev\FrameWorks\Alfresco\projects\repository\build\classes
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

common-init.init:
     [echo] Starting build for remote-api at 00:45

init:

clean:
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for jcr at 00:45

clean:
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for web-client at 00:45

common.clean:

clean:

incremental-tomcat:
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for core at 00:45

compile-java:
    [mkdir] Created dir: F:\dev\FrameWorks\Alfresco\projects\core\build\classes
    [javac] Compiling 53 source files to F:\dev\FrameWorks\Alfresco\projects\core\build\classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 4 files to F:\dev\FrameWorks\Alfresco\projects\core\build\classes

package-jar:
    [mkdir] Created dir: F:\dev\FrameWorks\Alfresco\projects\core\build\dist
      [jar] Building jar: F:\dev\FrameWorks\Alfresco\projects\core\build\dist\core.jar

package:

incremental:
Duplicated project name in import. Project common-init defined first in F:\dev\FrameWorks\Alfresco\common-init.xml and again in F:\dev\FrameWorks\Alfresco\common\common-init.xml

init:
     [echo] Starting build for repository at 00:45

common.compile-java:
    [mkdir] Created dir: F:\dev\FrameWorks\Alfresco\projects\repository\build\classes
    [javac] Compiling 1041 source files to F:\dev\FrameWorks\Alfresco\projects\repository\build\classes
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\DatePropertyValueComparator.java:97: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.DatePropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.DATE, this);
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\DatePropertyValueComparator.java:98: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.DatePropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.DATETIME, this);       
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\NumericPropertyValueComparator.java:98: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.NumericPropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.DOUBLE, this);
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\NumericPropertyValueComparator.java:99: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.NumericPropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.FLOAT, this);
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\NumericPropertyValueComparator.java:100: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.NumericPropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.INT, this);
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\NumericPropertyValueComparator.java:101: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.NumericPropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.LONG, this);
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\action\evaluator\TextPropertyValueComparator.java:168: registerComparator(org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.compare.PropertyValueComparator) in org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator cannot be applied to (org.alfresco.service.namespace.QName,org.alfresco.repo.action.evaluator.TextPropertyValueComparator)
    [javac]         evaluator.registerComparator(DataTypeDefinition.TEXT, this);       
    [javac]                  ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\FastCharStream.java:107: warning: [deprecation] getLine() in org.alfresco.repo.search.impl.lucene.CharStream has been deprecated
    [javac]   public final int getLine() {
    [javac]                    ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\FastCharStream.java:104: warning: [deprecation] getColumn() in org.alfresco.repo.search.impl.lucene.CharStream has been deprecated
    [javac]   public final int getColumn() {
    [javac]                    ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\search\impl\lucene\LuceneIndexerAndSearcherFactory.java:1042: cannot find symbol
    [javac] symbol  : method copyDirectory(java.io.File,java.io.File,boolean)
    [javac] location: class org.apache.commons.io.FileUtils
    [javac]             FileUtils.copyDirectory(sourceDir, tempDir, true);
    [javac]                      ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceImpl.java:38: org.alfresco.repo.security.authority.AuthorityServiceImpl is not abstract and does not override abstract method getName(org.alfresco.service.cmr.security.AuthorityType,java.lang.String) in org.alfresco.service.cmr.security.AuthorityService
    [javac] public class AuthorityServiceImpl implements AuthorityService
    [javac]        ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceImpl.java:48: cannot find symbol
    [javac] symbol  : variable GUEST
    [javac] location: interface org.alfresco.service.cmr.security.PermissionService
    [javac]     private Set<String> guestSet = Collections.singleton(PermissionService.GUEST);
    [javac]                                                                           ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceTest.java:58: cannot find symbol
    [javac] symbol  : method exists(java.lang.String)
    [javac] location: interface org.alfresco.repo.security.authentication.AuthenticationComponent
    [javac]         if(!authenticationComponent.exists("andy"))
    [javac]                                    ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceTest.java:63: cannot find symbol
    [javac] symbol  : method exists(java.lang.String)
    [javac] location: interface org.alfresco.repo.security.authentication.AuthenticationComponent
    [javac]         if(!authenticationComponent.exists("admin"))
    [javac]                                    ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceTest.java:68: cannot find symbol
    [javac] symbol  : method exists(java.lang.String)
    [javac] location: interface org.alfresco.repo.security.authentication.AuthenticationComponent
    [javac]         if(!authenticationComponent.exists("administrator"))
    [javac]                                    ^
    [javac] F:\dev\FrameWorks\Alfresco\projects\repository\source\java\org\alfresco\repo\security\authority\AuthorityServiceTest.java:111: cannot find symbol
    [javac] symbol  : variable GUEST
    [javac] location: interface org.alfresco.service.cmr.security.PermissionService
    [javac]         assertTrue(pubAuthorityService.getAllAuthorities(AuthorityType.GUEST).contains(PermissionService.GUEST));
    [javac]                                                                                                         ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 14 errors
    [javac] 2 warnings

Outcomes