Re: Compiling from source

"dominique (joe) pillot" <[email protected]> Thu, 21 Sep 2006 13:10:03 +0200
Newsgroups gmane.comp.cms.jahia.install
Message-ID <[email protected]>
responses in the body below

Le 21 sept. 06 à 08:35, Sanjay Goel a écrit :

> Thanks Joe, I have been able to compile jahia from source and  
> deploy on my tomcat. I have updated the README file and attached.
>
> There are few questions I would like to ask:
>
> 1. On running maven, I get errors in downloading the following jars.
> Attempting to download slide-kernel-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/slide-kernel-2.2pre1-SNAPSHOT.jar ]: java.io.IOException:  
> Forbidden.
> Attempting to download slide-roles-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/slide-roles-2.2pre1-SNAPSHOT.jar ]: java.io.IOException:  
> Forbidden.
> Attempting to download slide-stores-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/slide-stores-2.2pre1-SNAPSHOT.jar ]: java.io.IOExcep
> tion: Forbidden.
> Attempting to download jakarta-slide-webdavlib-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/jakarta-slide-webdavlib-2.2pre1-SNAPSHOT.jar]: java
> .io.IOException: Forbidden.
> Attempting to download slide-webdavservlet-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/slide-webdavservlet-2.2pre1-SNAPSHOT.jar]: java.io.
> IOException: Forbidden.
> Attempting to download slide-log4jlogger-2.2pre1-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/slide/ 
> jars/slide-log4jlogger-2.2pre1-SNAPSHOT.jar ]: java.io.IOException:  
> Forbidden.
> Attempting to download pluto-1.0.1-JAHIA-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/ 
> org.apache.pluto/jars/pluto-1.0.1-JAHIA-SNAPSHOT.jar]:  
> java.io.IOException: Forbidden.
> Attempting to download clipBuilder-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/jahia/ 
> jars/clipBuilder-SNAPSHOT.jar]: java.io.IOException: Forbidden.
> Attempting to download jmock-SNAPSHOT.jar.
> Error retrieving artifact from [ http://www.day.com/maven/jmock/ 
> jars/jmock-SNAPSHOT.jar]: java.io.IOException: Forbidden.
>
> This slows down maven a lot. How can I make maven not download  
> these jars at all (looks like they are not needed anyways)
>

Some packages was needed, some should not...maybe ;-)...

Here are some methods to accelerate your usage of maven
The best probably is to log in maven console and once it is  
initialized, you can issue all the goals you want more quickly,  
avoiding the loading phase.
You can comment in project.xml the dependency from a particular  
package also (by this way, you can be pretty sure if it is, or not,  
needed) and try to rebuild all, or add a maven.repo.remote property  
in your properties file and list some other jars repositories more  
friendly than www.day.com.
For all these methods and some others, i suggest you to use the  
maven's documentation


> 2. If I make some changes in jahia src and want to compile it  
> again, what steps do I have to follow? Do I have to do maven  
> xdoclet:hibernatedoclet and maven deploy:tomcat? Also, will I get  
> the jahia configuration screen again once I redeploy it on tomcat?  
> If you can point me to a jahia developer doc which tells about the  
> redeploy steps, it would be great.
>

The answer of the 1st and 2nd questions is fully dependent of what  
you plan to do, and what part of code you want to change. some work  
need to regenerate the doclet, some not.
And no, if you rebuild some parts of code only and redeploy, the  
jahia configuration step is not needed in a mandatory way.
The most frequent goal we use on a daily base is: hotdeploy:tomcat  
(to compile modified files and redeploy the classes,jsp and other  
resources in tomcat file's tree).

You can find some developper documentation (some part are seriously  
outdated) at http://www.jahia.net/jahia/page585.html
As soon we have some time after the final release of 5.0, we plan to  
update all these...

and thanx for the updated readme, sanjay
regards
joe