cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco src in Eclipse

jlbarrera
Champ in-the-making
Champ in-the-making
Hello

I don`t understand how i add into my eclipse the alfresco from the source code.

I had read the wiki page (http://wiki.alfresco.com/wiki/Development_Environment#Eclipse_Projects) but i received a lot of errors.

step by step how i add alfresco to eclipse? (the easy way) ?

I have installed eclipse 3.1.2 and Webtools for run projects in tomcat.

Thanks!!
8 REPLIES 8

abichet
Champ in-the-making
Champ in-the-making
hi,
have you set the java compiler to 5.0 ?

regards

jlbarrera
Champ in-the-making
Champ in-the-making
NO. Now i have the compiler to 5.0

1] I import from Existing Project Into Workspace the projects from source code of alfresco, and in my eclipse i have the next projects:

-3rd party
-Core
-Extension Samples
-JCR
-NetBIOS
-Remote API
-Repository
-Web-Client
-Web Service Client

Well and now …. that?

abichet
Champ in-the-making
Champ in-the-making
after you do this : http://wiki.alfresco.com/wiki/Development_Environment#Running_Ant_From_Eclipse

and you execute the build ….  what 's happened ??

jlbarrera
Champ in-the-making
Champ in-the-making
Well! there are not errors with the compiler 5.0!

I have create a simple proyect and i import build.xml. I execute buid.xml with ant:

BUILD SUCCESSFUL
Total time: 2 minutes 45 seconds

And now ?

abichet
Champ in-the-making
Champ in-the-making
normally, if you are correctly configure eclipse,
ant have build and copy the .war into the deploy repertory of your server.
(Tomcat/webapps for tomcat). You have just to re-start your server to appply modification.

jlbarrera
Champ in-the-making
Champ in-the-making
In the wiki there are write:

File > Import
Existing Project Into Workspace (next)
Browse and select a subdirectory of projects
Finish

OK, my  Existing Project Into Workspace is called "alfresco-src", i imported from here the rest of projects.

Well, the "alfresco.war" is created in:

[war] Building war: /root/workspace/alfresco-src/projects/web-client/build/dist/alfresco.war

???? why all is copied in /root/workspace/alfresco-src/projects/…???

abichet
Champ in-the-making
Champ in-the-making
it's normally
but after the build you can see similary that :
deploy-tomcat:
   [delete] Deleting directory C:\alfresco\tomcat\webapps\alfresco
   [delete] Deleting directory C:\alfresco\tomcat\work\catalina\localhost\alfresco
   [copy] Copying 1 file to C:\alfresco\tomcat\webapps
build-tomcat:
BUILD SUCCESSFUL
Total time: 2 minutes 31 seconds

where ant copy your alfresco.war ??

jlbarrera
Champ in-the-making
Champ in-the-making
My alfresco.war is copied here:

/root/workspace/alfresco-src/common/${env.TOMCAT_HOME}/webapps/alfresco.war

OK,the proble is that eclipse don`t get the environment variable for TOMCAT_HOME.

thanks