SNIPPET BUILD BUNDLE GUIDE
System Requirements
Hardware
- CPU at least Intel pentium III or higher
- 512Mb Ram or higher
- 80Gb Hard disk drive or more
Software
- Sun JDK 5.x http://java.sun.com/javase/downloads/index_jdk5.jsp
- Maven 2.0.10 http://maven.apache.org/download.html
- Apache Ant 1.6.5 http://ant.apache.org/bindownload.cgi
- Tomcat 5.5.27 http://tomcat.apache.org/download-55.cgi
Setup Environments
Download and install JDK 5.x
- Download JDK 5.x at http://java.sun.com/javase/downloads/index_jdk5.jsp, install it to “C:\Java\jdk1.5.0_14” for example.
- Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, click on “new”, enter variable name: JAVA_HOME , variable value: C:\Java\jdk1.5.0_14 , click OK to apply.
- Still in In System variables dialog, double click on “path” variable, append “C:\Java\jdk1.5.0_14\bin” to the variable value, click ok to apply.
Setup Maven
- Download maven 2.0.10 at http://maven.apache.org/download.html, unzip it to a folder, say, c:\maven.
- Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, double click on “path” variable, append “c:\maven\bin” to the variable value, click OK to apply.
Setup ant
- Download ant 1.6.5 at http://ant.apache.org/bindownload.cgi, unzip it to a folder, say, c:\apache-ant-1.6.5
- Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, double click on "path" variable, append "C:\apache-ant-1.6.5\bin" to the variable value, and click OK to apply.
Download tomcat
- Download tomcat at http://tomcat.apache.org/download-55.cgi
- Extract tomcat package to a folder, C:\Tomcat for instance
Build Bundle Snippet Repo Browser
- Open cmd, navigate to source folder and type mvn install
- After install successful, still in cmd, type ant bundle
- After ant command is successful, the bundle file is stored in your release home folder (for example, D:/mvnsofts/snippetrepobrowser_build_folder/release). If you want to change the release home folder, you may modify release.home value in file build.properties which is stored in your source folder.
Run the bundle
* Unzip the bundle file (ex: snippetrepobrowser-1.0_dev-jakarta-tomcat-5.0.28-20090905.zip), then run by double click the startup.bat (example: it could be in snippetrepobrowser-1.0_dev-jakarta-tomcat-5.0.28-20090905\bin) * Open the browser and enter this link: http://localhost:8080/snippetrepobrowser
Attachments
-
bundle1.gif
(5.0 KB) - added by tamdlt
11 months ago.
Image 1 of Build bundle guide (maven)
-
bundle2.gif
(4.8 KB) - added by tamdlt
11 months ago.
Image 2 of Build bundle guide (ant)