Tuesday, 1 December 2015

Maven Configuration in Windows 7


  •   Download Java(Jdk version 1.7)
  •   Download Maven from https://maven.apache.org/download.cgi
  •   Set enviroment variables
             JAVA_HOME          =C:\Program Files\Java\jdk1.7.0_79
          _ JAVA_OPTIONS    =-Xms512m
             MAVEN_HOME     = D:\apache-maven-3.3.1
               path                         D:\apache-maven-3.3.1\bin;C:\Program Files\Java\jdk1.7.0_79\bin

  •    open cmd    
  •    check version for java and maven

          java -version
          mvn -version
   
   

Monday, 23 November 2015


Migrate Alfresco Data from windows to Linux

i have installed alfresco community edition with mysql

to back up data from windows server 2008 to linux rhel do the following steps

1. Stop Alfresco server if it is running
2  Copy all data from alf_data from windows server to linux server
3. backup database alfresco with mysql dump
4. change  data.dir.root  setting in  solarcore.proporties  in alf_data\solr\workspace-SpacesStore\conf for searching to work properly
5.restore database that was back up properly
  
    

Sunday, 22 November 2015

Creating a hello world in Alfresco

Create a file hello.get.desc.xml with the fillowing content



<webscript>
<shortname>hello world</shortname>
<discription>Hello world example</discription>
<url>/helloworld</url>
</webscript>

now create a file hello.get.html.ftl

<html>
<body>
<p>hello</p>
</body>
</html>

copy both file in /tomcat/share/extention/tamplates/webscripts

create directory /templates/webscripts if not present