cancel
Showing results for 
Search instead for 
Did you mean: 

Problem build alfresco from SVN

donpimpom
Champ in-the-making
Champ in-the-making
Hi,

I do:

1. download from svn the latest revision: svn co http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco
2. dowload tomcat 6 from apache servers and untar in /opt, so i've the directory /opt/tomcat6
3. Copy /opt/tomcat6 to /opt/tomcat6-virtual
4. Add the environment variable: JAVA_HOME=/usr/lib/jvm/java-6-sun (It's correct in Debian)
5. Add the environment:

export TOMCAT_HOME=/opt/tomcat6
export APP_TOMCAT_HOME=/opt/tomcat6
export VIRTUAL_TOMCAT_HOME=/opt/tomcat6-virtual

6. I'm go the directory from SVN in my system for example: /home/donpimpom/SVN/alfresco/HEAD/root and wirte in console: ant build-tomcat

But i get this error:

Buildfile: /home/donpimpom/SVN/alfresco/HEAD/root/build.xml

BUILD FAILED
Target "continuous-init" does not exist in the project "alfresco". It is used from target "distribute-command-jars".

Total time: 0 seconds


What append??

I follow the wiki guide: http://wiki.alfresco.com/wiki/Development_Environment

Thanks.
7 REPLIES 7

mikeh
Star Contributor
Star Contributor
You've done nothing wrong - it's a problem with our build files in HEAD.

For now, remove the "distribute-command-jars" target from build.xml.

Thanks,
Mike

donpimpom
Champ in-the-making
Champ in-the-making
Perfect!

But….now, when it build it, the console log say that directory …..HEAD/root/${env.TOMCAT_HOME}/lib not exit.

In my Eclipse, I've configured env.TOMCAT_HOME variable equals to /opt/tomcat6 where i've got tomcat6.

What happend now?

Thank's

mikeh
Star Contributor
Star Contributor
Not sure what your other problem is (what's the build.xml line it's failing on?) but the original issue is now fixed in r19981

Thanks,
Mike

sduensin
Champ in-the-making
Champ in-the-making
Not sure what your other problem is (what's the build.xml line it's failing on?) but the original issue is now fixed in r19981

I just ran into this myself.  It's line 566 of build.xml for me…

/home/scott/source/Alfresco/HEAD/root/build.xml:566: Directory does not exist:/home/scott/source/Alfresco/HEAD/root/${env.TOMCAT_HOME}/lib

TOMCAT_HOME is set to /opt/tomcat/apache-tomcat-6.0.29 and "lib" exists under that.  This is SVN revision 22282 checked out last night.  Any ideas?  Thanks!


Scott

sduensin
Champ in-the-making
Champ in-the-making
Nevermind.  Sleep is a good thing.  So is the 'export' keyword in bash.

Scott

tct787
Champ in-the-making
Champ in-the-making
@ scott,
   I am also getting the same error . Did u get rid of this error ?? "Directory does not exist .. /HEAD/root/${env.TOMCAT_HOME}/lib" ?? pls respond

thanks ,
thomas

vignesh_sabapat
Champ in-the-making
Champ in-the-making
hi

You can see from the error that ${env.TOMCAT_HOME} is not replaced with the path which you specified. I came across this error and its probably due to setting up the path with normal user. Set the path switching to root if you are in linux and then build with sudo will solve your issue.