cancel
Showing results for 
Search instead for 
Did you mean: 

Source build broken in 3.2

gyro_gearless
Champ in-the-making
Champ in-the-making
Hi folks,

i wonder if anyone but me has lately tried to build some 3.2 release from SVN sources?

I checked out both Revision 15074 (aka V3.2.0-COMMUNITY-FINAL) and 16803 (aka V3.2.0-COMMUNITY-RM-FINAL)

My 3.0 proven method of building Alfresco:

ant build build-modules

fails for both releases in target compile-kb:


compile-kb:
    [mkdir] Created dir: C:\usr\src\Alfresco-HEAD\root\modules\knowledge-base\build\classes
    [javac] Compiling 4 source files to C:\usr\src\Alfresco-HEAD\root\modules\knowledge-base\build\classes
    [javac] C:\usr\src\Alfresco-HEAD\root\modules\knowledge-base\source\java\org\alfresco\module\knowledgeBase\ArticleAspect.java:64
: org.alfresco.module.knowledgeBase.ArticleAspect is not abstract and does not override abstract method getCopyCallback(org.alfresco
.service.namespace.QName,org.alfresco.repo.copy.CopyDetails) in org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy
    [javac] public class ArticleAspect implements KbModel,
    [javac]        ^
    [javac] 1 error

BUILD FAILED

I get the same result when using "-f continous.xml".

So, do i have a wrong understanding which target to use? I suppose a release should at least properly build….


Any hints welcome 🙂

Cheers
Gyro
4 REPLIES 4

r_traarbach
Champ in-the-making
Champ in-the-making
Hi,

Don't know if it's correct but in order for Alfresco 3.2 R2+ labs to compile perform these changes:

1) Open up ArticleAspect.java in source\java\org\alfresco\module\knowledgeBase
2) add these three lines to the import section

import org.alfresco.repo.copy.CopyBehaviourCallback;
import org.alfresco.repo.copy.CopyDetails;
import org.alfresco.repo.copy.DefaultCopyBehaviourCallback;

3) add this before the closing of the ArticeAspect class

public CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails) {
return new XyzAspectCopyBehaviourCallback();
}

private static class XyzAspectCopyBehaviourCallback extends DefaultCopyBehaviourCallback {
      // Override methods any to achieve the desired behaviour     
      public boolean mustCopyChildAssociation(QName classQName, CopyDetails copyDetails, ChildAssociationRef childAssocRef)    {
          return true;
      }
  }

This makes Alf compile. I guess it is caused by deprication(as from version 3.0 +) and … yes it should compile Out of the Box (but it does not).

Good luck with Alfresco Labs.

Greetings,
Robert

gyro_gearless
Champ in-the-making
Champ in-the-making
Hi Robert,

tx a lot, just tried this and build runs fine now!

Again, i wonder if there is at least a minimum bit of QA / Continous Integration done on the community versions…  :shock:

Cheers
Gyro

mrogers
Star Contributor
Star Contributor
Yes there is  QA on the Community builds and each build passes the automated unit tests.

However, clearly, the "knowledge base" module is not part of the community build if it does not even compile.

I've never heard of it.    And its not one of the downloads provided by alfresco.

It probably needs to be removed from alfresco's svn rather than fixed.

mrogers
Star Contributor
Star Contributor
Raised ALFCOM-3648 for this issue.